Dotclear


Ignore:
Files:
1 added
11 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

    r2464 r2496  
    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

    r2449 r2496  
    4747$default_tab = !empty($_GET['tab']) ? html::escapeHTML($_GET['tab']) : 'user-profile'; 
    4848 
    49 if (!empty($_GET['append']) || !empty($_GET['removed']) || !empty($_GET['neworder']) ||  
    50      !empty($_GET['replaced']) || !empty($_POST['appendaction']) || !empty($_POST['removeaction']) ||  
     49if (!empty($_GET['append']) || !empty($_GET['removed']) || !empty($_GET['neworder']) || 
     50     !empty($_GET['replaced']) || !empty($_POST['appendaction']) || !empty($_POST['removeaction']) || 
    5151     !empty($_GET['db-updated'])) { 
    5252     $default_tab = 'user-favorites'; 
     
    8484     { 
    8585          $pwd_check = !empty($_POST['cur_pwd']) && $core->auth->checkPassword(crypt::hmac(DC_MASTER_KEY,$_POST['cur_pwd'])); 
    86            
     86 
    8787          if ($core->auth->allowPassChange() && !$pwd_check && $user_email != $_POST['user_email']) { 
    8888               throw new Exception(__('If you want to change your email or password you must provide your current password.')); 
    8989          } 
    90            
     90 
    9191          $cur = $core->con->openCursor($core->prefix.'user'); 
    92            
     92 
    9393          $cur->user_name = $user_name = $_POST['user_name']; 
    9494          $cur->user_firstname = $user_firstname = $_POST['user_firstname']; 
     
    100100 
    101101          $cur->user_options = new ArrayObject($user_options); 
    102            
     102 
    103103          if ($core->auth->allowPassChange() && !empty($_POST['new_pwd'])) 
    104104          { 
     
    106106                    throw new Exception(__('If you want to change your email or password you must provide your current password.')); 
    107107               } 
    108                 
     108 
    109109               if ($_POST['new_pwd'] != $_POST['new_pwd_c']) { 
    110110                    throw new Exception(__("Passwords don't match")); 
    111111               } 
    112                 
     112 
    113113               $cur->user_pwd = $_POST['new_pwd']; 
    114114          } 
    115            
     115 
    116116          # --BEHAVIOR-- adminBeforeUserUpdate 
    117117          $core->callBehavior('adminBeforeUserProfileUpdate',$cur,$core->auth->userID()); 
    118            
     118 
    119119          # Udate user 
    120120          $core->updUser($core->auth->userID(),$cur); 
    121            
     121 
    122122          # --BEHAVIOR-- adminAfterUserUpdate 
    123123          $core->callBehavior('adminAfterUserProfileUpdate',$cur,$core->auth->userID()); 
    124            
     124 
    125125          dcPage::addSuccessNotice(__('Personal information has been successfully updated.')); 
    126126 
     
    134134 
    135135# Update user options 
    136 if (isset($_POST['user_post_format']))  
     136if (isset($_POST['user_post_format'])) 
    137137{ 
    138138     try 
    139139     { 
    140140          $cur = $core->con->openCursor($core->prefix.'user'); 
    141            
     141 
    142142          $cur->user_name = $user_name; 
    143143          $cur->user_firstname = $user_firstname; 
     
    149149 
    150150          $cur->user_post_status = $user_post_status = $_POST['user_post_status']; 
    151            
     151 
    152152          $user_options['edit_size'] = (integer) $_POST['user_edit_size']; 
    153153          if ($user_options['edit_size'] < 1) { 
     
    156156          $user_options['post_format'] = $_POST['user_post_format']; 
    157157          $user_options['enable_wysiwyg'] = !empty($_POST['user_wysiwyg']); 
    158            
     158 
    159159          $cur->user_options = new ArrayObject($user_options); 
    160            
     160 
    161161          # --BEHAVIOR-- adminBeforeUserOptionsUpdate 
    162162          $core->callBehavior('adminBeforeUserOptionsUpdate',$cur,$core->auth->userID()); 
    163            
     163 
    164164          # Update user prefs 
    165165          $core->auth->user_prefs->accessibility->put('nodragdrop',!empty($_POST['user_acc_nodragdrop']),'boolean'); 
     
    170170          } 
    171171          $core->auth->user_prefs->interface->put('media_by_page',(integer)$_POST['user_ui_media_by_page'],'integer'); 
    172            
     172 
    173173          # Udate user 
    174174          $core->updUser($core->auth->userID(),$cur); 
    175            
     175 
    176176          # --BEHAVIOR-- adminAfterUserOptionsUpdate 
    177177          $core->callBehavior('adminAfterUserOptionsUpdate',$cur,$core->auth->userID()); 
    178            
     178 
    179179          dcPage::addSuccessNotice(__('Personal options has been successfully updated.')); 
    180180          http::redirect('preferences.php#user-options'); 
     
    192192          # --BEHAVIOR-- adminBeforeUserOptionsUpdate 
    193193          $core->callBehavior('adminBeforeDashboardOptionsUpdate',$core->auth->userID()); 
    194            
     194 
    195195          # Update user prefs 
    196196          $core->auth->user_prefs->dashboard->put('doclinks',!empty($_POST['user_dm_doclinks']),'boolean'); 
     
    199199          $core->auth->user_prefs->interface->put('iconset',(!empty($_POST['user_ui_iconset']) ? $_POST['user_ui_iconset'] : '')); 
    200200          $core->auth->user_prefs->interface->put('nofavmenu',empty($_POST['user_ui_nofavmenu']),'boolean'); 
    201            
     201 
    202202          # --BEHAVIOR-- adminAfterUserOptionsUpdate 
    203203          $core->callBehavior('adminAfterDashboardOptionsUpdate',$core->auth->userID()); 
    204            
     204 
    205205          dcPage::addSuccessNotice(__('Dashboard options has been successfully updated.')); 
    206206          http::redirect('preferences.php#user-favorites'); 
     
    213213 
    214214# Add selected favorites 
    215 if (!empty($_POST['appendaction']))  
     215if (!empty($_POST['appendaction'])) 
    216216{ 
    217217     try { 
     
    280280               unset($order[$k]); 
    281281          } 
    282      }     
     282     } 
    283283     $core->favs->setFavoriteIDs($order,false); 
    284284     if (!$core->error->flag()) { 
     
    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". 
     
    320321     dcPage::jsPageTabs($default_tab). 
    321322     dcPage::jsConfirmClose('user-form'). 
    322       
     323 
    323324     # --BEHAVIOR-- adminPreferencesHeaders 
    324325     $core->callBehavior('adminPreferencesHeaders'), 
     
    386387     echo 
    387388     '<h4 class="vertical-separator pretty-title">'.__('Change my password').'</h4>'. 
    388       
     389 
    389390     '<div class="pw-table">'. 
    390391     '<p class="pw-cell"><label for="new_pwd">'.__('New password:').'</label>'. 
     
    395396     '</div>'. 
    396397     '</div>'. 
    397       
     398 
    398399     '<p><label for="new_pwd_c">'.__('Confirm new password:').'</label>'. 
    399400     form::password('new_pwd_c',20,255).'</p>'. 
    400       
     401 
    401402     '<p><label for="cur_pwd">'.__('Your current password:').'</label>'. 
    402403     form::password('cur_pwd',20,255).'</p>'. 
     
    589590 
    590591if (count($iconsets_combo) > 1) { 
    591      echo  
     592     echo 
    592593          '<div class="fieldset">'. 
    593594          '<h4>'.__('Dashboard icons').'</h4>'. 
  • inc/core/class.dc.namespace.php

    r1179 r2505  
    2222     protected $table;        ///< <b>string</b> Settings table name 
    2323     protected $blog_id;      ///< <b>string</b> Blog ID 
    24       
     24 
    2525     protected $global_settings = array();   ///< <b>array</b> Global settings array 
    2626     protected $local_settings = array();    ///< <b>array</b> Local settings array 
    2727     protected $settings = array();          ///< <b>array</b> Associative settings array 
    2828     protected $ns;           ///< <b>string</b> Current namespace 
    29       
     29 
    3030     /** 
    3131     Object constructor. Retrieves blog settings and puts them in $settings 
    3232     array. Local (blog) settings have a highest priority than global settings. 
    33       
     33 
    3434     @param    name      <b>string</b>       ID for this namespace 
    3535     */ 
     
    4141               throw new Exception(sprintf(__('Invalid setting dcNamespace: %s'),$name)); 
    4242          } 
    43            
     43 
    4444          $this->con =& $core->con; 
    4545          $this->table = $core->prefix.'setting'; 
    4646          $this->blog_id =& $blog_id; 
    47            
     47 
    4848          $this->getSettings($rs); 
    4949     } 
    50       
     50 
    5151     private function getSettings($rs=null) 
    52      {     
     52     { 
    5353          if ($rs == null) { 
    5454               $strReq = 'SELECT blog_id, setting_id, setting_value, '. 
     
    5959                         "AND setting_ns = '".$this->con->escape($this->ns)."' ". 
    6060                         'ORDER BY setting_id DESC '; 
    61            
     61 
    6262               try { 
    6363                    $rs = $this->con->select($strReq); 
     
    7474               $value = $rs->f('setting_value'); 
    7575               $type = $rs->f('setting_type'); 
    76                 
     76 
    7777               if ($type == 'float' || $type == 'double') { 
    7878                    $type = 'float'; 
     
    8080                    $type = 'string'; 
    8181               } 
    82                 
     82 
    8383               settype($value,$type); 
    84                 
     84 
    8585               $array = $rs->blog_id ? 'local' : 'global'; 
    86                 
     86 
    8787               $this->{$array.'_settings'}[$id] = array( 
    8888                    'ns' => $this->ns, 
     
    9393               ); 
    9494          } 
    95            
     95 
    9696          $this->settings = $this->global_settings; 
    97            
     97 
    9898          foreach ($this->local_settings as $id => $v) { 
    9999               $this->settings[$id] = $v; 
    100100          } 
    101            
     101 
    102102          return true; 
    103103     } 
    104       
     104 
    105105     private function settingExists($id,$global=false) 
    106106     { 
     
    108108          return isset($this->{$array.'_settings'}[$id]); 
    109109     } 
    110       
     110 
    111111     /** 
    112112     Returns setting value if exists. 
    113       
     113 
    114114     @param    n         <b>string</b>       Setting name 
    115115     @return   <b>mixed</b> 
     
    120120               return $this->settings[$n]['value']; 
    121121          } 
    122            
     122 
    123123          return null; 
    124124     } 
    125       
     125 
     126     /** 
     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 
    126156     /** 
    127157     Magic __get method. 
     
    132162          return $this->get($n); 
    133163     } 
    134       
     164 
    135165     /** 
    136166     Sets a setting in $settings property. This sets the setting for script 
    137167     execution time only and if setting exists. 
    138       
     168 
    139169     @param    n         <b>string</b>       Setting name 
    140170     @param    v         <b>mixed</b>        Setting value 
     
    146176          } 
    147177     } 
    148       
     178 
    149179     /** 
    150180     Magic __set method. 
     
    155185          $this->set($n,$v); 
    156186     } 
    157       
     187 
    158188     /** 
    159189     Creates or updates a setting. 
    160       
     190 
    161191     $type could be 'string', 'integer', 'float', 'boolean' or null. If $type is 
    162192     null and setting exists, it will keep current setting type. 
    163       
     193 
    164194     $value_change allow you to not change setting. Useful if you need to change 
    165195     a setting label or type and don't want to change its value. 
    166       
     196 
    167197     @param    id             <b>string</b>       Setting ID 
    168198     @param    value          <b>mixed</b>        Setting value 
     
    177207               throw new Exception(sprintf(__('%s is not a valid setting id'),$id)); 
    178208          } 
    179            
     209 
    180210          # We don't want to change setting value 
    181211          if (!$value_change) 
     
    187217               } 
    188218          } 
    189            
     219 
    190220          # Setting type 
    191221          if ($type == 'double') 
     
    207237               $type = 'string'; 
    208238          } 
    209            
     239 
    210240          # We don't change label 
    211241          if ($label == null) 
     
    217247               } 
    218248          } 
    219            
     249 
    220250          settype($value,$type); 
    221            
     251 
    222252          $cur = $this->con->openCursor($this->table); 
    223253          $cur->setting_value = ($type == 'boolean') ? (string) (integer) $value : (string) $value; 
    224254          $cur->setting_type = $type; 
    225255          $cur->setting_label = $label; 
    226            
     256 
    227257          #If we are local, compare to global value 
    228258          if (!$global && $this->settingExists($id,true)) 
     
    231261               $same_setting = $g['ns'] == $this->ns && $g['value'] == $value 
    232262               && $g['type'] == $type && $g['label'] == $label; 
    233                 
     263 
    234264               # Drop setting if same value as global 
    235265               if ($same_setting && $this->settingExists($id,false)) { 
     
    239269               } 
    240270          } 
    241            
     271 
    242272          if ($this->settingExists($id,$global) && $this->ns == $this->settings[$id]['ns']) 
    243273          { 
     
    247277                    $where = "WHERE blog_id = '".$this->con->escape($this->blog_id)."' "; 
    248278               } 
    249                 
     279 
    250280               $cur->update($where."AND setting_id = '".$this->con->escape($id)."' AND setting_ns = '".$this->con->escape($this->ns)."' "); 
    251281          } 
     
    255285               $cur->blog_id = $global ? null : $this->blog_id; 
    256286               $cur->setting_ns = $this->ns; 
    257                 
     287 
    258288               $cur->insert(); 
    259289          } 
     
    272302               throw new Exception(__('No namespace specified')); 
    273303          } 
    274            
     304 
    275305          if (!array_key_exists($oldId,$this->settings) || array_key_exists($newId,$this->settings)) { 
    276306               return false; 
     
    291321 
    292322     /** 
    293      Removes an existing setting in a Namespace  
    294       
     323     Removes an existing setting in a Namespace 
     324 
    295325     @param    id        <b>string</b>       Setting ID 
    296326     */ 
     
    300330               throw new Exception(__('No namespace specified')); 
    301331          } 
    302            
     332 
    303333          $strReq = 'DELETE FROM '.$this->table.' '; 
    304            
     334 
    305335          if ($this->blog_id === null) { 
    306336               $strReq .= 'WHERE blog_id IS NULL '; 
     
    308338               $strReq .= "WHERE blog_id = '".$this->con->escape($this->blog_id)."' "; 
    309339          } 
    310            
     340 
    311341          $strReq .= "AND setting_id = '".$this->con->escape($id)."' "; 
    312342          $strReq .= "AND setting_ns = '".$this->con->escape($this->ns)."' "; 
    313            
     343 
    314344          $this->con->execute($strReq); 
    315345     } 
    316       
    317      /** 
    318      Removes all existing settings in a Namespace  
    319       
     346 
     347     /** 
     348     Removes all existing settings in a Namespace 
     349 
    320350     @param    force_global   <b>boolean</b> Force global pref drop 
    321351     */ 
     
    325355               throw new Exception(__('No namespace specified')); 
    326356          } 
    327            
     357 
    328358          $strReq = 'DELETE FROM '.$this->table.' '; 
    329            
     359 
    330360          if (($force_global) || ($this->blog_id === null)) { 
    331361               $strReq .= 'WHERE blog_id IS NULL '; 
     
    335365               $global = false; 
    336366          } 
    337            
     367 
    338368          $strReq .= "AND setting_ns = '".$this->con->escape($this->ns)."' "; 
    339            
     369 
    340370          $this->con->execute($strReq); 
    341            
     371 
    342372          $array = $global ? 'global' : 'local'; 
    343373          unset($this->{$array.'_settings'}); 
    344374          $this->{$array.'_settings'} = array(); 
    345            
     375 
    346376          $array = $global ? 'local' : 'global'; 
    347377          $this->settings = $this->{$array.'_settings'}; 
    348378     } 
    349       
     379 
    350380     /** 
    351381     Returns $settings property content. 
    352       
     382 
    353383     @return   <b>array</b> 
    354384     */ 
     
    357387          return $this->settings; 
    358388     } 
    359       
     389 
    360390     /** 
    361391     Returns $global_settings property content. 
    362       
     392 
    363393     @return   <b>array</b> 
    364394     */ 
  • inc/prepend.php

    r2492 r2496  
    135135# Constants 
    136136define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    137 define('DC_VERSION','2.6-RC'); 
     137define('DC_VERSION','2.7-dev'); 
    138138define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    139139define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • plugins/antispam/index.php

    r2322 r2495  
    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

    r2256 r2495  
    2727{ 
    2828     $default_tab = 'import-links'; 
    29       
     29 
    3030     try 
    3131     { 
     
    3535               throw new Exception(__('Unable to move uploaded file.')); 
    3636          } 
    37            
     37 
    3838          require_once dirname(__FILE__).'/class.dc.importblogroll.php'; 
    3939          try { 
     
    4444               throw $e; 
    4545          } 
    46            
    47            
     46 
     47 
    4848          if (empty($imported)) { 
    4949               unset($imported); 
     
    6969          } 
    7070     } 
    71       
     71 
    7272     dcPage::addSuccessNotice(__('links have been successfully imported.')); 
    73      http::redirect($p_url);   
     73     http::redirect($p_url); 
    7474} 
    7575 
    7676if (!empty($_POST['cancel_import'])) { 
    7777     $core->error->add(__('Import operation cancelled.')); 
    78      $default_tab = 'import-links';      
     78     $default_tab = 'import-links'; 
    7979} 
    8080 
     
    8686     $link_desc = $_POST['link_desc']; 
    8787     $link_lang = $_POST['link_lang']; 
    88       
     88 
    8989     try { 
    9090          $blogroll->addLink($link_title,$link_href,$link_desc,$link_lang); 
     
    102102{ 
    103103     $cat_title = $_POST['cat_title']; 
    104       
     104 
    105105     try { 
    106106          $blogroll->addCategory($cat_title); 
     
    124124          } 
    125125     } 
    126       
     126 
    127127     if (!$core->error->flag()) { 
    128128          dcPage::addSuccessNotice(__('Items have been successfully removed.')); 
     
    145145     foreach ($order as $pos => $l) { 
    146146          $pos = ((integer) $pos)+1; 
    147            
     147 
    148148          try { 
    149149               $blogroll->updateOrder($l,$pos); 
     
    152152          } 
    153153     } 
    154       
     154 
    155155     if (!$core->error->flag()) { 
    156156          dcPage::addSuccessNotice(__('Items order has been successfully updated')); 
     
    172172  <title><?php echo __('Blogroll'); ?></title> 
    173173  <?php echo dcPage::jsConfirmClose('links-form','add-link-form','add-category-form'); ?> 
    174   <?php  
     174  <?php 
    175175     $core->auth->user_prefs->addWorkspace('accessibility'); 
    176176     if (!$core->auth->user_prefs->accessibility->nodragdrop) { 
    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     } 
     
    213214{ 
    214215     $position = (string) $rs->index()+1; 
    215       
     216 
    216217     echo 
    217218     '<tr class="line" id="l_'.$rs->link_id.'">'. 
    218219     '<td class="handle minimal">'.form::field(array('order['.$rs->link_id.']'),2,5,$position,'position','',false,'title="'.__('position').'"').'</td>'. 
    219220     '<td class="minimal">'.form::checkbox(array('remove[]'),$rs->link_id,'','','',false,'title="'.__('select this link').'"').'</td>'; 
    220       
    221       
     221 
     222 
    222223     if ($rs->is_cat) 
    223224     { 
     
    235236          '<td>'.html::escapeHTML($rs->link_lang).'</td>'; 
    236237     } 
    237       
     238 
    238239     echo '</tr>'; 
    239240} 
     
    245246<p class="col"> 
    246247<?php 
    247      echo  
     248     echo 
    248249     form::hidden('links_order',''). 
    249250     form::hidden(array('p'),'blogroll'). 
     
    252253<input type="submit" name="saveorder" value="<?php echo __('Save order'); ?>" /></p> 
    253254<p class="col right"><input type="submit" class="delete" name="removeaction" 
    254       value="<?php echo __('Delete selected links'); ?>"  
     255      value="<?php echo __('Delete selected links'); ?>" 
    255256      onclick="return window.confirm(' 
    256257      <?php echo html::escapeJS(__('Are you sure you want to delete selected links?')); ?>');" /></p> 
     
    330331          '<th>'.__('Description').'</th>'. 
    331332          '</tr>'; 
    332            
     333 
    333334          $i = 0; 
    334335          foreach ($imported as $entry) { 
     
    336337               $title = html::escapeHTML($entry->title); 
    337338               $desc  = html::escapeHTML($entry->desc); 
    338                 
    339                echo  
     339 
     340               echo 
    340341               '<tr><td>'.form::checkbox(array('entries[]'),$i,'','','').'</td>'. 
    341342               '<td nowrap><a href="'.$url.'">'.$title.'</a>'. 
     
    345346               '<td>'.$desc. 
    346347               '<input type="hidden" name="desc['.$i.']" value="'.$desc.'" />'. 
    347                '</td></tr>'."\n";             
     348               '</td></tr>'."\n"; 
    348349               $i++; 
    349350          } 
     
    352353          '<div class="two-cols">'. 
    353354          '<p class="col checkboxes-helpers"></p>'. 
    354            
     355 
    355356          '<p class="col right">'. 
    356357          form::hidden(array('p'),'blogroll'). 
  • plugins/pages/list.php

    r2442 r2496  
    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">'. 
     
    8991     $post_list->display($page,$nb_per_page, 
    9092     '<form action="plugin.php" method="post" id="form-entries">'. 
    91       
     93 
    9294     '%s'. 
    93       
     95 
    9496     '<div class="two-cols">'. 
    9597     '<p class="col checkboxes-helpers"></p>'. 
    96       
     98 
    9799     '<p class="col right"><label for="action" class="classic">'.__('Selected pages action:').'</label> '. 
    98100     form::combo('action',$pages_actions_page->getCombo()). 
  • 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

    r1133 r2495  
    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