Plugin Directory

Changeset 662458


Ignore:
Timestamp:
02/02/2013 01:52:33 PM (13 years ago)
Author:
paulgpetty
Message:

small ui tweaks & some optimization

Location:
wp-time-machine/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-time-machine/trunk/css/wp-time-machine.css

    r661480 r662458  
    88}
    99
    10 #wpTimeMachine p {
    11 margin:10px 0;
    12 padding:5px 0;
    13 }
    14 
    15 #wpTimeMachine p.help {
    16 position:absolute;
    17 top:25px;
    18 right:-20px;
    19 width:480px;
    20 background-color:#ffc;
    21 border:2px solid #999;
    22 -moz-border-radius:4px;
    23 -webkit-border-radius:4px;
    24 padding:15px;
    25 z-index:9999;
    26 line-height: 1.5;
    27 text-align:justify;
    28 }
    29 
    30 #wpTimeMachine p.help a {
    31 font-size:12px;
    32 }
    33 
    34 #wpTimeMachine a.help_link {
    35 float:right;
    36 color:#ccc;
    37 }
    38 
    39 #wpTimeMachine a.help_link:hover {
    40 color:#21759B;
    41 }
    42 
    43 #wpTimeMachine p.help a.close {
     10#wpTimeMachine a.close {
    4411position: absolute;
    4512right: -5px;
     
    5522}
    5623
     24#wpTimeMachine p {
     25margin:10px 0;
     26padding:5px 0;
     27}
     28
     29#wpTimeMachine p.help {
     30position:absolute;
     31top:25px;
     32right:-20px;
     33width:480px;
     34background-color:#ffc;
     35border:2px solid #999;
     36-moz-border-radius:4px;
     37-webkit-border-radius:4px;
     38padding:15px;
     39z-index:9999;
     40line-height: 1.5;
     41text-align:justify;
     42}
     43
     44#wpTimeMachine p.help a {
     45font-size:12px;
     46}
     47
     48#wpTimeMachine a.help_link {
     49float:right;
     50color:#ccc;
     51}
     52
     53#wpTimeMachine a.help_link:hover {
     54color:#21759B;
     55}
     56
    5757#wpTimeMachine div#RecentInfo {
    5858width:650px;
     
    6363margin:10px 0;
    6464padding:10px 25px;
     65position: relative;
     66}
     67
     68#wpTimeMachine div#RecentInfo a.close {
     69background-color:#fff;
    6570}
    6671
     
    108113#wpTimeMachine fieldset.last {
    109114border:0;
     115margin-bottom: 50px;
    110116}
    111117
     
    143149height:auto;
    144150font-weight:700;
    145 margin:0 265px 0 10px;
     151margin:0 265px 0 18px;
    146152}
    147153
     
    263269}
    264270
    265 
    266271#show_info,
    267272#show_options {
    268273padding:auto;
    269 }
    270 
     274margin: 0;
     275}
     276
     277#show_info {
     278border-radius: 0 4px 4px 0;
     279}
     280
     281#show_options {
     282border-radius: 4px 0 0 4px;
     283}
     284
  • wp-time-machine/trunk/includes/wpTimeMachineCore.php

    r661480 r662458  
    301301
    302302        <?php
    303 
    304         echo "";
    305303   
    306304        if ($wpTimeMachineOptionsStorage['recent_archive_name'] != "") {
     
    310308            echo "<span id='recent_archive_info'>Your archives are ready, they took about " . $wpTimeMachineOptionsStorage['recent_archive_duration'] . " seconds to create;";
    311309            echo " and are in your <b class=\"offsite_name\">".$offsite_name."</b> account (in this ".strtolower($remote_path_label).": ".$wpTimeMachineOptionsStorage['recent_archive_path']." as a ".$wpTimeMachineOptionsStorage['recent_archive_format']." file).</span>";
    312             echo "<p><a href='javascript:;' onclick='javascript:jQuery(\"#RecentInfo\").fadeSliderToggle()'>Close this</a></p>";
     310            echo "<p><a href='javascript:;' onclick='jQuery(\"#RecentInfo\").toggle()' class=\"close\">Close this</a></p>";
    313311            echo "</div>";
    314312   
     
    318316            echo "<h3>Your Archive Information:</h3>";
    319317            echo "Stored on <b class=\"offsite_name\">".$offsite_name."</b> (in this ".strtolower($remote_path_label).": ".$wpTimeMachineOptionsStorage['recent_archive_path']." as a ".$wpTimeMachineOptionsStorage['recent_archive_format']." file).</span>";
    320             echo "<p><a href='javascript:;' onclick='javascript:jQuery(\"#RecentInfo\").fadeSliderToggle()'>Close this</a></p>";
     318            echo "<p><a href='javascript:;' onclick='jQuery(\"#RecentInfo\").toggle()' class=\"close\">Close this</a></p>";
    321319            echo "</div>";
    322320   
     
    410408                <div>
    411409
    412                     <a class="button-secondary" href="javascript:;" id="show_options">Plugin Options</a> &nbsp;&nbsp;
    413                     <a class="button-secondary" href="javascript:;" id="show_info">Plugin Help</a>
     410                    <a class="button-secondary" href="javascript:;" id="show_options">Plugin Options</a><a class="button-secondary" href="javascript:;" id="show_info">Plugin Help</a>
    414411
    415412                    <input class="button-secondary sb" type="submit" id="submit_package_request" value="Generate wp Time Machine archive" />
     
    477474                        ?>
    478475
    479                         &nbsp;&nbsp; <a href="javascript:;" onclick="javascript:show_help('#wpTimeMachine_learn_about_formats')" class="help_link"><?php _e("Learn More"); ?></a>
     476                        &nbsp;&nbsp; <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_formats')" class="help_link"><?php _e("Learn More"); ?></a>
    480477
    481478                        <p id="wpTimeMachine_learn_about_formats" class="help" style="display:none">
     
    507504                    ?>
    508505
    509                         &nbsp;&nbsp; <a href="javascript:;" onclick="javascript:show_help('#wpTimeMachine_learn_about_post_pub')" class="help_link"><?php _e("Learn More"); ?></a>
     506                        &nbsp;&nbsp; <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_post_pub')" class="help_link"><?php _e("Learn More"); ?></a>
    510507
    511508                        <p id="wpTimeMachine_learn_about_post_pub" class="help" style="display:none">
     
    537534                    ?>
    538535
    539                         &nbsp;&nbsp; <a href="javascript:;" onclick="javascript:show_help('#wpTimeMachine_learn_about_timestamps')" class="help_link"><?php _e("Learn More"); ?></a>
     536                        &nbsp;&nbsp; <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_timestamps')" class="help_link"><?php _e("Learn More"); ?></a>
    540537
    541538                        <p id="wpTimeMachine_learn_about_timestamps" class="help" style="display:none">
     
    568565                    ?>
    569566
    570                         &nbsp;&nbsp; <a href="javascript:;" onclick="javascript:show_help('#wpTimeMachine_learn_about_cache')" class="help_link"><?php _e("Learn More"); ?></a>
     567                        &nbsp;&nbsp; <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_cache')" class="help_link"><?php _e("Learn More"); ?></a>
    571568
    572569                        <p id="wpTimeMachine_learn_about_cache" class="help" style="display:none">
     
    598595                        ?>
    599596
    600                         &nbsp;&nbsp; <a href="javascript:;" onclick="javascript:show_help('#wpTimeMachine_learn_about_logging')" class="help_link"><?php _e("Learn More"); ?></a>
     597                        &nbsp;&nbsp; <a href="javascript:;" onclick="show_help('#wpTimeMachine_learn_about_logging')" class="help_link"><?php _e("Learn More"); ?></a>
    601598
    602599                        <p id="wpTimeMachine_learn_about_logging" class="help" style="display:none">
     
    10101007function wpTimeMachine_enqueue_scripts()
    10111008{
    1012    
    1013     // wp_deregister_script( 'jquery' );
    1014     // wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');
    1015     // wp_enqueue_script( 'jquery' );
    1016    
    1017     // wp_deregister_script( 'jquery-ui-core' );
    1018     // wp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js' );
    1019     // wp_enqueue_script( 'jquery-ui-core' );
    10201009   
    10211010    wp_deregister_script( 'jquery-form' );
     
    10261015    wp_enqueue_script( 'jquery.validate' );
    10271016   
    1028     wp_register_script( 'jquery.fadeSliderToggle', wpcontent_url . '/plugins/wp-time-machine/javascript/jquery.fadeSliderToggle.js' );
    1029     wp_enqueue_script( 'jquery.fadeSliderToggle' );
    1030    
    10311017    wp_register_script( 'jquery.simplemodal-1.3.5.min', wpcontent_url . '/plugins/wp-time-machine/javascript/jquery.simplemodal-1.3.5.min.js' );
    10321018    wp_enqueue_script( 'jquery.simplemodal-1.3.5.min' );
     
    10361022function wpTimeMachine_head()
    10371023{
    1038 
    1039     echo '<!-- wpTimeMachine_head -->                                                                                                             ' . "\n";
    1040     echo '<link type="text/css" rel="stylesheet" href="' . wpcontent_url . '/plugins/wp-time-machine/css/wp-time-machine.css" />                  ' . "\n";
    1041     echo '<!-- wpTimeMachine_head -->                                                                                                             ' . "\n";
     1024   
     1025    echo '<link type="text/css" rel="stylesheet" href="' . wpcontent_url . '/plugins/wp-time-machine/css/wp-time-machine.css" />' . "\n";
    10421026
    10431027}
  • wp-time-machine/trunk/readme.txt

    r661130 r662458  
    44Requires at least: 3.0.0
    55Tested up to: 3.5.1
    6 Stable tag: 3.0.00
     6Stable tag: 3.0.10
    77
    88== Description ==
  • wp-time-machine/trunk/wp-time-machine.php

    r661130 r662458  
    44Plugin URI: http://wordpress.org/extend/plugins/wp-time-machine/
    55Description: Creates an archive of all your WordPress Data & Files and then stores them on Dropbox, Amazon's S3, or your FTP host.
    6 Version: 3.0.00
     6Version: 3.0.10
    77Author: Paul G Petty
    88Author URI: http://wpTimeMachine.com
    99*/
    1010
    11 // wp Time Machine, Version:
     11define( 'wpTimeMachineVersion', '3.0.10' );
    1212
    13     define( 'wpTimeMachineVersion', '3.0.00' );
     13define( 'wpcontent_dir',    ( defined('WP_CONTENT_DIR') ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content' );
     14define( 'wpcontent_url',    ( defined('WP_CONTENT_URL') ) ? WP_CONTENT_URL : get_option('siteurl') . '/wp-content' );
     15define( 'wpplugin_dir',     ( defined('WP_PLUGIN_DIR')  ) ? WP_PLUGIN_DIR  : wpcontent_dir . '/plugins' );
     16define( 'wp_install_dir',   str_replace( get_option('home'), "", get_option('siteurl') ) );
     17define( 'wp_version',       $wp_version );
     18define( 'wp_installer_url', 'http://wordpress.org/wordpress-'.wp_version ); // no file ext. needed, $format gets appended later   
     19define( 'wp_table_prefix',  $table_prefix );
    1420
    15 // wp specific definitions:
     21define('wpTimeMachine_apache_log', 'false');
    1622
    17     define( 'wpcontent_dir',    ( defined('WP_CONTENT_DIR') ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content' );
    18     define( 'wpcontent_url',    ( defined('WP_CONTENT_URL') ) ? WP_CONTENT_URL : get_option('siteurl') . '/wp-content' );
    19     define( 'wpplugin_dir',     ( defined('WP_PLUGIN_DIR')  ) ? WP_PLUGIN_DIR  : wpcontent_dir . '/plugins' );
    20     define( 'wp_install_dir',   str_replace( get_option('home'), "", get_option('siteurl') ) );
    21     define( 'wp_version',       $wp_version );
    22     define( 'wp_installer_url', 'http://wordpress.org/wordpress-'.wp_version ); // no file ext. needed, $format gets appended later   
    23     define( 'wp_table_prefix',  $table_prefix );
    24        
    25 // wp Time Machine definitions:
     23$wpTimeMachineOptions = array(
     24    'use_log' => 'true',
     25    'show_info' => 'false',
     26    'show_option' => 'true',
     27    'offsite' => 'dropbox',
     28    'use_timestamp_dir' => 'false',
     29    'format' => 'zip',
     30    'use_post_pub' => 'false',
     31    'exclude_cache' => 'true',
     32    'remote_user' => 'true',
     33    'remote_pass_stored' => 'false',
     34    'remote_host' => '',
     35    'remote_pass' => '',
     36    'remote_path' => '',
     37    'recent_archive_name' => '',
     38    'recent_archive_path' => '',
     39    'recent_archive_format' => '',
     40    'recent_archive_size' => '',
     41    'recent_archive_duration' => ''
     42);
    2643
    27     define('wpTimeMachine_apache_log', 'false');
     44define( 'wpTimeMachineOptions', serialize($wpTimeMachineOptions));
    2845
    29     $wpTimeMachineOptions = array(
     46define( 'wpcontent_archive',        wpcontent_dir . "/wpTimeMachine-content-files" );
     47define( 'wpdata_sql',               wpcontent_dir . "/wpTimeMachine-data-files.sql" );
     48define( 'wpdata_sqlgz',             wpcontent_dir . "/wpTimeMachine-data-files.sql.gz" );
     49define( 'htaccess_archive',         wpcontent_dir . "/wpTimeMachine-htaccess.txt" );   
     50define( 'restoration',              wpcontent_dir . "/wpTimeMachine-RestorationScript.sh" );
     51define( 'instructions',             wpcontent_dir . "/wpTimeMachine-Instructions.txt" ); 
     52define( 'wpTimeMachineLog',         wpcontent_dir . "/wpTimeMachine_log.txt" );       
     53define( 'wpTimeMachineOptionsFile', wpcontent_dir . "/wpTimeMachine_options.php" );
    3054
    31         'use_log' => 'true',
    32         'show_info' => 'false',
    33         'show_option' => 'true',
    34         'offsite' => 'dropbox',
    35         'use_timestamp_dir' => 'false',
    36         'format' => 'zip',
    37         'use_post_pub' => 'false',
    38         'exclude_cache' => 'true',
    39         'remote_user' => 'true',
    40         'remote_pass_stored' => 'false',
    41         'remote_host' => '',
    42         'remote_pass' => '',
    43         'remote_path' => '',
    44         'recent_archive_name' => '',
    45         'recent_archive_path' => '',
    46         'recent_archive_format' => '',
    47         'recent_archive_size' => '',
    48         'recent_archive_duration' => ''
     55$wpTimeMachineOffsites = array(
     56    'dropbox' => array(
     57        'remote_user_label' => 'Email',
     58        'remote_pass_label' => 'Password',
     59        'remote_path_label' => 'Directory',
     60        'offsite_name'      => 'Dropbox',
     61        'offsite_short'     => 'dropbox',
     62        'offsite'           => 'dropbox'
     63    ),
     64    's3' => array(
     65        'remote_user_label' => 'S3 Key',
     66        'remote_pass_label' => 'S3 Secret',
     67        'remote_path_label' => 'Bucket',
     68        'offsite_name'      => 'Amazon S3',
     69        'offsite_short'     => 's3',
     70        'offsite'           => 'aws_s3'
     71    ),
     72    'ftp' => array(
     73        'remote_user_label' => 'Username',
     74        'remote_pass_label' => 'Password',
     75        'remote_path_label' => 'Directory',
     76        'offsite_name'      => 'FTP',
     77        'offsite_short'     => 'ftp',
     78        'offsite'           => 'ftp'
     79    )
     80);
    4981
    50     );
     82define( 'wpTimeMachineOffsites', serialize($wpTimeMachineOffsites) );
    5183
    52     define( 'wpTimeMachineOptions',         serialize($wpTimeMachineOptions));   
    53     define( 'wpcontent_archive',            wpcontent_dir . "/wpTimeMachine-content-files" );
    54     define( 'wpdata_sql',                   wpcontent_dir . "/wpTimeMachine-data-files.sql" );
    55     define( 'wpdata_sqlgz',                 wpcontent_dir . "/wpTimeMachine-data-files.sql.gz" );
    56     define( 'htaccess_archive',             wpcontent_dir . "/wpTimeMachine-htaccess.txt" );   
    57     define( 'restoration',                  wpcontent_dir . "/wpTimeMachine-RestorationScript.sh" );
    58     define( 'instructions',                 wpcontent_dir . "/wpTimeMachine-Instructions.txt" ); 
    59     define( 'wpTimeMachineLog',             wpcontent_dir . "/wpTimeMachine_log.txt" );       
    60     define( 'wpTimeMachineOptionsFile',     wpcontent_dir . "/wpTimeMachine_options.php" );       
     84$wpTimeMachineText = array(
     85    'use_log_labels' => array(
     86        "Logging: Enabled",
     87        "Logging: Disabled"
     88    ),
     89    'view_log_label' => "View log",
     90    'clear_log_label' => "Clear log",
     91    'format_labels' => array(
     92        "Use tarball (tar.gz) files",
     93        "Use Zip files"
     94    ),
     95    'use_post_pub_labels' => array(
     96        "Post Publish Event: Enabled",
     97        "Post Publish Event: Disabled"
     98    ),
     99    'use_timestamp_dir_labels' => array(
     100        "Time-stamped Subdirectories: Enabled",
     101        "Time-stamped Subdirectories: Disabled"
     102    ),
     103    'exclude_cache_labels' => array(
     104        "Cache Related Directories: Excluded",
     105        "Cache Related Directories: Included"
     106    ),
     107    'remote_pass_storage_labels' => array(
     108        "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Enabled",
     109        "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Disabled"
     110    )
     111);
    61112
    62     $wpTimeMachineOffsites = array(
    63    
    64         'dropbox' => array(
    65    
    66             'remote_user_label' => 'Email',
    67             'remote_pass_label' => 'Password',
    68             'remote_path_label' => 'Directory',
    69             'offsite_name'      => 'Dropbox',
    70             'offsite_short'     => 'dropbox',
    71             'offsite'           => 'dropbox'
    72    
    73         ),
    74    
    75         's3' => array(
    76        
    77             'remote_user_label' => 'S3 Key',
    78             'remote_pass_label' => 'S3 Secret',
    79             'remote_path_label' => 'Bucket',
    80             'offsite_name'      => 'Amazon S3',
    81             'offsite_short'     => 's3',
    82             'offsite'           => 'aws_s3'
    83    
    84         ),
    85        
    86         'ftp' => array(
    87        
    88             'remote_user_label' => 'Username',
    89             'remote_pass_label' => 'Password',
    90             'remote_path_label' => 'Directory',
    91             'offsite_name'      => 'FTP',
    92             'offsite_short'     => 'ftp',
    93             'offsite'           => 'ftp'
    94            
    95         )
    96        
    97     );
    98    
    99     define( 'wpTimeMachineOffsites', serialize($wpTimeMachineOffsites) );
     113define( 'wpTimeMachineText', serialize($wpTimeMachineText) );
    100114
    101        
    102     $wpTimeMachineText = array(
    103    
    104         'use_log_labels' => array(
    105             "Logging: Enabled",
    106             "Logging: Disabled"
    107         ),
    108        
    109         'view_log_label' => "View log",
    110        
    111         'clear_log_label' => "Clear log",
    112    
    113         'format_labels' => array(
    114             "Use tarball (tar.gz) files",
    115             "Use Zip files"
    116         ),
    117    
    118         'use_post_pub_labels' => array(
    119             "Post Publish Event: Enabled",
    120             "Post Publish Event: Disabled"
    121         ),
    122        
    123         'use_timestamp_dir_labels' => array(
    124             "Time-stamped Subdirectories: Enabled",
    125             "Time-stamped Subdirectories: Disabled"
    126         ),
    127    
    128         'exclude_cache_labels' => array(
    129             "Cache Related Directories: Excluded",
    130             "Cache Related Directories: Included"
    131         ),
    132    
    133         'remote_pass_storage_labels' => array(
    134             "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Enabled",
    135             "<span class='remote_pass_label'>\" + remote_pass_label + \"</span> stored: Disabled"
    136         )
    137    
    138     );
    139    
    140     define( 'wpTimeMachineText', serialize($wpTimeMachineText) );
     115require('includes/DropboxUploader.php');
     116require('includes/S3.php');
     117require( 'includes/PEAR/Tar.php' );
     118require( 'includes/PEAR/Zip.php' );
     119require( 'includes/wpTimeMachineCore.php' );
    141120
    142 // offsite specific libraries
    143 
    144     require('includes/DropboxUploader.php');
    145     require('includes/S3.php');
    146      
    147 // "Universal" includes:
    148      
    149     require( 'includes/PEAR/Tar.php' );
    150     require( 'includes/PEAR/Zip.php' );
    151 
    152 // The Core functionality:
    153  
    154     require( 'includes/wpTimeMachineCore.php' );
    155 
Note: See TracChangeset for help on using the changeset viewer.