Changeset 2125007
- Timestamp:
- 07/18/2019 05:34:52 AM (7 years ago)
- Location:
- wp-easy-gallery/trunk
- Files:
-
- 9 edited
-
admin/add-gallery.php (modified) (4 diffs)
-
admin/add-images.php (modified) (8 diffs)
-
admin/edit-gallery.php (modified) (5 diffs)
-
admin/overview.php (modified) (4 diffs)
-
admin/wpeg-settings.php (modified) (6 diffs)
-
admin/wpeg-tools.php (modified) (2 diffs)
-
css/wp-easy-gallery-admin.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-easy-gallery.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-easy-gallery/trunk/admin/add-gallery.php
r2104083 r2125007 1 1 <?php 2 2 if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } 3 3 /* 4 4 $galleryName = ''; 5 5 $galleryDescription = ''; … … 47 47 } 48 48 } 49 } 49 }*/ 50 ob_start(); 50 51 ?> 51 52 <div class='wrap wp-easy-gallery-admin'> 52 53 <h2>WP Easy Gallery</h2> 53 54 <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> 55 56 <div style="Clear: both;"></div> 56 57 <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> … … 72 73 <td><?php _e('Gallery Name', 'wp-easy-gallery'); ?></td> 73 74 <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 ‘, ", *, etc.', 'wp-easy-gallery'))); ?></td> 75 76 </tr> 76 77 <tr> … … 108 109 </div> 109 110 <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 3 3 4 4 global $wpdb; 5 6 5 $imageResults = null; 7 8 6 $galleryResults = $wpdb->get_results( "SELECT * FROM $wpdb->easyGalleries" ); 9 7 … … 17 15 } 18 16 19 17 /* 20 18 //Edit/Delete Images 21 19 if(isset($_POST['editing_images'])) { … … 46 44 } 47 45 } 46 */ 48 47 if(isset($_POST['editing_gid'])) { 49 48 if(check_admin_referer('wpeg_gallery','wpeg_gallery')) { … … 59 58 _e("<script>var wpegSettings = {gallery_theme: '".$styles['gallery_theme']."', show_overlay: ".$show_overlay.$show_social."};</script>"); 60 59 60 ob_start(); 61 61 ?> 62 62 … … 65 65 <?php if(!isset($_POST['select_gallery']) && !isset($_POST['galleryId']) && !isset($_POST['galleryId_add']) && !isset($_POST['editing_images'])) { ?> 66 66 <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> 68 68 <div style="Clear: both;"></div> 69 69 <table class="widefat post fixed wp-easy-gallery-table" id="galleryResults"> … … 105 105 </table> 106 106 <?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> 108 108 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> 110 110 <div style="clear: both;"></div> 111 111 <br /> … … 128 128 129 129 </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> 131 131 132 132 <table class="widefat post fixed eg-table" id="imageResults"> … … 172 172 </div> 173 173 <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 12 12 $gallery = $wpdb->get_row( "SELECT * FROM $wpdb->easyGalleries WHERE Id = $gid" ); 13 13 } 14 14 /* 15 15 if(isset($_POST['hcg_edit_gallery'])) 16 16 { … … 34 34 } 35 35 } 36 */ 36 37 if(isset($_POST['hcg_edit_gallery'])) { 37 38 if(check_admin_referer('wpeg_gallery','wpeg_gallery')) { … … 41 42 } 42 43 } 44 ob_start(); 43 45 ?> 44 46 <div class='wrap wp-easy-gallery-admin'> 45 47 <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> 48 50 <div style="Clear: both;"></div> 49 51 <form name="hcg_add_gallery_form" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" method="post"> … … 69 71 <td><strong><?php _e('Enter Gallery Name', 'wp-easy-gallery'); ?>:</strong></td> 70 72 <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 ‘, ", *, etc.', 'wp-easy-gallery'))); ?></td> 72 74 </tr> 73 75 <tr> … … 109 111 jQuery('#toplevel_page_wpeg-admin').children('a').removeClass('wp-not-current-submenu').addClass('wp-has-current-submenu').addClass('wp-menu-open'); 110 112 </script> 113 <?php ob_end_flush(); ?> -
wp-easy-gallery/trunk/admin/overview.php
r2104083 r2125007 3 3 4 4 global $wpdb; 5 6 5 $galleryResults = $wpdb->get_results( "SELECT * FROM $wpdb->easyGalleries" ); 7 6 7 /* 8 8 if (isset($_POST['defaultSettings'])) { 9 9 if(check_admin_referer('wpeg_settings','wpeg_settings')) { … … 19 19 } 20 20 $default_options = get_option('wp_easy_gallery_defaults'); 21 */ 22 ob_start(); 21 23 ?> 22 24 <div class='wrap wp-easy-gallery-admin'> 23 25 <h2>WP Easy Gallery</h2> 24 26 <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> 26 28 <div style="Clear: both;"></div> 27 29 <table class="widefat post fixed eg-table"> … … 61 63 <br /> 62 64 <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> 64 66 <hr /> 65 67 <br /> … … 72 74 </div> 73 75 <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 3 3 4 4 $default_options = get_option('wp_easy_gallery_defaults'); 5 5 ob_start(); 6 6 ?> 7 7 <div class='wrap wp-easy-gallery-admin'> 8 8 <h2>WP Easy Gallery</h2> 9 9 <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> 11 11 <div style="Clear: both;"></div> 12 12 <form name="save_default_settings" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> … … 31 31 </select> 32 32 </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> 34 34 </tr> 35 35 <tr id="num_columns_wrap" style="display: none;"> … … 47 47 <td> 48 48 <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> 52 52 </select> 53 53 </td> … … 58 58 <td> 59 59 <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> 66 66 </select> 67 67 </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> 69 69 </tr> 70 70 <tr class="wp_easy_gallery_settings_wrap"> … … 91 91 <td><?php _e('Custom Thumbnail Style', 'wp-easy-gallery'); ?></td> 92 92 <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> 94 94 </tr> 95 95 <tr> … … 137 137 </div> 138 138 <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 3 3 <h1 class="wp-heading-inline">Tools</h1> 4 4 <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> 6 18 <div class="wpeg-admin-adbox"> 7 19 <h3>Snappa</h3> … … 9 21 <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> 10 22 <p><a href='https://snappa.com?afmc=vi'>Try Snappa Now!</a></p> 11 </div> 23 </div> 12 24 </div> 13 25 </div> -
wp-easy-gallery/trunk/css/wp-easy-gallery-admin.css
r2046089 r2125007 14 14 .left-float {float: left;} 15 15 .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;} 17 17 .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%;} 20 19 .wpeg-admin-adbox-image-wrap {height: 300px;} 21 20 .wpeg-admin-adbox-image-wrap img {width: 300px;} -
wp-easy-gallery/trunk/readme.txt
r2124313 r2125007 6 6 Tested up to: 5.2 7 7 Requires PHP: 5.6 8 Stable tag: 4.8 8 Stable tag: 4.8.1 9 9 10 10 WP 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. … … 152 152 == Changelog == 153 153 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 154 160 **v4.8** 155 161 -
wp-easy-gallery/trunk/wp-easy-gallery.php
r2120408 r2125007 7 7 Text Domain: wp-easy-gallery 8 8 Domain Path: /languages 9 Version: 4.8 9 Version: 4.8.1 10 10 Author URI: https://plugingarden.com/ 11 11 */
Note: See TracChangeset
for help on using the changeset viewer.