WordPress.org

Plugin Directory

Changeset 754306


Ignore:
Timestamp:
08/09/13 23:07:06 (4 years ago)
Author:
gopiplus
Message:

New admin layout.

Location:
woo-superb-slideshow-transition-gallery-with-random-effect/trunk
Files:
6 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • woo-superb-slideshow-transition-gallery-with-random-effect/trunk/readme.txt

    r715651 r754306  
    77Requires at least: 3.4 
    88Tested up to: 3.6 
    9 Stable tag: 7.0 
     9Stable tag: 7.1 
    1010License: GPLv2 or later 
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    106106Tested up to 3.6 
    107107 
     108= 7.1 = 
     109 
     110Added security feature. 
     111New admin layout. 
     112 
    108113== Upgrade Notice == 
    109114 
     
    132137Tested up to 3.6 
    133138 
     139= 7.1 = 
     140 
     141Added security feature. 
     142New admin layout. 
     143 
  • woo-superb-slideshow-transition-gallery-with-random-effect/trunk/woo-superb-slideshow-transition-gallery-with-random-effect.php

    r715651 r754306  
    66Description: Don't just display images, showcase them in style using this gallery effect plugin. Randomly chosen Transitional effects in IE browsers.   
    77Author: Gopi.R 
    8 Version: 7.0 
     8Version: 7.1 
    99Author URI: http://www.gopiplus.com/work/2010/09/19/woo-superb-slideshow-transition-gallery-with-random-effect/ 
    1010Donate link: http://www.gopiplus.com/work/2010/09/19/woo-superb-slideshow-transition-gallery-with-random-effect/ 
     
    1515global $wpdb, $wp_version; 
    1616define("WP_woo_TABLE", $wpdb->prefix . "woo_transition"); 
     17define("WP_woo_UNIQUE_NAME", "woo-superb-slideshow"); 
     18define("WP_woo_TITLE", "Woo superb slideshow"); 
     19define('WP_woo_FAV', 'http://www.gopiplus.com/work/2010/09/19/woo-superb-slideshow-transition-gallery-with-random-effect/'); 
     20define('WP_woo_LINK', 'Check official website for more information <a target="_blank" href="'.WP_woo_FAV.'">click here</a>'); 
    1721 
    1822function woo_show( $type = "widget" , $random = "YES" )  
     
    141145function woo_admin_option()  
    142146{ 
    143     echo "<div class='wrap'>"; 
    144     echo "<h2>Woo superb slideshow transition gallery with random effect</h2>";  
    145      
    146     $woo_title = get_option('woo_title'); 
    147     $woo_pause = get_option('woo_pause'); 
    148     $woo_transduration = get_option('woo_transduration'); 
    149     $woo_random = get_option('woo_random'); 
    150     $woo_type = get_option('woo_type'); 
    151     if (@$_POST['woo_submit'])  
    152     { 
    153         $woo_title = stripslashes($_POST['woo_title']); 
    154         $woo_pause = stripslashes($_POST['woo_pause']); 
    155         $woo_transduration = stripslashes($_POST['woo_transduration']); 
    156         $woo_random = stripslashes($_POST['woo_random']); 
    157         $woo_type = stripslashes($_POST['woo_type']); 
    158          
    159         update_option('woo_title', $woo_title ); 
    160         update_option('woo_pause', $woo_pause ); 
    161         update_option('woo_transduration', $woo_transduration ); 
    162         update_option('woo_random', $woo_random ); 
    163         update_option('woo_type', $woo_type ); 
    164     } 
    165     ?><form name="form_woo" method="post" action=""> 
    166     <?php 
    167     echo '<p>Title:<br><input  style="width: 450px;" maxlength="200" type="text" value="'; 
    168     echo $woo_title . '" name="woo_title" id="woo_title" /> Widget title.</p>'; 
    169     echo '<p>Pause:<br><input  style="width: 100px;" maxlength="4" type="text" value="'; 
    170     echo $woo_pause . '" name="woo_pause" id="woo_pause" /> Only Number / Pause between content change (millisec).</p>'; 
    171     echo '<p>Transduration:<br><input  style="width: 100px;" maxlength="4" type="text" value="'; 
    172     echo $woo_transduration . '" name="woo_transduration" id="woo_transduration" /> Only Number / Duration of transition (affects only IE users).</p>'; 
    173     echo '<p>Random :<br><input  style="width: 100px;" type="text" value="'; 
    174     echo $woo_random . '" name="woo_random" id="woo_random" /> (YES/NO)</p>'; 
    175     echo '<p>Type:<br><input  style="width: 150px;" type="text" value="'; 
    176     echo $woo_type . '" name="woo_type" id="woo_type" /> This field is to group the images.</p>'; 
    177     echo '<input name="woo_submit" id="woo_submit" class="button-primary" value="Submit" type="submit" />'; 
    178     ?> 
    179     </form> 
    180     <table width="100%"> 
    181         <tr> 
    182           <td align="right"><input name="text_management" lang="text_management" class="button-primary" onClick="location.href='options-general.php?page=woo-superb-slideshow-transition-gallery-with-random-effect/image-management.php'" value="Go to - Image Management" type="button" /> 
    183             <input name="setting_management" lang="setting_management" class="button-primary" onClick="location.href='options-general.php?page=woo-superb-slideshow-transition-gallery-with-random-effect/woo-superb-slideshow-transition-gallery-with-random-effect.php'" value="Go to - Gallery Setting" type="button" /> 
    184           </td> 
    185         </tr> 
    186       </table> 
    187     <?php 
    188     include_once("help.php"); 
    189     echo "</div>"; 
     147    global $wpdb; 
     148    $current_page = isset($_GET['ac']) ? $_GET['ac'] : ''; 
     149    switch($current_page) 
     150    { 
     151        case 'edit': 
     152            include('pages/image-management-edit.php'); 
     153            break; 
     154        case 'add': 
     155            include('pages/image-management-add.php'); 
     156            break; 
     157        case 'set': 
     158            include('pages/image-setting.php'); 
     159            break; 
     160        default: 
     161            include('pages/image-management-show.php'); 
     162            break; 
     163    } 
    190164} 
    191165 
     
    215189function woo_add_to_menu()  
    216190{ 
    217     add_options_page('Woo superb slideshow', 'Woo superb slideshow', 'manage_options', __FILE__, 'woo_admin_option' ); 
    218     add_options_page('Woo superb slideshow', '', 'manage_options', "woo-superb-slideshow-transition-gallery-with-random-effect/image-management.php",'' ); 
     191    add_options_page('Woo superb slideshow', 'Woo superb slideshow', 'manage_options', 'woo-superb-slideshow', 'woo_admin_option' ); 
    219192} 
    220193 
Note: See TracChangeset for help on using the changeset viewer.