Dotclear


Ignore:
Files:
20 added
19 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • admin/_charte.php

    r2501 r2504  
    3131     <script type="text/javascript" src="js/jquery/jquery.js"></script> 
    3232     <script type="text/javascript" src="js/jquery/jquery-ui.custom.js"></script> 
     33     <script type="text/javascript" src="js/jquery/jquery.ui.touch-punch.js"></script> 
    3334     <script type="text/javascript" src="js/jquery/jquery.pageTabs.js"></script> 
    3435     <script type="text/javascript" src="js/jquery/jquery.biscuit.js"></script> 
  • admin/categories.php

    r2566 r2567  
    109109     && $rs->count()>1) { 
    110110          $starting_script .= dcPage::jsLoad('js/jquery/jquery-ui.custom.js'); 
     111          $starting_script .= dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'); 
    111112          $starting_script .= dcPage::jsLoad('js/jquery/jquery.mjs.nestedSortable.js'); 
    112113} 
  • admin/preferences.php

    r2566 r2567  
    305305     ($user_acc_nodragdrop ? '' : dcPage::jsLoad('js/_preferences-dragdrop.js')). 
    306306     dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     307     dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    307308     dcPage::jsLoad('js/jquery/jquery.pwstrength.js'). 
    308309          '<script type="text/javascript">'."\n". 
  • inc/core/class.dc.blog.php

    r2566 r2567  
    18941894     - post_id: (integer) Get comments belonging to given post_id 
    18951895     - cat_id: (integer or array) Get comments belonging to entries of given category ID 
    1896      - comment_id: (integer) Get comment with given ID 
     1896     - comment_id: (integer or array) Get comment with given ID (or IDs) 
    18971897     - comment_site: (string) Get comments with given comment_site 
    18981898     - comment_status: (integer) Get comments with given comment_status 
     
    19841984 
    19851985          if (isset($params['comment_id']) && $params['comment_id'] !== '') { 
    1986                $strReq .= 'AND comment_id = '.(integer) $params['comment_id'].' '; 
     1986               if (is_array($params['comment_id'])) { 
     1987                    array_walk($params['comment_id'],create_function('&$v,$k','if($v!==null){$v=(integer)$v;}')); 
     1988               } else { 
     1989                    $params['comment_id'] = array((integer) $params['comment_id']); 
     1990               } 
     1991               $strReq .= 'AND comment_id '.$this->con->in($params['comment_id']); 
    19871992          } 
    19881993 
  • inc/core/class.dc.namespace.php

    r2566 r2567  
    125125 
    126126     /** 
     127     Returns global setting value if exists. 
     128 
     129     @param    n         <b>string</b>       setting name 
     130     @return   <b>mixed</b> 
     131     */ 
     132     public function getGlobal($n) 
     133     { 
     134          if (isset($this->global_settings[$n]['value'])) { 
     135               return $this->global_settings[$n]['value']; 
     136          } 
     137 
     138          return null; 
     139     } 
     140 
     141     /** 
     142     Returns local setting value if exists. 
     143 
     144     @param    n         <b>string</b>       setting name 
     145     @return   <b>mixed</b> 
     146     */ 
     147     public function getLocal($n) 
     148     { 
     149          if (isset($this->local_settings[$n]['value'])) { 
     150               return $this->local_settings[$n]['value']; 
     151          } 
     152 
     153          return null; 
     154     } 
     155 
     156     /** 
    127157     Magic __get method. 
    128158     @copydoc ::get 
  • inc/core/class.dc.themes.php

    r2566 r2567  
    5959          # Themes specifics properties 
    6060          $properties = array_merge( 
    61                array('parent' => null), 
     61               array('parent' => null, 'tplset' => 'legacy'), 
    6262               $properties, 
    6363               array('permissions' => 'admin') // force themes perms 
  • inc/prepend.php

    r2566 r2567  
    135135# Constants 
    136136define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    137 define('DC_VERSION','2.6.1'); 
     137define('DC_VERSION','2.7-dev'); 
    138138define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    139139define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • inc/public/prepend.php

    r2566 r2567  
    134134     $__theme_tpl_path[] = $core->blog->themes_path.'/'.$__parent_theme.'/tpl'; 
    135135} 
    136  
    137 $core->tpl->setPath( 
    138      $__theme_tpl_path, 
    139      dirname(__FILE__).'/default-templates', 
    140      $core->tpl->getPath()); 
    141  
     136$tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 
     137if (!empty($tplset) && is_dir(dirname(__FILE__).'/default-templates/'.$tplset)) { 
     138     $core->tpl->setPath( 
     139          $__theme_tpl_path, 
     140          dirname(__FILE__).'/default-templates/'.$tplset, 
     141          $core->tpl->getPath()); 
     142} else { 
     143     $core->tpl->setPath( 
     144          $__theme_tpl_path, 
     145          $core->tpl->getPath()); 
     146} 
    142147$core->url->mode = $core->blog->settings->system->url_scan; 
    143148 
  • plugins/antispam/filters/class.dc.filter.linkslookup.php

    r2566 r2567  
    4848 
    4949               $i = count($domain_elem) - 1; 
     50               if ($i == 0) { 
     51                    // "domain" is 1 word long, don't check it 
     52                    return null; 
     53               } 
    5054               $host = $domain_elem[$i]; 
    5155               do 
  • plugins/antispam/index.php

    r2566 r2567  
    117117     echo 
    118118          dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     119          dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    119120          dcPage::jsLoad('index.php?pf=antispam/antispam.js'); 
    120121  } 
  • plugins/blogroll/index.php

    r2566 r2567  
    177177     echo 
    178178          dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     179          dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    179180          dcPage::jsLoad('index.php?pf=blogroll/blogroll.js'); 
    180181     } 
  • plugins/pages/list.php

    r2566 r2567  
    5555  <title><?php echo __('Pages'); ?></title> 
    5656  <?php 
    57      echo dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     57     echo 
     58          dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     59          dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    5860          dcPage::jsLoad('index.php?pf=pages/list.js'). 
    5961          '<script type="text/javascript">'. 
  • plugins/simpleMenu/index.php

    r2455 r2496  
    347347               echo 
    348348                    dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     349                    dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    349350                    dcPage::jsLoad('index.php?pf=simpleMenu/simplemenu.js'); 
    350351          } 
  • plugins/widgets/index.php

    r2509 r2520  
    218218          echo 
    219219               dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     220               dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 
    220221               dcPage::jsLoad('index.php?pf=widgets/widgets.js'); 
    221222  ?> 
     
    366367          $altUp = $i == 0 ? ' alt=""' : ' alt="'.__('Up the widget').'"'; 
    367368          $altDown = $i == count($widgets->elements())-1 ? ' alt=""' : ' alt="'.__('Down the widget').'"'; 
    368  
     369           
    369370          $iname = 'w['.$pr.']['.$i.']'; 
    370371 
  • themes/ductile/_prepend.php

    r2566 r2567  
    2626          if (!$core->auth->user_prefs->accessibility->nodragdrop) { 
    2727               echo 
    28                     dcPage::jsLoad('js/jquery/jquery-ui.custom.js'); 
     28                    dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 
     29                    dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'); 
    2930                    echo <<<EOT 
    3031<script type="text/javascript"> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map