Changeset 2882222
- Timestamp:
- 03/17/2023 09:47:13 PM (3 years ago)
- Location:
- exactly-gdpr-google-maps
- Files:
-
- 13 edited
- 1 copied
-
assets/screenshot-3.jpg (modified) (previous)
-
tags/1.0.7 (copied) (copied from exactly-gdpr-google-maps/trunk)
-
tags/1.0.7/admin/exggmap-admin.php (modified) (3 diffs)
-
tags/1.0.7/exactly-gdpr-google-maps.php (modified) (2 diffs)
-
tags/1.0.7/includes/exggmap-defaults.php (modified) (1 diff)
-
tags/1.0.7/includes/exggmap-shortcode.php (modified) (2 diffs)
-
tags/1.0.7/public/css/styles.css (modified) (3 diffs)
-
tags/1.0.7/readme.txt (modified) (3 diffs)
-
trunk/admin/exggmap-admin.php (modified) (3 diffs)
-
trunk/exactly-gdpr-google-maps.php (modified) (2 diffs)
-
trunk/includes/exggmap-defaults.php (modified) (1 diff)
-
trunk/includes/exggmap-shortcode.php (modified) (2 diffs)
-
trunk/public/css/styles.css (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
exactly-gdpr-google-maps/tags/1.0.7/admin/exggmap-admin.php
r2551436 r2882222 65 65 __('Button Title', 'exactly-gdpr-google-maps'), 66 66 'exggmap_button_title_callback', 67 'exggmap_options_page', 68 'exggmap_section' 69 ); 70 71 add_settings_field( 72 'exggmap_anchor_text', 73 __('Anchor Text', 'exactly-gdpr-google-maps'), 74 'exggmap_anchor_text_callback', 67 75 'exggmap_options_page', 68 76 'exggmap_section' … … 136 144 $sanitary_values['exggmap_button_title'] = sanitize_text_field( $input['exggmap_button_title'] ); 137 145 } 146 if ( isset( $input['exggmap_anchor_text'] ) ) { 147 $sanitary_values['exggmap_anchor_text'] = sanitize_text_field( $input['exggmap_anchor_text'] ); 148 } 138 149 139 150 if ( isset( $input['exggmap_map_width'] ) ) { … … 206 217 ); 207 218 echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Load Map', 'exactly-gdpr-google-maps') . '<span/>'; 219 } 220 function exggmap_anchor_text_callback() { 221 $options = get_option('exggmap_option'); 222 printf( 223 '<input class="regular-text" type="text" name="exggmap_option[exggmap_anchor_text]" id="exggmap_anchor_text" value="%s">', 224 isset( $options['exggmap_anchor_text'] ) ? esc_attr( $options['exggmap_anchor_text']) : '' 225 ); 226 echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Learn More', 'exactly-gdpr-google-maps') . '<span/>'; 208 227 } 209 228 -
exactly-gdpr-google-maps/tags/1.0.7/exactly-gdpr-google-maps.php
r2559279 r2882222 6 6 * Plugin URI: https://wordpress.org/plugins/exactly-gdpr-google-maps/ 7 7 * Description: The easy way to integrate Google Maps GDPR in compliance with data protection. The Google Maps only load when the user has agreed with a click. Just use the shortcut after setup: [exactly-gdpr-map] 8 * Version: 1.0. 68 * Version: 1.0.7 9 9 * Author: exovia 10 10 * Author URI: https://www.exovia.de/ … … 25 25 * Definitions 26 26 */ 27 define( 'EXGGMAP_VERSION', '1.0. 6' );27 define( 'EXGGMAP_VERSION', '1.0.7' ); 28 28 29 29 define( 'EXGGMAP_PLUGIN', __FILE__ ); -
exactly-gdpr-google-maps/tags/1.0.7/includes/exggmap-defaults.php
r2291268 r2882222 15 15 "exggmap_map_height"=>"9", 16 16 "exggmap_layer_text"=>__('By loading the map you accept the privacy policy of Google.', 'exactly-gdpr-google-maps'), 17 "exggmap_anchor_text"=>__('learn more', 'exactly-gdpr-google-maps'), 17 18 "exggmap_layer_background_color"=>"#000000", 18 19 "exggmap_button_background_color"=>"#693e91", -
exactly-gdpr-google-maps/tags/1.0.7/includes/exggmap-shortcode.php
r2559278 r2882222 18 18 $box_styles = 'style="width:' . $width .'px; height: '. $height .'px;'.'"'; 19 19 $embed_powered_by = $options['exggmap_enable_powered_by']; 20 21 $padding = 'padding-top:' . 100 * round($height / $width,6) . '%'; 20 $aspect_ratio = 'aspect-ratio:' . $width . ' / ' . $height; 22 21 23 22 ob_start(); 24 23 ?> 25 <div class="exggmap-wrapper is-style-wide" style="<?php echo $ padding; ?>">24 <div class="exggmap-wrapper is-style-wide" style="<?php echo $aspect_ratio; ?>"> 26 25 <div class="exggmap-mask" style="background-color: <?php echo $background_color; ?>; color:<?php echo $font_color ?>"> 27 26 <div class="exggmap-mask-content"> … … 51 50 target="_blank" 52 51 rel="noopener noreferrer" 53 href="<?php echo __("https://policies.google.com/privacy?hl=en", "exactly-gdpr-google-maps"); ?>"><?php echo __('learn more', 'exactly-gdpr-google-maps')?></a>52 href="<?php echo __("https://policies.google.com/privacy?hl=en", "exactly-gdpr-google-maps"); ?>"><?php echo $options['exggmap_anchor_text']?></a> 54 53 </p> 55 54 <?php -
exactly-gdpr-google-maps/tags/1.0.7/public/css/styles.css
r2291268 r2882222 2 2 position: relative; 3 3 width: 100%; 4 height: 0;4 aspect-ratio: 4 / 3; 5 5 } 6 6 … … 12 12 bottom: 0; 13 13 opacity: 1; 14 transition: opacity 2.5s ease-in .5s;14 transition: opacity 2.5s ease-in 0.5s; 15 15 display: flex; 16 16 flex-direction: column; … … 44 44 } 45 45 46 .exggmap-wrapper a:hover, .exggmap-wrapper a:visited { 46 .exggmap-wrapper a:hover, 47 .exggmap-wrapper a:visited { 47 48 color: #2196f3; 48 49 } -
exactly-gdpr-google-maps/tags/1.0.7/readme.txt
r2559278 r2882222 3 3 Tags: GDPR, DSGVO, Maps, Google Maps 4 4 Requires at least: 4.9 5 Tested up to: 5.7.26 Stable tag: 1.0. 65 Tested up to: 6.1.1 6 Stable tag: 1.0.7 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 43 43 * It provides a required link to the Google terms of use and 44 44 * offers a simple short code that allows you to use the secure cards anywhere. 45 46 **WHAT THE PLUGIN IS NOT FOR** 47 48 * Maps generated with Google Maps Platform 49 * Handling of different cards (Sorry. But feel free to let us know if there is interest. If enough people get together we will adapt or write a new plugin). 50 * Saving users content settings in web databases. Last but not least, this is why the plugin is simple and secure. 45 51 46 52 … … 133 139 * Update of Screenshots 134 140 = 1.0.6 = 141 * Tests for current WP Version 142 = 1.0.7 = 143 * Update for current WP Version 144 * Implementing css aspect ratio instead of padding-hack 145 * Correct styling for gutenberg without wrapper divs 146 * adding possibility for editing anchor text 147 * new Gutenberg Screenshot 148 * Adding "What the plugin is not for..." in docs 135 149 136 150 -
exactly-gdpr-google-maps/trunk/admin/exggmap-admin.php
r2551436 r2882222 65 65 __('Button Title', 'exactly-gdpr-google-maps'), 66 66 'exggmap_button_title_callback', 67 'exggmap_options_page', 68 'exggmap_section' 69 ); 70 71 add_settings_field( 72 'exggmap_anchor_text', 73 __('Anchor Text', 'exactly-gdpr-google-maps'), 74 'exggmap_anchor_text_callback', 67 75 'exggmap_options_page', 68 76 'exggmap_section' … … 136 144 $sanitary_values['exggmap_button_title'] = sanitize_text_field( $input['exggmap_button_title'] ); 137 145 } 146 if ( isset( $input['exggmap_anchor_text'] ) ) { 147 $sanitary_values['exggmap_anchor_text'] = sanitize_text_field( $input['exggmap_anchor_text'] ); 148 } 138 149 139 150 if ( isset( $input['exggmap_map_width'] ) ) { … … 206 217 ); 207 218 echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Load Map', 'exactly-gdpr-google-maps') . '<span/>'; 219 } 220 function exggmap_anchor_text_callback() { 221 $options = get_option('exggmap_option'); 222 printf( 223 '<input class="regular-text" type="text" name="exggmap_option[exggmap_anchor_text]" id="exggmap_anchor_text" value="%s">', 224 isset( $options['exggmap_anchor_text'] ) ? esc_attr( $options['exggmap_anchor_text']) : '' 225 ); 226 echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Learn More', 'exactly-gdpr-google-maps') . '<span/>'; 208 227 } 209 228 -
exactly-gdpr-google-maps/trunk/exactly-gdpr-google-maps.php
r2559279 r2882222 6 6 * Plugin URI: https://wordpress.org/plugins/exactly-gdpr-google-maps/ 7 7 * Description: The easy way to integrate Google Maps GDPR in compliance with data protection. The Google Maps only load when the user has agreed with a click. Just use the shortcut after setup: [exactly-gdpr-map] 8 * Version: 1.0. 68 * Version: 1.0.7 9 9 * Author: exovia 10 10 * Author URI: https://www.exovia.de/ … … 25 25 * Definitions 26 26 */ 27 define( 'EXGGMAP_VERSION', '1.0. 6' );27 define( 'EXGGMAP_VERSION', '1.0.7' ); 28 28 29 29 define( 'EXGGMAP_PLUGIN', __FILE__ ); -
exactly-gdpr-google-maps/trunk/includes/exggmap-defaults.php
r2291268 r2882222 15 15 "exggmap_map_height"=>"9", 16 16 "exggmap_layer_text"=>__('By loading the map you accept the privacy policy of Google.', 'exactly-gdpr-google-maps'), 17 "exggmap_anchor_text"=>__('learn more', 'exactly-gdpr-google-maps'), 17 18 "exggmap_layer_background_color"=>"#000000", 18 19 "exggmap_button_background_color"=>"#693e91", -
exactly-gdpr-google-maps/trunk/includes/exggmap-shortcode.php
r2559278 r2882222 18 18 $box_styles = 'style="width:' . $width .'px; height: '. $height .'px;'.'"'; 19 19 $embed_powered_by = $options['exggmap_enable_powered_by']; 20 21 $padding = 'padding-top:' . 100 * round($height / $width,6) . '%'; 20 $aspect_ratio = 'aspect-ratio:' . $width . ' / ' . $height; 22 21 23 22 ob_start(); 24 23 ?> 25 <div class="exggmap-wrapper is-style-wide" style="<?php echo $ padding; ?>">24 <div class="exggmap-wrapper is-style-wide" style="<?php echo $aspect_ratio; ?>"> 26 25 <div class="exggmap-mask" style="background-color: <?php echo $background_color; ?>; color:<?php echo $font_color ?>"> 27 26 <div class="exggmap-mask-content"> … … 51 50 target="_blank" 52 51 rel="noopener noreferrer" 53 href="<?php echo __("https://policies.google.com/privacy?hl=en", "exactly-gdpr-google-maps"); ?>"><?php echo __('learn more', 'exactly-gdpr-google-maps')?></a>52 href="<?php echo __("https://policies.google.com/privacy?hl=en", "exactly-gdpr-google-maps"); ?>"><?php echo $options['exggmap_anchor_text']?></a> 54 53 </p> 55 54 <?php -
exactly-gdpr-google-maps/trunk/public/css/styles.css
r2291268 r2882222 2 2 position: relative; 3 3 width: 100%; 4 height: 0;4 aspect-ratio: 4 / 3; 5 5 } 6 6 … … 12 12 bottom: 0; 13 13 opacity: 1; 14 transition: opacity 2.5s ease-in .5s;14 transition: opacity 2.5s ease-in 0.5s; 15 15 display: flex; 16 16 flex-direction: column; … … 44 44 } 45 45 46 .exggmap-wrapper a:hover, .exggmap-wrapper a:visited { 46 .exggmap-wrapper a:hover, 47 .exggmap-wrapper a:visited { 47 48 color: #2196f3; 48 49 } -
exactly-gdpr-google-maps/trunk/readme.txt
r2559278 r2882222 3 3 Tags: GDPR, DSGVO, Maps, Google Maps 4 4 Requires at least: 4.9 5 Tested up to: 5.7.26 Stable tag: 1.0. 65 Tested up to: 6.1.1 6 Stable tag: 1.0.7 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 43 43 * It provides a required link to the Google terms of use and 44 44 * offers a simple short code that allows you to use the secure cards anywhere. 45 46 **WHAT THE PLUGIN IS NOT FOR** 47 48 * Maps generated with Google Maps Platform 49 * Handling of different cards (Sorry. But feel free to let us know if there is interest. If enough people get together we will adapt or write a new plugin). 50 * Saving users content settings in web databases. Last but not least, this is why the plugin is simple and secure. 45 51 46 52 … … 133 139 * Update of Screenshots 134 140 = 1.0.6 = 141 * Tests for current WP Version 142 = 1.0.7 = 143 * Update for current WP Version 144 * Implementing css aspect ratio instead of padding-hack 145 * Correct styling for gutenberg without wrapper divs 146 * adding possibility for editing anchor text 147 * new Gutenberg Screenshot 148 * Adding "What the plugin is not for..." in docs 135 149 136 150
Note: See TracChangeset
for help on using the changeset viewer.