Changeset 211989
- Timestamp:
- 03/01/2010 11:18:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
file-proxy/trunk/com/twothirdsdesign/file-proxy/admin/admin.php
r211919 r211989 129 129 <th><label for="uninstall"><?php _e( 'Unistall:', $this->domain ); ?></label></th> 130 130 <td> 131 <div class="on_off ">131 <div class="on_off danger"> 132 132 <input id="uninstall" name="uninstall" type="checkbox" <?php if((boolean)$this->m->get_option("uninstall")) echo "checked=checked" ?> value="true" /> 133 133 </div> … … 140 140 <th><label for="url-key"><?php _e( 'Url Key:', $this->domain ); ?></label></th> 141 141 <td> 142 <input id="url-key" name="url-key" type="text" value="<?php echo $this->m->get_option('url-key'); ?>" size="30" /><br /> 143 <?php _e( 'If you want to change the url your file are referenced through, ie http://www.example.com/?%url-key%=xxx, you can enter it here.', $this->domain ); ?> 142 <span id="sample-url-key"><?php bloginfo('url') ?>/<input id="url-key-feild" name="url-key" value="<?php echo $this->m->get_option('url-key') ?>" type="text"><span id="editable-post-name" class="hide-if-no-js" title="Click to edit this part of the permalink"><?php echo $this->m->get_option('url-key') ?></span>/xxx</span> 143 144 <span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button hide-if-no-js" onclick="editUrlKey(); return false;">edit</a></span> 145 <br/> 146 <label for="url-key"><?php _e( 'If you want to change the url your file are referenced through, ie http://www.example.com/?%url-key%=xxx, you can enter it here.', $this->domain ); ?></label--> 144 147 </td> 145 148 </tr> … … 148 151 <th><label for="cache"><?php _e( 'Caching:', $this->domain ); ?></label></th> 149 152 <td> 150 <input id="cache" name="cache" type="checkbox" <?php if ( $this->m->get_option('cache') == "on" ) echo 'checked="checked"'; ?> value="true" /> 153 <div class="on_off"> 154 <input id="cache" name="cache" type="checkbox" <?php if ( $this->m->get_option('cache') == "on" ) echo 'checked="checked"'; ?> value="true" /> 155 </div> 151 156 <label for="cache"><?php _e( 'Are you using an <acronym title="Search Engine Optimization">SEO</acronym> plugin? Select this to disable the theme\'s meta and indexing features.', $this->domain ); ?></label> 152 157 </td> … … 158 163 </tr> 159 164 <?php endif; ?> 160 165 <script type="text/javascript"> 166 jQuery(document).ready( function() { 167 jQuery('.on_off :checkbox').iphoneStyle(); 168 jQuery('#url-key-feild').hide(); 169 }); 170 function editUrlKey(){ 171 jQuery('#url-key-feild').toggle(); 172 jQuery('#editable-post-name').toggle(); 173 } 174 175 </script> 161 176 </table><!-- .form-table --><?php 162 177 }
Note: See TracChangeset
for help on using the changeset viewer.