-
Notifications
You must be signed in to change notification settings - Fork 17
Theme Hacks
There are a variety of ways to implement customizations, however, the most upgrade-proof method is to add them directly to your theme. Custom Helios themes are “safe” when upgrading. By compartmentalizing your content changes (hacks) with your design changes (themes) it will allow for easier maintenance in the future and ensure that your custom files won't be affected by changes to core files that are modified when upgrading.
To assist in the development of hacks Helios Calendar utilizes PHPDoc style internal documentation for functions to expose core content functionality for use within hacks.
Named setting variable support can be enabled to facilitate easier use of settings within hacks. To enable named setting variables add (or uncomment) the following within your config.php file.
define("HC_Named", true);
When enabled a new cache file (/cache) will be available named settings_named.php containing descriptive naming of setting variables. This can be enabled temporarily for development purposes (documenting use of coded variables within hacks) or permanently (to use named variables directly within hacks).
The following example shows how coded and named setting variables can be utilized within a custom hack function.
Coded Variables:
function output_tweet_hashtag_coded(){
global $hc_cfg;
echo $hc_cfg[59];
}
Named Variables:
function output_tweet_hashtag_named(){
global $hc_cfg, $hc_cfg_named;
echo $hc_cfg_named['tweet_hashtag'];
}
Events
- Adding Events
- Editing Events
- Recycling Events
- Deleting Events
- Pending Events
- Billboard Events
- Orphan Events
- Event Search
- Event Series
- Category Management
Locations
Administration
- Adding Admin Users
- Editing Admin Users
- Change Admin Password
- Manage Users
- Manage Database
- Reports
- Event Import
- Event Export
- Export Templates
Newsletters
- Newsletter Overview
- Sending Newsletters
- Newsletter Templates
- Compose Draft
- Create Newsletter
- Newsletter Queue
- Manage Subscribers
- Subscriber Groups
- Email Guildelines
Publishing
Customization
- Integration
- Weather/Map Links
- Calendar Digest
- Preferences
- API Settings
- API Registration
- Translation
- Localization
- Meta Settings & SEO
Themes
- Themes Overview
- Themes Settings
- Custom Theme Functions
- Creating Themes
- Creating Hacks
- Upgrade-proofing
API
Technical
- Setup
- Upgrading
- Upgrading from 1.x
- Server Requirements
- Browser Compatibility
- Search Engines & SEO
- CAPTCHA
About