Plugin Directory

Changeset 211989


Ignore:
Timestamp:
03/01/2010 11:18:52 PM (16 years ago)
Author:
geraint
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • file-proxy/trunk/com/twothirdsdesign/file-proxy/admin/admin.php

    r211919 r211989  
    129129            <th><label for="uninstall"><?php _e( 'Unistall:', $this->domain ); ?></label></th>
    130130            <td>
    131                 <div class="on_off">
     131                <div class="on_off danger">
    132132                    <input id="uninstall" name="uninstall" type="checkbox" <?php if((boolean)$this->m->get_option("uninstall")) echo "checked=checked" ?> value="true" />               
    133133                </div>
     
    140140            <th><label for="url-key"><?php _e( 'Url Key:', $this->domain ); ?></label></th>
    141141            <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-->
    144147            </td>
    145148        </tr>
     
    148151            <th><label for="cache"><?php _e( 'Caching:', $this->domain ); ?></label></th>
    149152            <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>
    151156                <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>
    152157            </td>
     
    158163        </tr>   
    159164        <?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>
    161176    </table><!-- .form-table --><?php
    162177    }
Note: See TracChangeset for help on using the changeset viewer.