Changeset 575003
- Timestamp:
- 07/20/2012 06:47:12 AM (14 years ago)
- Location:
- cibul-event-rendering/trunk
- Files:
-
- 3 edited
-
CibulPluginAdmin.class.php (modified) (3 diffs)
-
cibul_plugin.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cibul-event-rendering/trunk/CibulPluginAdmin.class.php
r574150 r575003 15 15 ); 16 16 17 public function __construct()18 {19 $this->registerScripts();20 }21 22 17 var $defaultTemplateNames = array('event-list-item.html', 'event-list-item.css'); 23 18 … … 43 38 protected function getDefaultTemplates() 44 39 { 45 foreach ($this->defaultTemplateNames as $defaultTemplatesName)46 { 47 $defaultTemplates = array();48 49 $fh = fopen(__DIR__ . '/templates/' . $ index, 'r');50 $defaultTemplates[$defaultTemplate sName] = fread($fh, filesize(__DIR__ . '/templates/' . $defaultTemplatesName));40 $defaultTemplates = array(); 41 42 foreach ($this->defaultTemplateNames as $defaultTemplateName) 43 { 44 $fh = fopen(__DIR__ . '/templates/' . $defaultTemplateName, 'r'); 45 $defaultTemplates[$defaultTemplateName] = fread($fh, filesize(__DIR__ . '/templates/' . $defaultTemplateName)); 51 46 fclose($fh); 52 47 } … … 216 211 } 217 212 218 protected function registerScripts() 219 { 220 wp_register_script('cibul-admin', plugins_url('js/cibul-admin.js', __FILE__)); 221 wp_enqueue_script('cibul-admin'); 222 } 213 223 214 } -
cibul-event-rendering/trunk/cibul_plugin.php
r574163 r575003 5 5 Plugin URI: http://cibul.net 6 6 Description: Render rich list items views from your event links in your blog articles 7 Version: 1.0 27 Version: 1.03 8 8 Author: Kari Olafsson 9 9 Author URI: http://cibul.net … … 47 47 48 48 // create the cache table on plugin activation 49 register_activation_hook(__FILE__, array($c ibulCache, 'createTable'));49 register_activation_hook(__FILE__, array($cacheHandler, 'createTable')); 50 50 51 51 // set plugin administration page … … 56 56 57 57 if (function_exists('add_options_page')) add_options_page('Cibul Admin', 'Cibul Admin', 9, basename(__FILE__), array($cibulAdmin, 'processRequest')); 58 59 // register admin scripts 60 wp_register_script('cibul-admin', plugins_url('js/cibul-admin.js', __FILE__)); 61 wp_enqueue_script('cibul-admin'); 58 62 } 59 63 -
cibul-event-rendering/trunk/readme.txt
r574163 r575003 5 5 Requires at least: 6 6 Tested up to: 3.3.2 7 Stable tag: 1.0 27 Stable tag: 1.03 8 8 9 9 Convert links to cibul events into html renders with image, title, description and map
Note: See TracChangeset
for help on using the changeset viewer.