Plugin Directory

Changeset 2125007


Ignore:
Timestamp:
07/18/2019 05:34:52 AM (7 years ago)
Author:
hahncgdev
Message:

Version 4.8.1 - * Optimization of admin pages.

  • Additional i18n conversions on admin pages.
  • Code clean up on admin pages.
Location:
wp-easy-gallery/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • wp-easy-gallery/trunk/admin/add-gallery.php

    r2104083 r2125007  
    11<?php
    22if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
    3 
     3/*
    44$galleryName = '';
    55$galleryDescription = '';     
     
    4747          }
    4848        }
    49     }
     49    }*/
     50    ob_start();
    5051?>
    5152<div class='wrap wp-easy-gallery-admin'>
    5253    <h2>WP Easy Gallery</h2>
    5354    <div style="width: 50%; float: left;"><h1 class="wp-heading-inline"><?php _e('Add Gallery', 'wp-easy-gallery'); ?></h1></div>   
    54     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     55    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    5556    <div style="Clear: both;"></div>
    5657    <div class="updated" id="wpeg-gallery-added" style="display: none;"><p><?php _e('Copy and paste this code into the page or post that you would like to display the gallery.', 'wp-easy-gallery'); ?></p>
     
    7273                <td><?php _e('Gallery Name', 'wp-easy-gallery'); ?></td>
    7374                <td><input type="text" size="30" name="galleryName" id="galleryName" class="wpeg-gallery-form" value="" /></td>
    74                 <td>This name is the internal name for the gallery.<br />Please avoid non-letter characters such as ', ", *, etc.</td>
     75                <td><?php printf( wp_kses( __('This name is the internal name for the gallery.<br />Please avoid non-letter characters such as &lsquo;, ", *, etc.', 'wp-easy-gallery'))); ?></td>
    7576            </tr>
    7677            <tr>
     
    108109</div>
    109110<div id="wp-easy-gallery-update-status"><div id="loading-image-wrap"><img src="<?php echo WP_PLUGIN_URL; ?>/wp-easy-gallery/images/loading_spinner.gif" width="75" height="75" /></div></div>
     111<?php ob_end_flush(); ?>
  • wp-easy-gallery/trunk/admin/add-images.php

    r2104083 r2125007  
    33
    44global $wpdb;
    5 
    65$imageResults = null;
    7 
    86$galleryResults = $wpdb->get_results( "SELECT * FROM $wpdb->easyGalleries" );
    97
     
    1715}
    1816
    19 
     17/*
    2018//Edit/Delete Images
    2119if(isset($_POST['editing_images'])) {
     
    4644    }
    4745}
     46*/
    4847if(isset($_POST['editing_gid'])) {
    4948    if(check_admin_referer('wpeg_gallery','wpeg_gallery')) {
     
    5958_e("<script>var wpegSettings = {gallery_theme: '".$styles['gallery_theme']."', show_overlay: ".$show_overlay.$show_social."};</script>");
    6059
     60ob_start();
    6161?>
    6262
     
    6565    <?php if(!isset($_POST['select_gallery']) && !isset($_POST['galleryId']) && !isset($_POST['galleryId_add']) && !isset($_POST['editing_images'])) { ?>
    6666    <div style="width: 50%; float: left;"><h1 class="wp-heading-inline"><?php _e('Add Images', 'wp-easy-gallery'); ?></h1></div>
    67     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     67    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    6868    <div style="Clear: both;"></div>
    6969<table class="widefat post fixed wp-easy-gallery-table" id="galleryResults">
     
    105105</table>
    106106    <?php } else if(isset($_POST['select_gallery']) || isset($_POST['galleryId']) || isset($_POST['galleryId_add']) || isset($_POST['editing_images'])) { ?>   
    107     <h3 style="width: 50%; float: left;">Add Images to: <?php echo esc_html($gallery->name); ?></h3>
     107    <h3 style="width: 50%; float: left;"><?php printf( esc_html__('Add Images to: %s', 'wp-easy-gallery'), $gallery->name); ?></h3>
    108108   
    109     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     109    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    110110    <div style="clear: both;"></div>
    111111    <br />
     
    128128       
    129129    </form>
    130      <h3>Edit Images in: <?php echo esc_html($gallery->name); ?></h3>
     130     <h3><?php printf( esc_html__('Edit Images to: %s', 'wp-easy-gallery'), $gallery->name); ?></h3>
    131131   
    132132    <table class="widefat post fixed eg-table" id="imageResults">
     
    172172</div>
    173173<div id="wp-easy-gallery-update-status"><div id="loading-image-wrap"><img src="<?php echo WP_PLUGIN_URL; ?>/wp-easy-gallery/images/loading_spinner.gif" width="75" height="75" /></div></div>
     174<?php ob_end_flush(); ?>
  • wp-easy-gallery/trunk/admin/edit-gallery.php

    r2104083 r2125007  
    1212      $gallery = $wpdb->get_row( "SELECT * FROM $wpdb->easyGalleries WHERE Id = $gid" );   
    1313}
    14    
     14/* 
    1515if(isset($_POST['hcg_edit_gallery']))
    1616{
     
    3434    }
    3535}
     36*/
    3637if(isset($_POST['hcg_edit_gallery'])) {
    3738    if(check_admin_referer('wpeg_gallery','wpeg_gallery')) {
     
    4142    }
    4243}
     44ob_start();
    4345?>
    4446<div class='wrap wp-easy-gallery-admin'>
    4547    <h2>WP Easy Gallery</h2>       
    46     <div style="width: 50%; float: left;"><h1 class="wp-heading-inline">Editing Gallery: <?php echo esc_html($gallery->name); ?></h1></div>
    47     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     48    <div style="width: 50%; float: left;"><h1 class="wp-heading-inline"><?php printf( esc_html__('Editing Gallery: %s', 'wp-easy-gallery'), $gallery->name); ?></h1></div>
     49    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    4850    <div style="Clear: both;"></div>
    4951    <form name="hcg_add_gallery_form" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" method="post">
     
    6971                <td><strong><?php _e('Enter Gallery Name', 'wp-easy-gallery'); ?>:</strong></td>
    7072                <td><input type="text" size="30" name="galleryName" id="galleryName" value="<?php echo esc_attr($gallery->name); ?>" /></td>
    71                 <td>This name is the internal name for the gallery.<br />Please avoid non-letter characters such as ', ", *, etc.</td>
     73                <td><?php printf( wp_kses( __('This name is the internal name for the gallery.<br />Please avoid non-letter characters such as &lsquo;, ", *, etc.', 'wp-easy-gallery'))); ?></td>
    7274            </tr>
    7375            <tr>
     
    109111jQuery('#toplevel_page_wpeg-admin').children('a').removeClass('wp-not-current-submenu').addClass('wp-has-current-submenu').addClass('wp-menu-open');
    110112</script>
     113<?php ob_end_flush(); ?>
  • wp-easy-gallery/trunk/admin/overview.php

    r2104083 r2125007  
    33
    44global $wpdb;
    5 
    65$galleryResults = $wpdb->get_results( "SELECT * FROM $wpdb->easyGalleries" );
    76
     7/*
    88if (isset($_POST['defaultSettings'])) {
    99    if(check_admin_referer('wpeg_settings','wpeg_settings')) {
     
    1919}
    2020$default_options = get_option('wp_easy_gallery_defaults');
     21*/
     22ob_start();
    2123?>
    2224<div class='wrap wp-easy-gallery-admin'>
    2325    <h2>WP Easy Gallery</h2>
    2426    <div style="width: 50%; float: left;"><h1 class="wp-heading-inline"><?php _e('Galleries', 'wp-easy-gallery'); ?></h1><a href="<?php echo str_replace( '%7E', '~', '?page=wpeg-add-gallery'); ?>" class="page-title-action">Add New</a></div>
    25     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     27    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    2628    <div style="Clear: both;"></div>
    2729    <table class="widefat post fixed eg-table">
     
    6163     <br />
    6264     <h3><?php _e('Options', 'wp-easy-gallery'); ?></h3>
    63      <p>Go to: <a href="?page=wpeg-settings-page">Settings</a> page.</p>
     65     <p><?php printf( wp_kses( __('Go to: <a href="?page=wpeg-settings-page">Settings</a> page.'))); ?></p>
    6466     <hr />     
    6567     <br />
     
    7274</div>
    7375<div id="wp-easy-gallery-update-status"><div id="loading-image-wrap"><img src="<?php echo WP_PLUGIN_URL; ?>/wp-easy-gallery/images/loading_spinner.gif" width="75" height="75" /></div></div>
     76<?php ob_end_flush(); ?>
  • wp-easy-gallery/trunk/admin/wpeg-settings.php

    r2120408 r2125007  
    33
    44$default_options = get_option('wp_easy_gallery_defaults');
    5 
     5ob_start();
    66?>
    77<div class='wrap wp-easy-gallery-admin'>
    88    <h2>WP Easy Gallery</h2>
    99    <div style="width: 50%; float: left;"><h1 class="wp-heading-inline"><?php _e('Options', 'wp-easy-gallery'); ?></h1></div>
    10     <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro</em></strong></a></p>
     10    <p style="float: right;"><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em><?php _e('Upgrade to WP Easy Gallery Pro', 'wp-easy-gallery'); ?></em></strong></a></p>
    1111    <div style="Clear: both;"></div>
    1212    <form name="save_default_settings" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
     
    3131                    </select>
    3232                </td>
    33                 <td>Set the display mode for WP Easy Gallery.<br /><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro for more gallery options</em></strong></a></td>           
     33                <td><?php printf( wp_kses( __('Set the display mode for WP Easy Gallery.<br /><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro for more gallery options</em></strong></a>', 'wp-easy-gallery'))); ?></td>           
    3434            </tr>
    3535            <tr id="num_columns_wrap" style="display: none;">
     
    4747                <td>
    4848                    <select id="gallery_name_alignment" name="gallery_name_alignment">
    49                         <option value="left"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'left') ? " selected" : ""); ?>>Left</option>
    50                         <option value="center"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'center') ? " selected" : ""); ?>>Center</option>
    51                         <option value="right"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'right') ? " selected" : ""); ?>>Right</option>
     49                        <option value="left"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'left') ? " selected" : ""); ?>><?php _e('Left', 'wp-easy-gallery'); ?></option>
     50                        <option value="center"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'center') ? " selected" : ""); ?>><?php _e('Center', 'wp-easy-gallery'); ?></option>
     51                        <option value="right"<?php echo esc_attr(($default_options['gallery_name_alignment'] == 'right') ? " selected" : ""); ?>><?php _e('Right', 'wp-easy-gallery'); ?></option>
    5252                    </select>
    5353                </td>
     
    5858                <td>
    5959                    <select id="gallery_theme" name="gallery_theme">
    60                         <option value="light_rounded"<?php _e(($default_options['gallery_theme'] == 'light_rounded') ? " selected" : ""); ?>>Light Rounded</option>
    61                         <option value="light_square" disabled>Light Square</option>
    62                         <option value="dark_rounded" disabled>Dark Rounded</option>
    63                         <option value="dark_square" disabled>Dark Square</option>
    64                         <option value="facebook" disabled>Facebook</option>
    65                         <option value="default" disabled>Default</option>
     60                        <option value="light_rounded"<?php _e(($default_options['gallery_theme'] == 'light_rounded') ? " selected" : ""); ?>><?php _e('Light Rounded', 'wp-easy-gallery'); ?></option>
     61                        <option value="dark_rounded" disabled><?php _e('Dark Rounded', 'wp-easy-gallery'); ?></option>
     62                        <option value="light_square" disabled><?php _e('Light Square', 'wp-easy-gallery'); ?></option>                     
     63                        <option value="dark_square" disabled><?php _e('Dark Square', 'wp-easy-gallery'); ?></option>
     64                        <option value="facebook" disabled><?php _e('Facebook', 'wp-easy-gallery'); ?></option>
     65                        <option value="default" disabled><?php _e('Default', 'wp-easy-gallery'); ?></option>
    6666                    </select>
    6767                </td>
    68                 <td>Set the theme to be used for the gallery modal window.<br /><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro to use this feature</em></strong></a></td>
     68                <td><?php printf( wp_kses( __('Set the theme to be used for the gallery modal window.<br /><a href="https://plugingarden.com/wordpress-gallery-plugin/?src=wpeg" target="_blank"><strong><em>Upgrade to WP Easy Gallery Pro to use this feature</em></strong></a>', 'wp-easy-gallery'))); ?></td>
    6969            </tr>
    7070            <tr class="wp_easy_gallery_settings_wrap">             
     
    9191                <td><?php _e('Custom Thumbnail Style', 'wp-easy-gallery'); ?></td>
    9292                <td><textarea name="custom_style" id="custom_style" rows="4" cols="40"><?php echo esc_html( $default_options['custom_style'] ); ?></textarea></td>
    93                 <td>This is where you would add custom styles for the gallery thumbnails.<br />(ex: border: solid 1px #cccccc; padding: 2px; margin-right: 10px;)</td>
     93                <td><?php printf( wp_kses( __('This is where you would add custom styles for the gallery thumbnails.<br />(ex: border: solid 1px #cccccc; padding: 2px; margin-right: 10px;)', 'wp-easy-gallery'))); ?></td>
    9494            </tr>
    9595            <tr>
     
    137137</div>
    138138<div id="wp-easy-gallery-update-status"><div id="loading-image-wrap"><img src="<?php echo WP_PLUGIN_URL; ?>/wp-easy-gallery/images/loading_spinner.gif" width="75" height="75" /></div></div>
     139<?php ob_end_flush(); ?>
  • wp-easy-gallery/trunk/admin/wpeg-tools.php

    r2109635 r2125007  
    33    <h1 class="wp-heading-inline">Tools</h1>
    44    <h2>Online Photo Editors</h2>
    5     <div class="wpeg-admin-adbox-wrap">
     5    <div class="wpeg-admin-adbox-wrap">     
     6        <div class="wpeg-admin-adbox">
     7            <h3>Elegant Themes</h3>
     8            <div class="wpeg-admin-adbox-image-wrap"><p><a href="/refer/elegant-themes" target="_blank" rel="noreferrer noopener"><img src="https://www.elegantthemes.com/affiliates/media/banners/300x250.gif" alt="Blogging Tools: WordPress Themes"></a></p></div>   
     9        </div>
     10        <div class="wpeg-admin-adbox">
     11            <h3>Aweber</h3>
     12            <div class="wpeg-admin-adbox-image-wrap"><p><a href="/refer/aweber" target="_blank" rel="noreferrer noopener"><img src="https://www.aweber.com/banners/whattowrite-2017/wtw-display-01.jpg" alt="Blogging Tools: Get your free email templates"></a></p></div>     
     13        </div>
     14        <div class="wpeg-admin-adbox">
     15            <h3>SEM Rush</h3>
     16            <div class="wpeg-admin-adbox-image-wrap"><p><a href="/refer/semrush"><img src="https://www.berush.com/static/berush/banners/orange/240x240/240x240_en.png" alt="Blogging Tools: SEMrush"></a></p></div>         
     17        </div>     
    618        <div class="wpeg-admin-adbox">
    719            <h3>Snappa</h3>
     
    921            <p>Snappa makes it easy to create any type of online graphic. Whip up graphics for social media, ads, blogs, and more without Photoshop or graphic designers.</p>
    1022            <p><a href='https://snappa.com?afmc=vi'>Try Snappa Now!</a></p>
    11         </div> 
     23        </div>
    1224    </div>
    1325</div>
  • wp-easy-gallery/trunk/css/wp-easy-gallery-admin.css

    r2046089 r2125007  
    1414.left-float {float: left;}
    1515.eg-right-margin input {margin-right: 15px;}
    16 .wpeg-admin-adbox-wrap {margin-top: 25px; margin-left: 25px;}
     16.wpeg-admin-adbox-wrap {background-color: #ffffff; margin-top: 25px; margin-left: 25px;}
    1717.wpeg-admin-adbox-wrap::after {clear: both; content: " ";}
    18 .wpeg-admin-adbox {background-color: #ffffff; float: left; padding: 3px 20px 7px 20px; width: 33%;}
    19 .wpeg-admin-adbox:nth-child(2) {margin-left: 10%;}
     18.wpeg-admin-adbox { float: left; padding: 3px 20px 7px 20px; width: 30%;}
    2019.wpeg-admin-adbox-image-wrap {height: 300px;}
    2120.wpeg-admin-adbox-image-wrap img {width: 300px;}
  • wp-easy-gallery/trunk/readme.txt

    r2124313 r2125007  
    66Tested up to: 5.2
    77Requires PHP: 5.6
    8 Stable tag: 4.8
     8Stable tag: 4.8.1
    99
    1010WP Easy Gallery is a powerful WordPress gallery plugin that is easy to use. WP Easy Gallery gives you the power to create and manage unlimited image galleries.
     
    152152== Changelog ==
    153153
     154**v4.8.1**
     155
     156* Optimization of admin pages.
     157* Additional i18n conversions on admin pages.
     158* Code clean up on admin pages.
     159
    154160**v4.8**
    155161
  • wp-easy-gallery/trunk/wp-easy-gallery.php

    r2120408 r2125007  
    77    Text Domain: wp-easy-gallery
    88    Domain Path: /languages
    9     Version: 4.8
     9    Version: 4.8.1
    1010    Author URI: https://plugingarden.com/
    1111    */
Note: See TracChangeset for help on using the changeset viewer.