Plugin Directory

Changeset 195188


Ignore:
Timestamp:
01/19/2010 03:29:12 AM (16 years ago)
Author:
malcalevak
Message:

Everything except for final localization blocking, localization files tweaking, and readme updates.

Location:
wp-slimbox2/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-slimbox2/trunk/adminpage.php

    r194136 r195188  
    11<?php
     2//modify translation files, add all defaults to settings
    23    $easingArray = array(swing,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInQuart,easeOutQuart,easeInOutQuart,easeInQuint,easeOutQuint,easeInOutQuint,easeInSine,easeOutSine,easeInOutSine,easeInExpo,easeOutExpo,easeInOutExpo,easeInCirc,easeOutCirc,easeInOutCirc,easeInElastic,easeOutElastic,easeInOutElastic,easeInBack,easeOutBack,easeInOutBack,easeInBounce,easeOutBounce,easeInOutBounce);
    34    $overlayOpacity = array(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1);
     
    56    $captions = array('a-title','img-alt','img-title','href','None');
    67    global $options;
    7     //combine selection of lightbox and any non-lightboxed images into single selector
    88?>
    99<div class="wrap">
     
    3838            )
    3939        );
    40         echo '<div id="message" class="updated fade"><p><strong>Settings saved.</strong></p></div>';
     40        echo '<div id="message" class="updated fade"><p><strong>'.__('Settings Saved', 'wp-slimbox2').'.</strong></p></div>';
    4141    }
    4242    $caption = $options->get_option('caption');
     
    4545        foreach($array as $key=> $ms) {
    4646            $selected = ($option != $ms)? '' : ' selected';
    47             echo "<option value='$ms'$selected>".(($ms=='1'&&$array[0]!='0')?'Disabled':$ms)."</option>\n";
     47            echo "<option value='$ms'$selected>".(($ms=='1'&&$array[0]!='0')?__('Disabled', 'wp-slimbox2'):$ms)."</option>\n";
    4848        }
    4949    }
     
    7373                </th>
    7474                <td class='desc'>
    75                     <p> <?php _e('This option allows the user to automatically activate Slimbox on all links pointing to ".jpg" or ".png" or ".gif". All image links will automatically be grouped together in a gallery according to the selector chosen below. If this isn\'t activated you will need to manually add \'rel="lightbox"\' for individual images or \'rel="lightbox-imagesetname"\' for groups on all links you wish to use Slimbox.', 'wp-slimbox2'); ?>
     75                    <p> <?php _e('This option allows the user to automatically activate Slimbox on all links pointing to ".jpg", ".jpeg", ".png", ".bmp" or ".gif". All image links will automatically be grouped together in a gallery according to the selector chosen below. If this isn\'t activated you will need to manually add \'rel="lightbox"\' for individual images or \'rel="lightbox-imagesetname"\' for groups on all links you wish to use the Slimbox effect. Default is DISABLED.', 'wp-slimbox2'); ?>
    7676                    </p>
    7777                </td>
     
    8383                </th>
    8484                <td class='desc'>
    85                     <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Picasaweb links when provided an appropriate thumbnail (this is separate from the autoload script which only functions on image links).', 'wp-slimbox2'); ?>
     85                    <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Picasaweb links when provided an appropriate url (this is separate from the autoload script which only functions on direct image links). Default is DISABLED.', 'wp-slimbox2'); ?>
    8686                    </p>
    8787                </td>
     
    9393                </th>
    9494                <td class='desc'>
    95                     <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Flickr links when provided an appropriate thumbnail (this is separate from the autoload script which only functions on image links).', 'wp-slimbox2'); ?>
     95                    <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Flickr links when provided an appropriate url (this is separate from the autoload script which only functions on direct image links). Default is DISABLED.', 'wp-slimbox2'); ?>
    9696                    </p>
    9797                </td>
     
    103103                </th>
    104104                <td class='desc'>
    105                     <p> <?php _e('This option allows the user to navigate between the first and last images of a Slimbox gallery when there is more than one image to display.', 'wp-slimbox2'); ?>
     105                    <p> <?php _e('This option allows the user to navigate between the first and last images of a Slimbox gallery group when there is more than one image to display. Default is DISABLED.', 'wp-slimbox2'); ?>
    106106                    </p>
    107107                </td>
     
    115115                </th>
    116116                <td class='desc'>
    117                     <p> <?php _e('This option allows the user to adjust the opacity of the background overlay. 1 is completely opaque, 0 is completely transparent.', 'wp-slimbox2'); ?>
     117                    <p> <?php _e('This option allows the user to adjust the opacity of the background overlay. 1 is completely opaque, 0 is completely transparent. Default is 0.8.', 'wp-slimbox2'); ?>
    118118                    </p>
    119119                </td>
     
    138138                </th>
    139139                <td class='desc'>
    140                     <p> <?php _e('This option allows the user to adjust the duration of the overlay fade-in and fade-out animations, in milliseconds.', 'wp-slimbox2'); ?>
     140                    <p> <?php _e('This option allows the user to adjust the duration of the overlay fade-in and fade-out animations, in milliseconds. Default is 400.', 'wp-slimbox2'); ?>
    141141                    </p>
    142142                </td>
     
    150150                </th>
    151151                <td class='desc'>
    152                     <p> <?php _e('This option allows the user to adjust the duration of the resize animation for width and height, in milliseconds.', 'wp-slimbox2'); ?>
     152                    <p> <?php _e('This option allows the user to adjust the duration of the resize animation for width and height, in milliseconds. Default is 400.', 'wp-slimbox2'); ?>
    153153                    </p>
    154154                </td>
     
    162162                </th>
    163163                <td class='desc'>
    164                     <p> <?php _e('This option allows the user to adjust the easing effect that you want to use for the resize animation (this loads an additional jQuery Easing Plugin). Many easings require a longer execution time to look good, so you should adjust the resizeDuration option above as well.', 'wp-slimbox2'); ?>
     164                    <p> <?php _e('This option allows the user to adjust the easing effect that you want to use for the resize animation (easings other than swing load an additional jQuery Easing Plugin). Many easings require a longer execution time to look good, so you should adjust the resizeDuration option above as well. Default is swing.', 'wp-slimbox2'); ?>
    165165                    </p>
    166166                </td>
     
    172172                </th>
    173173                <td class='desc'>
    174                     <p> <?php _e('This option allows the user to adjust the initial width of the box, in pixels.', 'wp-slimbox2'); ?>
     174                    <p> <?php _e('This option allows the user to adjust the initial width of the box, in pixels. Default is 250.', 'wp-slimbox2'); ?>
    175175                    </p>
    176176                </td>
     
    182182                </th>
    183183                <td class='desc'>
    184                     <p> <?php _e('This option allows the user to adjust the initial height of the box, in pixels.', 'wp-slimbox2'); ?>
     184                    <p> <?php _e('This option allows the user to adjust the initial height of the box, in pixels. Default is 250.', 'wp-slimbox2'); ?>
    185185                    </p>
    186186            </tr>
     
    193193                </th>
    194194                <td class='desc'>
    195                     <p> <?php _e('This option allows the user to adjust the duration of the image fade-in animation, in milliseconds. Disabling this effect will make the image appear instantly.', 'wp-slimbox2'); ?>
     195                    <p> <?php _e('This option allows the user to adjust the duration of the image fade-in animation, in milliseconds. Disabling this effect will make the image appear instantly. Default is 400.', 'wp-slimbox2'); ?>
    196196                    </p>
    197197                </td>
     
    205205                </th>
    206206                <td class='desc'>
    207                     <p> <?php _e('This option allows the user to adjust the duration of the caption animation, in milliseconds. Disabling this effect will make the caption appear instantly.', 'wp-slimbox2'); ?>
     207                    <p> <?php _e('This option allows the user to adjust the duration of the caption animation, in milliseconds. Disabling this effect will make the caption appear instantly. Default is 400.', 'wp-slimbox2'); ?>
    208208                    </p>
    209209            </tr>
     
    225225                </th>
    226226                <td class='desc'>
    227                     <p> <?php _e('This option allows the user to select the order in which to search various locations for the caption text. If you\'d like no caption just select "None" in the first block. You can also leave out an option by replacing it with "None", but be sure to place any option you\'d like to search in front of it. If a caption can\'t be found, and "None" wasn\t selected, it will default to the URL ("href"). The default is "a-title", followed by "img-alt", "img-title", and "href".', 'wp-slimbox2'); ?>
     227                    <p> <?php _e('This option allows the user to select the order in which to search various locations for the caption text. If you\'d like no caption just select "None" in the first block. You can also leave out an option by replacing it with "None", but be sure to place any option you\'d like to search in front of it. If a caption can\'t be found, and "None" wasn\t selected, it will default to the URL ("href"). Default is "a-title", followed by "img-alt", "img-title", and "href".', 'wp-slimbox2'); ?>
    228228                    </p>
    229229                </td>
     
    235235                </th>
    236236                <td class='desc'>
    237                     <p> <?php _e('This option will render the caption as a hyperlink. This is enabled by default.', 'wp-slimbox2'); ?>
     237                    <p> <?php _e('This option will render the caption as a hyperlink.  Default is Enabled.', 'wp-slimbox2'); ?>
    238238                    </p>
    239239            </tr>
     
    244244                </th>
    245245                <td class='desc'>
    246                     <p> <?php _e('This option allows the user to change how images are grouped when autoload is enabled. It uses jQuery selectors, as described <a href="http://api.jquery.com/category/selectors/">here</a>. The default is "div.entry-content, div.gallery, div.entry, div.post, div#page, body", which works in most themes by searching for a common post, gallery, or page that contains the images.', 'wp-slimbox2'); ?>
     246                    <p> <?php _e('This option allows the user to change how images are grouped when autoload is enabled. It uses jQuery selectors, as described <a href="http://api.jquery.com/category/selectors/">here</a>. Default is "div.entry-content, div.gallery, div.entry, div.post, div#page, body", which works in most themes by searching for a common post, gallery, or page that contains the images.', 'wp-slimbox2'); ?>
    247247                    </p>
    248248                </td>
     
    254254                </th>
    255255                <td class='desc'>
    256                     <p> <?php _e('This option allows the user to customize, translate or disable the counter text which appears in the captions when multiple images are shown. Inside the text, {x} will be replaced by the current image index, and {y} will be replaced by the total number of images. Set it to false (boolean value, without quotes) or "" to disable the counter display. Default is "Image {x} of {y}".', 'wp-slimbox2'); ?>
     256                    <p> <?php _e('This option allows the user to customize, translate or disable the counter text which appears in the captions when multiple images are shown. Inside the text, {x} will be replaced by the current image index, and {y} will be replaced by the total number of images in the group. Set it to false (boolean value, without quotes) or "" to disable the counter display. Default is "Image {x} of {y}".', 'wp-slimbox2'); ?>
    257257                    </p>
    258258            </tr>
     
    294294                </th>
    295295                <td class='desc'>
    296                     <p> <?php _e('This option enables a maintenance mode for testing purposes. When enabled slimbox will be disabled until you enable it by appending ?slimbox=on to a url. It will then remain on until you disable it by appending ?slimbox=off to a url, you clear your cookies, or in certain cases you clear your browser cache. This setting only impacts things at a vistor level, not a site wide level.', 'wp-slimbox2'); ?>
     296                    <p> <?php _e('This option enables a maintenance mode for testing purposes. When enabled slimbox will be disabled until you enable it by appending ?slimbox=on to a url. It will then remain on until you disable it by appending ?slimbox=off to a url, you clear your cookies, or in certain cases you clear your browser cache. This setting only impacts things at an individual vistor level, not a site wide level. Default is Disabled.', 'wp-slimbox2'); ?>
    297297                    </p>
    298298            </tr>
     
    305305        <div style="clear:both;padding-top:20px;"></div>
    306306    </form>
    307     <div align="center">
     307    <div class="clear"></div>
     308    <h2><?php _e('Notes', 'wp-slimbox2');?></h2>
     309    <table class="widefat" cellspacing="0" id="active-plugins-table">
     310        <tfoot>
     311        <tr>
     312            <th scope="col"></th>
     313        </tr>
     314
     315        </tfoot>
     316        <tbody class="plugins">
     317            <tr class="inactive">
     318                <td class="desc">
     319                    <p>Check out the <a href="http://transientmonkey.com/wp-slimbox2-user-guide">WP-Slimbox2 User Guide</a>!</p>
     320                    <p>Support is graciously being hosted at <a href="http://pixopoint.com/forum/index.php?board=6.0">PixoPoint.com</a> I'll make an effort to stay apprised of any questions that may arise.</p>
     321                    <p>The plugin webpage can be found at <a href="http://transientmonkey.com/wp-slimbox2">TransientMonkey.com</a>, feel free to leave comments, but don't post support questions, that's what the forum is for! Stay tuned in to all new Transient Monkey projects!</p>
     322                    <p>If you'd like to add or update a translation to WP-Slimbox2, please visit <a href="http://pixopoint.com/forum/index.php?topic=1383.0">this forum</a>. The more people who can easily use this plugin the better!</p>
    308323        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    309324            <input type="hidden" name="cmd" value="_s-xclick">
     
    313328        </form>
    314329        <p><b style="font-size:11px;">Support this plugin!','wp-slimbox2'); ?></b></p>
    315     </div>
     330                </td>
     331            </tr>
     332        </tbody>
     333    </table>
     334
    316335</div>
  • wp-slimbox2/trunk/index.php

    r194826 r195188  
    55Description: A Wordpress implementation of the Slimbox2 javascript, utilizing jQuery, originally written by Christophe Beyls. Requires WP 2.6+
    66Author: Greg Yingling (malcalevak)
    7 Version: 0.9.8
     7Version: 1.0
    88Author URI: http://transientmonkey.com/
    99
    10 Copyright 2009 Transient Monkey
     10Copyright 2010 Transient Monkey, LLC
    1111
    1212This program is free software; you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.