Plugin Directory

Changeset 649989


Ignore:
Timestamp:
01/09/2013 12:32:07 AM (13 years ago)
Author:
rasmusjoh
Message:

2.1.0

Location:
slideshow-manager
Files:
13 added
5 edited

Legend:

Unmodified
Added
Removed
  • slideshow-manager/trunk/localization/slideshow-et.po

    r634363 r649989  
    22msgstr ""
    33"Project-Id-Version: slideshow-manager\n"
    4 "POT-Creation-Date: 2012-12-05 13:41+0200\n"
    5 "PO-Revision-Date: 2012-12-05 13:42+0200\n"
     4"POT-Creation-Date: 2013-01-09 02:26+0200\n"
     5"PO-Revision-Date: 2013-01-09 02:28+0200\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1717"\\slideshow-manager\n"
    1818
    19 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:141
     19#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:154
    2020msgid ""
    2121"Are you sure you want to delete this gallery tab and all of the contents?"
     
    2424"info?"
    2525
    26 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:149
     26#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:162
    2727msgid "Please enter the name for a new gallery tab"
    2828msgstr "Palun sisesta uue slideshow vahekaardi nimi"
    2929
    30 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:149
     30#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:162
    3131msgid "New tab"
    3232msgstr "Uus galerii"
    3333
    34 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:157
     34#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:170
    3535msgid "Are you sure you want to delete this picture?"
    3636msgstr "Oled sa kindel, et soovid pilti kustutada?"
    3737
    38 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:251
     38#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:273
    3939msgid "Wrong file type!"
    4040msgstr "Vale faili tüüp!"
    4141
    42 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:260
     42#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:282
    4343msgid "The picture you uploaded is too small!"
    4444msgstr "Üles laetud pilt on liiga väike"
    4545
    46 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:285
     46#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:307
    4747msgid "Image uploaded successfully"
    4848msgstr "Pilt edukalt üles laetud"
    4949
    50 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:309
     50#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:332
    5151msgid "Gallery successfully deleted!"
    5252msgstr "Galerii edukalt kustutatud!"
    5353
    54 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:353
     54#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:377
    5555msgid "Thumbnail"
    5656msgstr "Ikoon"
    5757
    58 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:354
     58#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:378
    5959msgid "Caption and link address"
    6060msgstr "Pildi kirjeldus ja lingi aadress"
    6161
    62 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:367
     62#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:391
    6363msgid "Upload"
    6464msgstr "Lae üles"
    6565
    66 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:389
     66#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:413
    6767msgid "Update"
    6868msgstr "Uuenda"
    6969
    70 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:392
     70#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:416
    7171msgid "Delete"
    7272msgstr "Kustuta"
    7373
    74 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:403
     74#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:427
    7575msgid "Slideshow Settings"
    7676msgstr "Slideshow Seaded"
    7777
    78 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:410
     78#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:434
    7979msgid "Slide transition effect"
    8080msgstr "Slaidide ülemineku effekt"
    8181
    82 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:422
     82#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:446
    8383msgid "Delay between slides"
    8484msgstr "Viivitus slaidide vahel"
    8585
    86 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:423
     86#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:447
     87#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:524
     88#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:542
    8789msgid "In milliseconds"
    8890msgstr "Millisekundites"
    8991
    90 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:427
     92#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:451
    9193msgid "Enable navigation"
    9294msgstr "Luba navigatsioonimenüü"
    9395
    94 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:434
     96#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:458
    9597msgid "Pause slideshow on hover"
    9698msgstr "Peata slideshow hiirega üle liikudes"
    9799
    98 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:443
     100#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:467
    99101msgid "Advanced Settings"
    100102msgstr "Täpsemad seaded"
    101103
    102 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:443
    103 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:483
     104#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:467
     105#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:562
    104106msgid "Show"
    105107msgstr "Näita"
    106108
    107 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:447
     109#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:471
    108110msgid "Slideshow width"
    109111msgstr "Slideshow laius"
    110112
    111 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:448
    112 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:452
     113#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:472
     114#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:477
    113115msgid "In pixels"
    114116msgstr "Pixlites"
    115117
    116 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:451
     118#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:476
    117119msgid "Slideshow height"
    118120msgstr "Slideshow kõrgus"
    119121
    120 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:456
     122#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:481
    121123msgid "I want to add slider.js manually"
    122124msgstr "Lisan slider.js faili ise"
    123125
    124 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:462
     126#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:488
    125127msgid "I want to add slider.css manually"
    126128msgstr "Lisan slider.css faili ise"
    127129
    128 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:470
     130#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:495
     131msgid "Disable on handheld devices"
     132msgstr "Keela mobiilsetel seadmetel"
     133
     134#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:497
     135msgid "Disable slideshow on handheld devices such as mobiles and tablets"
     136msgstr "Keela slideshow mobiilidele ja tabletitel"
     137
     138#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:503
     139msgid "Squares per width"
     140msgstr "Kaste pikkuse kohta"
     141
     142#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:506
     143msgid "Setting these too high might affect the performance on older devices"
     144msgstr "Liiga suur arv võib vanadel seadmetel probleeme tekitada"
     145
     146#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:512
     147msgid "Squares per height"
     148msgstr "Kaste laiuse kohta"
     149
     150#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:521
     151msgid "Delay beetwen squares"
     152msgstr "Viivitus slaidide vahel"
     153
     154#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:530
     155msgid "Title's opacity"
     156msgstr "Pealkirja läbipaistvus"
     157
     158#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:533
     159msgid "Minimum 0 (transparent), maximum 1.0"
     160msgstr "Miinimum 0 (läbipaistev), maksimum 1.0"
     161
     162#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:539
     163msgid "Speed of title appereance"
     164msgstr "Pealkirja ilmumise kiirus"
     165
     166#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:549
    129167msgid "Delete active gallery tab"
    130168msgstr "Kustuta aktiivne galerii vahekaart"
    131169
    132 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:473
     170#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:552
    133171msgid "This will delete currently active gallery tab and all of its contents"
    134172msgstr "Kustutab hetkel aktiivse galerii vahekaardi ja selle sisu"
    135173
    136 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:480
     174#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:559
    137175msgid "Save Settings"
    138176msgstr "Salvesta seaded"
    139177
    140 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:483
     178#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:562
    141179msgid "How to use"
    142180msgstr "Kuidas kasutada"
    143181
    144 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:488
     182#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:567
    145183msgid "Use as a shortcode:"
    146184msgstr "Kasuta shortcode:"
    147185
    148 #: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:493
     186#: C:\xampp\htdocs\cleanWP\wp-content\plugins\slideshow-manager/slideshow.php:572
    149187msgid "Or as a function:"
    150188msgstr "Või funktsioonina:"
    151 
    152 #~ msgid "Or in your theme file:"
    153 #~ msgstr "Või oma teema failis: "
    154 
    155 #~ msgid "Use PHP function in your theme:"
    156 #~ msgstr "Kasuta PHP fuktsiooni oma teemas:"
    157 
    158 #~ msgid "Or use shortcode in WYSIWYG editor instead:"
    159 #~ msgstr "Või shortcode WYSIWYG redaktoris:"
  • slideshow-manager/trunk/readme.txt

    r637690 r649989  
    44Tags: slideshow, slideshow manage, gallery, coin slider, nivo slider
    55Requires at least: 3.2.1
    6 Tested up to: 3.4.2
    7 Stable tag: 2.0.2
     6Tested up to: 3.5
     7Stable tag: 2.1.0
    88License: GPLv2
    99
     
    7777 - After disabling and deleting the plugin, it will also clean up the created tables
    7878
     79= 2.1 =
     80 - More options
     81 - Bug fixes
     82
    7983== Upgrade Notice ==
    8084
  • slideshow-manager/trunk/slideshow.php

    r635303 r649989  
    55    Description: Slideshow Manager for Wordpress
    66    Author: Rasmus Johanson
    7     Version: 2.0.2
     7    Version: 2.1.0
    88    Author URI: http://github.com/johanson
    99    License: GPLv2
     
    2121    along with this program; if not, write to the Free Software
    2222    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     23
    2324*/
     25
     26/* hmm? */
     27global $slideshow_manager_show_settings = TRUE;
     28global $slideshow_manager_show_advanced_settings = TRUE;
     29global $slideshow_manager_show_howto = TRUE;
    2430
    2531global $table_name;
     
    3036
    3137// Get's called when plugin is installed or reinstalled
    32 register_activation_hook(__FILE__, 'first_install');
    33 
    34 function first_install() {
     38register_activation_hook(__FILE__, 'plugin_activation');
     39
     40function plugin_activation() {
    3541    global $wpdb, $table_name;
    3642
     
    5056    dbDelta($sql);
    5157
     58    // delete_option('slideshow_option');
     59
    5260    // Create default settings
    5361    $default_settings = array(
     
    5967        "height" => "480",
    6068        "jsmanually" => "false",
    61         "cssmanually" => "false");
    62 
    63     delete_option('slideshow_option');
     69        "cssmanually" => "false",
     70        "spw" => "7",
     71        "sph" => "5",
     72        "sDelay" => "30",
     73        "opacity" => "1",
     74        "titleSpeed" => "500",
     75        "mobiles_allowed" => "false");
     76
    6477    update_option('slideshow_option', $default_settings);
    6578}
     
    240253
    241254    $upload = wp_handle_upload($_FILES['async-upload'], 0);
     255
    242256    $url = $upload['url'];
    243257    $file = $upload['file'];
    244258    $type = $upload['type'];
     259
     260    // If there is an error with upload, display it to user
     261    if(isset($upload['error'])) {
     262        echo '<div class="error" style="margin: 0px!important; border: 1px solid #ccc!important; border-radius: 0px;"><p>';
     263        echo $upload['error'];
     264        echo '</p></div>';
     265        return;
     266    }
    245267
    246268    // Get upload dir
     
    293315global $wpdb, $table_name;
    294316
     317// Navigate between tabs
    295318if(isset($_GET['tab'])) {
    296319    $active_tab = $_GET['tab'];
     
    299322}
    300323
    301 
     324// Delete tab (gallery)
    302325if(($_GET['action']) == "delete_gallery") {
    303326
     
    311334}
    312335
     336// Upload new file
    313337if($_REQUEST['action'] == 'wp_handle_upload') {
    314338    slideshow_upload($arg = $active_tab);
     
    448472            <td><input type="number" name="slideshow_option[width]" value="<?php echo $options['width']; ?>"><span class="description" style="margin-left: 10px;"><?php _e('In pixels', 'slideshow'); ?></span></td>
    449473        </tr>
     474       
    450475        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
    451476            <th scope="row"><?php _e('Slideshow height', 'slideshow'); ?></th>
     
    459484            </td>
    460485        </tr>
     486
    461487        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
    462488            <th scope="row"><?php _e('I want to add slider.css manually', 'slideshow'); ?></th>
     
    465491            </td>
    466492        </tr>
     493
     494        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     495            <th scope="row"><?php _e('Disable on handheld devices', 'slideshow'); ?></th>
     496            <td>
     497                <input name="slideshow_option[mobiles_allowed]" type="checkbox" value="true" <?php checked('true', $options['mobiles_allowed']); ?>> <span class="description" style="margin-left: 10px;"><?php _e('Disable slideshow on handheld devices such as mobiles and tablets', 'slideshow'); ?></span>
     498            </td>
     499        </tr>
     500
     501        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     502            <th scope="row">
     503                <?php _e('Squares per width', 'slideshow'); ?>
     504            </th>
     505            <td>
     506                <input type="number" name="slideshow_option[spw]" value="<?php echo $options['spw']; ?>"> <span class="description"><?php _e('Setting these too high might affect the performance on older devices', 'slideshow'); ?></span>
     507            </td>
     508        </tr>
     509
     510        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     511            <th scope="row">
     512                <?php _e('Squares per height', 'slideshow'); ?>
     513            </th>
     514            <td>
     515                <input type="number" name="slideshow_option[sph]" value="<?php echo $options['sph']; ?>">
     516            </td>
     517        </tr>
     518
     519        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     520            <th scope="row">
     521                <?php _e('Delay beetwen squares', 'slideshow'); ?>
     522            </th>
     523            <td>
     524                <input type="number" name="slideshow_option[sDelay]" value="<?php echo $options['sDelay']; ?>"> <span class="description"><?php _e('In milliseconds', 'slideshow'); ?></span>
     525            </td>
     526        </tr>
     527
     528        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     529            <th scope="row">
     530                <?php _e("Title's opacity", 'slideshow'); ?>
     531            </th>
     532            <td>
     533                <input type="number" name="slideshow_option[opacity]" max="1" min="0" step="0.1" value="<?php echo $options['opacity']; ?>"> <span class="description"><?php _e('Minimum 0 (transparent), maximum 1.0', 'slideshow'); ?></span>
     534            </td>
     535        </tr>
     536
     537        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     538            <th scope="row">
     539                <?php _e('Speed of title appereance', 'slideshow'); ?>
     540            </th>
     541            <td>
     542                <input type="number" name="slideshow_option[titleSpeed]" value="<?php echo $options['titleSpeed']; ?>"> <span class="description"><?php _e('In milliseconds', 'slideshow'); ?></span>
     543            </td>
     544        </tr>
     545
    467546        <?php if ($active_tab !== 'default') { /* Default gallery cannot be deleted */ ?>
    468547        <tr valign="top" style="border-bottom: 1px solid #DFDFDF;">
     
    525604<script type="text/javascript">
    526605jQuery(document).ready(function($) {
    527     $('#coin-slider').coinslider({
    528         effect: '<?php echo $options['fx']; ?>',
    529         width: <?php echo $options['width']; ?>,
    530         height: <?php echo $options['height']; ?>,
    531         spw: 7,
    532         sph: 5,
    533         delay: <?php echo $options['delay']; ?>,
    534         sDelay: 30,
    535         opacity: 1,
    536         titleSpeed: 500,
    537         links : true,
    538         navigation: <?php echo $options['navigation']; ?>,
    539         hoverPause: <?php echo $options['hoverPause']; ?>
    540 
    541     });
     606    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
     607        <?php if ($options['mobiles_allowed'] == true) { ?>
     608        return false;
     609        <?php } ?>
     610    } else {
     611        $('#coin-slider').coinslider({
     612            effect: '<?php echo $options['fx']; ?>',
     613            width: <?php echo $options['width']; ?>,
     614            height: <?php echo $options['height']; ?>,
     615            spw: <?php echo $options['spw']; ?>,
     616            sph: <?php echo $options['sph']; ?>,
     617            delay: <?php echo $options['delay']; ?>,
     618            sDelay: <?php echo $options['sDelay']; ?>,
     619            opacity: <?php echo $options['opacity']; ?>,
     620            titleSpeed: <?php echo $options['titleSpeed']; ?>,
     621            navigation: <?php echo $options['navigation']; ?>,
     622            hoverPause: <?php echo $options['hoverPause']; ?>
     623
     624        });
     625    }
    542626});
    543627</script>
    544628
    545 <div id="coin-slider">
     629<div id="coin-slider" style="width: <?php echo $options['width']; ?>px; height: <?php echo $options['height']; ?>px;">
    546630<?php
    547631
     
    561645
    562646function url($var1, $var2){
    563 
    564     if($var2 == 'http://' || $var2 == '') {
     647   
     648    if ($var2 == 'http://' || $var2 == '') {
    565649        $output = '<a href="javascript:void(0);">'.
    566650        "\n";
    567651    }
    568652
    569     if($var1 == 'start') {
     653    if ($var1 == 'start') {
    570654        if($var2 == 'http://' || $var2 == '') {
    571655            $output = '<a href="javascript:void(0);">'.
     
    576660        }
    577661    }
    578     if($var1 == 'end') {
     662
     663    if ($var1 == 'end') {
    579664        $output = '</a>'.
    580665        "\n";
    581666    }
    582 
    583667    return $output;
    584668}
     
    591675    register_uninstall_hook(__FILE__, 'delete_slideshow_database');
    592676}
    593  /**
    594  * Delete options in database
    595  */
     677
     678// Delete leftovers in database
    596679function delete_slideshow_database() {
    597680    global $wpdb, $table_name;
Note: See TracChangeset for help on using the changeset viewer.