This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
themes:tips [2011/02/13 19:10] ccagle8 created |
themes:tips [2011/05/30 11:37] Connie |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Theme Development Tips ====== | ====== Theme Development Tips ====== | ||
+ | These are some tips to help development of themes for GetSimple | ||
+ | |||
+ | * There are many optional settings located in the ''/path/to/getsimple/gsconfig.php'' file. Includes CKEditor, file upload, security, language and sitemap settings. | ||
+ | * To turn on debugging, uncomment the GSDEBUG line in ''/path/to/getsimple/gsconfig.php'' to enable full PHP errors to help debug. | ||
+ | * If you want to see all PHP errors written to a log, check out ''/path/to/getsimple/data/other/logs/errorlog.txt'' - It is automatically generated by the system regardless of the GSDEBUG setting. | ||
+ | * Add the file ''/path/to/getsimple/your-theme/functions.php'' into your theme to add custom functions that can be used within your theme. | ||
+ | * Add a image of your theme as ''/path/to/getsimple/theme/your-theme/images/screenshot.png'' to enable the theme image that shows when it s activated in the administrator panel. | ||
+ | * Be sure to name it that exact name or else our system will not pick it up. Lowercase AND in the folder ''/images/'' AND named ''screenshot.png'' | ||
+ | * Add the code below to the top of any PHP file within your theme. This will stop any unwanted direct access to that particular file. | ||
+ | <code><?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); } ?></code> |