News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Build an OctoberCMS Theme
December 03, 2014 @ 09:17:55

The SitePoint PHP blog has a new post in their series covering the OctoberCMS today, this time looking at how to create a custom theme. They walk you through the creation of a simple "blogging" theme type with posts, categories and home/about pages.

October CMS is the new star in the sky of CMSes. Built on top of Laravel, it promises joyful coding and a back to basics approach. Read our introduction here and find out how to build plugins for it here. In this article, we're going to see how we can build a theme.

Their theme makes use of the rainlab plugin allowing for the use of Markdown content in your posts. They start by adding in the directories and base files needed for the theme to the "themes" directory. With the plugin installed they start working through the configuration content and setup of the theme files including PHP and markup sections. He also shows how to use placeholders, partials and layouts in the content of the posts. Next is the static pages, About and Home, with a bit simpler configuration. The code is then included for the remainder of the pages: single posts, categories and the post listing.

0 comments voice your opinion now!
octobercms laravel tutorial theme introduction

Link: http://www.sitepoint.com/build-octobercms-theme/

Sound of Symfony Podcast:
Episode 5 - The no-theme all-content episode
October 31, 2014 @ 11:17:13

The Sound of Symfony podcast has released their latest episode - Episode #5: The no-theme all-content episode with hosts Magnus Nordlander and Tobias Nyholm

In this episode we don't have a specific theme. We do however have a lot of fun content for you. We discuss Magnus' trip to Symfony Live New York, the Best Practices document, Blackfire.io (née SensioLabs Profiler) and much more. We also have a long interview with Jordi Boggiano of Composer fame, and two short interviews with Jeremy Mikola and Anne-Sophie Bachelard respectively.

They also talk about the PHPStorm plugin for interaction with SensioLabs Insight, WurstCon and Jordi's Toran Proxy work. You can listen to this latest episode either through the in-page player or by downloading the mp3. If you enjoy the episode, be sure to subscribe to their feed to get the latest episodes as they're released.

0 comments voice your opinion now!
soundofsymfony podcast ep5 theme content jeremymikola annesophiebachelard

Link: http://www.soundofsymfony.com/episode/episode-5/

Sanisoft Blog:
Themes in CakePHP 3, A step by step HowTo
August 21, 2014 @ 11:45:38

On the Sanisoft blog there's a recent post that gives you a step-by-step guide to working with themes in the upcoming version 3 release of the CakePHP framework.

Almost every application I code has themes which either the end user can change or the admin can set or can be changed on the fly. Doing all these things was easy in CakePHP 2.x. With the first alpha release of CakePHP 3.x I was naturally keen to try out how theming worked with V3.

He shows how to convert an existing theme into one that will be compatible with the 3.x version of the framework. He breaks it down into seven steps (well, technically eight) to make it easier to follow along:

  • Step 0: Make the "posts" table
  • Step 1: Bake the model, controller and views for the Posts
  • Step 2: Bake in the "Twit" plugin
  • Step 3: Download and install the Twitter Bootstrap
  • Step 4: Create the "default.ctp" file with the content given
  • Step 5: Make the "index.ctp" template with the given content
  • Step 6: Add the line to the AppController to use the new theme
  • Step 7: Reload and verify the results
0 comments voice your opinion now!
theme cakephp framework version3 update template

Link: http://www.sanisoft.com/blog/2014/07/21/themes-in-cakephp-3-howto/

PHP.net:
Our modern web theme goes live!
November 21, 2013 @ 09:13:31

If you haven't visited the main PHP.net site in the last day or two, you may have missed it but they've officially released the new look for the site, a more modern look for both the manual and rest of the site.

The PHP web team are delighted to announce the launch of the new web theme that has been in beta for many months. Lots of hard work has gone into this release and we will be continually improving things over time now that we have migrated away from the legacy theme.

From an aesthetics point of view the general color scheme of the website has been lightened from the older dark purple. Lots of borders and links use a similar purple color to attain consistency. Fonts are smoother, and colors, contrast and highlighting have significantly improved; especially on function reference pages. Code examples should now be much more readable.

This new version updates the technologies used as well, including HTML5, Google Fonts and the Twitter Bootstrap. Go take a look at the new version and, if you spot any issues or bugs in it, be sure to report the problem on the PHP bug tracker.

0 comments voice your opinion now!
modern theme redesign release launch

Link: http://php.net/index.php#id2013-11-20-1

NetTuts.com:
How to Create a PyroCMS Theme
May 21, 2013 @ 11:19:25

On NetTuts.com today there's a new tutorial posted showing you how to create a theme for PyroCMS, an open source, PHP-based content management system with a large user base and community.

Like most content management systems, PyroCMS uses front-end themes. Though PyroCMS themes are built a bit differently than what you might be used to from other systems, they're still quite easy to create. They're so easy, in fact, that very little PHP experience is required to assemble them!

He walks through things like the folder structure of the templates directory and how to get started on a custom "Foo" theme of your own. He covers how to lay out the HTML markup for the theme and how you can use partials for the sections of the site. He briefly touches on using multiple layout files and how to use different layouts shown only to mobile devices.

