Changeset 2552
- Timestamp:
- 08/15/10 19:23:41 (13 years ago)
- Location:
- plugins/fancybox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/fancybox/_admin.php
r1884 r2552 18 18 public static function adminBlogPreferencesForm($core,$settings) 19 19 { 20 $settings->addNameSpace('fancybox'); 20 21 echo 21 22 '<fieldset><legend>FancyBox</legend>'. 22 23 '<p><label class="classic">'. 23 form::checkbox('fancybox_enabled','1',$settings->fancybox _enabled).24 form::checkbox('fancybox_enabled','1',$settings->fancybox->fancybox_enabled). 24 25 __('Enable FancyBox').'</label></p>'. 25 26 '</fieldset>'; 26 27 } 27 28 28 29 public static function adminBeforeBlogSettingsUpdate($settings) 29 30 { 30 $settings->setNameSpace('fancybox'); 31 $settings->put('fancybox_enabled',!empty($_POST['fancybox_enabled']),'boolean'); 32 $settings->setNameSpace('system'); 31 $settings->addNameSpace('fancybox'); 32 $settings->fancybox->put('fancybox_enabled',!empty($_POST['fancybox_enabled']),'boolean');; 33 33 } 34 34 } -
plugins/fancybox/_define.php
r2473 r2552 15 15 /* Description*/ "Fancy image zooming tool", 16 16 /* Author */ "Osku and contributors", 17 /* Version */ '1.1. 2',17 /* Version */ '1.1.3', 18 18 /* Permissions */ 'admin' 19 19 ); -
plugins/fancybox/_public.php
r2473 r2552 17 17 public static function publicHeadContent($core) 18 18 { 19 if (!$core->blog->settings->fancybox _enabled ) {19 if (!$core->blog->settings->fancybox->fancybox_enabled ) { 20 20 return; 21 21 } 22 22 23 23 $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 24 24 echo 25 '<link rel="stylesheet" href=" /?pf=fancybox/css/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />'."\n".25 '<link rel="stylesheet" href="'.$url.'/css/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />'."\n". 26 26 '<script type="text/javascript" src="'.$url.'/js/jquery.mousewheel-3.0.2.pack.js"></script>'."\n". 27 27 '<script type="text/javascript" src="'.$url.'/js/jquery.fancybox-1.3.1.js"></script>'."\n".
Note: See TracChangeset
for help on using the changeset viewer.