Changeset 2800:92f82976773e for admin
- Timestamp:
- 11/18/14 20:44:25 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r2799 r2800 143 143 'NOINDEX,NOFOLLOW,NOARCHIVE' => __("I would like to prevent search engines and archivers from indexing or archiving my blog's content."), 144 144 ); 145 146 # jQuery available versions 147 $jquery_root = dirname(__FILE__).'/../inc/js/jquery'; 148 $jquery_versions_combo = array(__('Default').' ('.DC_DEFAULT_JQUERY.')' => DC_DEFAULT_JQUERY); 149 if (is_dir($jquery_root) && is_readable($jquery_root)) { 150 if (($d = @dir($jquery_root)) !== false) { 151 while (($entry = $d->read()) !== false) { 152 if ($entry != '.' && $entry != '..' && substr($entry, 0, 1) != '.' && is_dir($jquery_root.'/'.$entry)) { 153 if ($entry != DC_DEFAULT_JQUERY) { 154 $jquery_versions_combo[$entry] = $entry; 155 } 156 } 157 } 158 } 159 } 145 160 146 161 # Update a blog … … 253 268 $blog_settings->system->put('robots_policy',$_POST['robots_policy']); 254 269 } 270 $blog_settings->system->put('jquery_version',$_POST['jquery_version']); 255 271 $blog_settings->system->put('prevents_clickjacking',!empty($_POST['prevents_clickjacking'])); 256 272 … … 610 626 611 627 echo 628 '<div class="fieldset"><h4>'.__('jQuery javascript library').'</h4>'. 629 '<p><label for="jquery_version" class="classic">'.__('jQuery version to be loaded for this blog:').'</label>'.' '. 630 form::combo('jquery_version',$jquery_versions_combo,$blog_settings->system->jquery_version). 631 '</p>'. 632 '<br class="clear" />'. //Opera sucks 633 '</div>'; 634 635 echo 612 636 '<div class="fieldset"><h4>'.__('Blog security').'</h4>'. 613 637 '<p><label for="prevents_clickjacking" class="classic">'.
Note: See TracChangeset
for help on using the changeset viewer.