Dotclear


Ignore:
Timestamp:
12/06/11 11:43:14 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
formfilters
Parents:
781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged last default changes with formfilter branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r680 r782  
    515515     } 
    516516      
     517     public static function jqueryUI() 
     518     { 
     519          return 
     520          '<link rel="stylesheet" type="text/css" href="style/jquery-ui-1.8.16.custom.css" />'."\n". 
     521          self::jsLoad('js/jquery/jquery-ui-1.8.16.custom.min.js'); 
     522     } 
     523 
    517524     public static function jsColorPicker() 
    518525     { 
  • inc/admin/lib.dc.page.php

    r756 r782  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    1616class dcPage 
    1717{ 
     18     private static $loaded_js=array(); 
     19 
    1820     # Auth check 
    1921     public static function check($permissions) 
     
    7375               __('Blogs:').' '. 
    7476               $core->formNonce(). 
    75                form::combo('switchblog',$blogs,$core->blog->id,  '',1). 
     77               form::combo('switchblog',$blogs,$core->blog->id). 
    7678               '</label>'. 
    7779               '<noscript><div><input type="submit" value="'.__('ok').'" /></div></noscript>'; 
     
    9698           
    9799          self::jsLoadIE7(). 
    98           '  <style type="text/css">'."\n".  
    99           '  @import "style/default.css";'."\n". 
    100           "  </style>\n"; 
     100          '    <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" />'."\n";  
    101101          if (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl') { 
    102                echo '  <style type="text/css">'."\n".'  @import "style/default-rtl.css";'."\n"."  </style>\n"; 
     102               echo 
     103          '    <link rel="stylesheet" href="style/default-rtl.css" type="text/css" media="screen" />'."\n";  
     104          } 
     105 
     106          $core->auth->user_prefs->addWorkspace('interface'); 
     107          $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 
     108          if (!$user_ui_hide_std_favicon) { 
     109               echo '<link rel="icon" type="image/png" href="images/favicon.png" />'; 
    103110          } 
    104111           
     
    116123          '">'."\n". 
    117124           
    118           '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 
    119            
    120            
    121           echo 
    122           '<div id="info-box">'. 
    123           '<form action="index.php" method="post"><div>'. 
     125          '<div id="header">'. 
     126          '<ul id="prelude"><li><a href="#content">Aller au contenu</a></li><li><a href="#main-menu">Aller au menu</a></li></ul>'."\n". 
     127          '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n";  
     128           
     129          echo 
     130          '<div id="info-boxes">'. 
     131          '<div id="info-box1">'. 
     132          '<form action="index.php" method="post">'. 
    124133          $blog_box. 
    125134          '<a href="'.$core->blog->url.'" onclick="window.open(this.href);return false;" title="'.__('Go to site').' ('.__('new window').')'.'">'.__('Go to site').' <img src="images/outgoing.png" alt="" /></a>'. 
    126           '</div></form>'. 
     135          '</form>'. 
    127136          '</div>'. 
    128           '<div id="info-box2"><div>'. 
    129           ' '.__('User:').' <strong>'.$core->auth->userID().'</strong>'. 
    130           ' - <a href="index.php?logout=1" class="logout">'.__('Logout').' <img src="images/logout.png" alt="" /></a>'. 
     137          '<div id="info-box2">'. 
     138          '<a'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 
     139          '<span> | </span><a'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
     140          '<span> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
     141          '</div>'. 
    131142          '</div>'. 
    132143          '</div>'; 
     
    172183          '<div id="footer"><p>'. 
    173184          sprintf(__('Thank you for using %s.'),'<a href="http://dotclear.org/">Dotclear '.DC_VERSION.'</a>'). 
    174           ' <span class="credit"> (Icons by <a href="http://dryicons.com/">Dryicons</a>)</span>'. 
    175185          '</p></div>'."\n". 
    176186          "</div>\n";         // End of #wrapper 
     
    204214           
    205215          self::jsLoadIE7(). 
    206           '  <style type="text/css">'."\n".  
    207           '  @import "style/default.css";'."\n". 
    208           "  </style>\n"; 
     216          '    <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" />'."\n";  
    209217          if (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl') { 
    210                echo '  <style type="text/css">'."\n".'  @import "style/default-rtl.css";'."\n"."  </style>\n"; 
     218               echo 
     219               '    <link rel="stylesheet" href="style/default-rtl.css" type="text/css" media="screen" />'."\n";  
    211220          } 
    212221           
     
    264273               } else { 
    265274                    $prof_url = http::getSelfURI(); 
    266                     $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&amp;'; 
     275                    $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; 
    267276                    $prof_url .= 'XDEBUG_PROFILE'; 
    268                     $res .= '<p><a href="'.$prof_url.'">Trigger profiler</a></p>'; 
     277                    $res .= '<p><a href="'.html::escapeURL($prof_url).'">Trigger profiler</a></p>'; 
    269278               } 
    270279                
     
    343352     public static function jsLoad($src) 
    344353     { 
    345           return '<script type="text/javascript" src="'.html::escapeHTML($src).'"></script>'."\n"; 
     354          $escaped_src = html::escapeHTML($src); 
     355          if (!isset(self::$loaded_js[$escaped_src])) { 
     356               self::$loaded_js[$escaped_src]=true; 
     357               return '<script type="text/javascript" src="'.$escaped_src.'"></script>'."\n"; 
     358          } 
    346359     } 
    347360      
     
    358371          self::jsLoad('js/jquery/jquery.bgFade.js'). 
    359372          self::jsLoad('js/common.js'). 
     373          self::jsLoad('js/prelude.js'). 
    360374           
    361375          '<script type="text/javascript">'."\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map