Dotclear


Ignore:
Timestamp:
10/12/10 10:28:56 (13 years ago)
Author:
philippe
Message:

colorbox : oups... styles must be in <head>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/colorbox/_public.php

    r2706 r2707  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
     13$core->addBehavior('publicHeadContent',array('colorboxPublic','publicHeadContent')); 
    1314$core->addBehavior('publicFooterContent',array('colorboxPublic','publicFooterContent')); 
    1415 
    1516class colorboxPublic 
    1617{ 
    17      public static function publicFooterContent($core) 
     18     public static function publicHeadContent($core) 
    1819     { 
    1920          # Settings 
    20            
     21 
    2122          $s =& $core->blog->settings->colorbox; 
    2223           
     
    2627           
    2728          $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 
    28            
    29           $icon_name = 'zoom.png'; 
    30           $icon_width = '16'; 
    31           $icon_height = '16'; 
    3229           
    3330          echo 
     
    6461 
    6562          } 
     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           
    6681          echo 
    6782          '<script type="text/javascript" src="'.$url.'/js/jquery.colorbox-min.js"></script>'."\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map