0 comments voice your opinion now!
pyrocms theme tutorial introduction mobile markup patrials

Link: http://net.tutsplus.com/tutorials/php/how-to-create-a-pyrocms-theme

Dean Clatworthy:
Theming/styling error messages in Symfony 2
August 30, 2012 @ 11:40:40

For the Symfony2 users out there, Dean Clatworthy has a handy tip to help you customize the output of your application a bit more - a method for styling the error messages coming from forms using a custom template.

I spent a large portion of my day today trying to customize the HTML produced by Symfony 2 for form errors. The documentation has a section on how to do this, but for the life of me, I could not make it work. Here is a working, re-usable solution.

His solution involves the creation of a template in your "/Resources/views/Form/" directory that contains a Twig template for the error set output. This is then applied in your view using an additional parameter on the error output tag, including this new template from the "Form" directory. This sort of styling could also be applied if you needed custom elements with their own layouts in your forms as well.

0 comments voice your opinion now!
symfony2 error message theme style twig template tutorial


Designer Daily:
8 useful recipes to improve your WordPress theme
August 19, 2010 @ 12:39:21

On the Designer Daily blog there's a recent post sharing eight simple bits of code you can use in your WordPress site to help make your theme even better.

Blog engine or CMS, call it whatever you want but WordPress is a great tool for web designers. It just get a little hard to use sometimes when you want to do some more advanced things in your theme and you are not a coder. Here are 8 snippets of code that have helped me in recent projects.

The eight snippets they share show how to include:

  • Include post thumbnail in RSS feed
  • Next & Previous Post Titles With Thumbnails
  • Search Specific Category in WordPress
  • List top 10 authors of the blog with their last post
  • Automatically insert content in your RSS feed
  • Display a Comment's Number in a List
  • Display your most commented posts in your blog sidebar
  • Excluding Posts from Your WordPress Feed

Each item links back to the full recipe it came from.

0 comments voice your opinion now!
wordpress theme recipes snippet code


NETTUTS.com:
16 Vital Checks Before Releasing a WordPress Theme
August 05, 2010 @ 13:48:51

On the NETTUTS.com blog today there's a new post that includes a list of sixteen things you need to be sure to check before releasing your WordPress theme.

Releasing a WordPress theme on a marketplace, such as ThemeForest, where the audience is so large and diverse, has some challenges. You cannot test a solution directly with the client. You need to plan in advance for all edge cases, and ensure that your theme is as customizable as possible. If you're inexperienced, chances are that some things will unfortunately slip through the cracks. Luckily for you, we have drawn on our hard-earned wisdom to help you avoid repeating the same mistakes we made.

Among the things they suggest checking are things like:

  • Don't Display Comments on Protected Posts
  • Introduce Right-To-Left Support
  • Make Paginated Entries Work
  • Do not Forget wp_footer() and wp_head()
  • Support Custom Menus
  • Make User-Visible Strings Translatable

Each item on the list comes complete with a description and code (when it's needed).

0 comments voice your opinion now!
wordpress check list release theme


Hokuten.net:
A WordPress User's Guide to Drupal
July 28, 2010 @ 08:13:35

If you're a WordPress user and have been wanting to get into Drupal, you should check out this guide on hokuten.net. It gives you information on two main points - installation and theming.

Anyone who has worked with both knows that anything you can do in WordPress, you can do in Drupal, and vice versa. It just takes some elbow grease. [Drupal] is a great thing to learn because of its broad market, but WordPress developers might find some difficulty getting acclimated'"Drupal has a much higher learning curve.

They mention some of the differences between the installation of the two (creating settings files, making additional directories) and a table showing the correlating theme files between the two.

0 comments voice your opinion now!
wordpress user guide drupal install theme


Marco Tabini's Blog:
WordPress, the GPL and cherries on top
July 16, 2010 @ 13:58:44

In case you've missed the latest happenings in the WordPress community, Marco Tabini is here to catch you up. The issue? Licensing of themes for WordPress.

The WordPress community is abuzz with news that the WP Foundation has essentially gone to war with the makers of the Thesis WP theme. The substance of the argument, as I understand it, is that the makers of WordPress claim that themes, since they rely on WP's GPL'ed code to run, must be covered by the GPL as well because they are derivative works. Thesis, on the other hand, is distributed under a commercial license, therefore violating this tenet.

Marco talks about all of the legal implications of the issue and some of the stances each side has taken - WordPress saying that since the code has a foundation on it, it must be covered and the themers saying that's ridiculous. As Marco points out, however, is that the opinions of non-legal professionals doesn't really matter. What matters is what would hold up if this issue were ever pressed into a legal arena. He even includes some suggestions he wishes the WPF would take to heart including to just back off.

1 comment voice your opinion now!
wordpress theme gpl legal wpf issue



Community Events





Don't see your event here?
Let us know!


series podcast introduction composer release tool security version interview language artisanfiles community laravel framework list voicesoftheelephpant symfony library conference opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework