Changeset 2707 for plugins/colorbox/_public.php
- Timestamp:
- 10/12/10 10:28:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/colorbox/_public.php
r2706 r2707 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 $core->addBehavior('publicHeadContent',array('colorboxPublic','publicHeadContent')); 13 14 $core->addBehavior('publicFooterContent',array('colorboxPublic','publicFooterContent')); 14 15 15 16 class colorboxPublic 16 17 { 17 public static function public FooterContent($core)18 public static function publicHeadContent($core) 18 19 { 19 20 # Settings 20 21 21 22 $s =& $core->blog->settings->colorbox; 22 23 … … 26 27 27 28 $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 28 29 $icon_name = 'zoom.png';30 $icon_width = '16';31 $icon_height = '16';32 29 33 30 echo … … 64 61 65 62 } 63 64 } 65 public static function publicFooterContent($core) 66 { 67 # Settings 68 69 $s =& $core->blog->settings->colorbox; 70 71 if (!$s->colorbox_enabled) { 72 return; 73 } 74 75 $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 76 77 $icon_name = 'zoom.png'; 78 $icon_width = '16'; 79 $icon_height = '16'; 80 66 81 echo 67 82 '<script type="text/javascript" src="'.$url.'/js/jquery.colorbox-min.js"></script>'."\n".
Note: See TracChangeset
for help on using the changeset viewer.