Plugin Directory

Changeset 2882222


Ignore:
Timestamp:
03/17/2023 09:47:13 PM (3 years ago)
Author:
exovia
Message:

Version 1.0.7

Location:
exactly-gdpr-google-maps
Files:
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • exactly-gdpr-google-maps/tags/1.0.7/admin/exggmap-admin.php

    r2551436 r2882222  
    6565    __('Button Title', 'exactly-gdpr-google-maps'),
    6666    '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',
    6775    'exggmap_options_page',
    6876    'exggmap_section'
     
    136144  $sanitary_values['exggmap_button_title'] = sanitize_text_field( $input['exggmap_button_title'] );
    137145}
     146if ( isset( $input['exggmap_anchor_text'] ) ) {
     147  $sanitary_values['exggmap_anchor_text'] = sanitize_text_field( $input['exggmap_anchor_text'] );
     148}
    138149
    139150if ( isset( $input['exggmap_map_width'] ) ) {
     
    206217  );
    207218  echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Load Map', 'exactly-gdpr-google-maps') . '<span/>';
     219}
     220function 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/>';
    208227}
    209228
  • exactly-gdpr-google-maps/tags/1.0.7/exactly-gdpr-google-maps.php

    r2559279 r2882222  
    66 * Plugin URI:  https://wordpress.org/plugins/exactly-gdpr-google-maps/
    77 * 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.6
     8 * Version:     1.0.7
    99 * Author:      exovia
    1010 * Author URI:  https://www.exovia.de/
     
    2525 * Definitions
    2626 */
    27 define( 'EXGGMAP_VERSION', '1.0.6' );
     27define( 'EXGGMAP_VERSION', '1.0.7' );
    2828
    2929define( 'EXGGMAP_PLUGIN', __FILE__ );
  • exactly-gdpr-google-maps/tags/1.0.7/includes/exggmap-defaults.php

    r2291268 r2882222  
    1515    "exggmap_map_height"=>"9",
    1616    "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'),
    1718    "exggmap_layer_background_color"=>"#000000",
    1819    "exggmap_button_background_color"=>"#693e91",
  • exactly-gdpr-google-maps/tags/1.0.7/includes/exggmap-shortcode.php

    r2559278 r2882222  
    1818  $box_styles = 'style="width:' . $width .'px; height: '. $height .'px;'.'"';
    1919  $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;
    2221 
    2322    ob_start();     
    2423    ?>
    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; ?>">
    2625      <div class="exggmap-mask" style="background-color: <?php echo $background_color; ?>; color:<?php echo $font_color ?>">
    2726        <div class="exggmap-mask-content">
     
    5150        target="_blank"
    5251        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>
    5453    </p>
    5554    <?php
  • exactly-gdpr-google-maps/tags/1.0.7/public/css/styles.css

    r2291268 r2882222  
    22  position: relative;
    33  width: 100%;
    4   height: 0;
     4  aspect-ratio: 4 / 3;
    55}
    66
     
    1212  bottom: 0;
    1313  opacity: 1;
    14   transition: opacity 2.5s ease-in .5s;
     14  transition: opacity 2.5s ease-in 0.5s;
    1515  display: flex;
    1616  flex-direction: column;
     
    4444}
    4545
    46 .exggmap-wrapper a:hover, .exggmap-wrapper a:visited {
     46.exggmap-wrapper a:hover,
     47.exggmap-wrapper a:visited {
    4748  color: #2196f3;
    4849}
  • exactly-gdpr-google-maps/tags/1.0.7/readme.txt

    r2559278 r2882222  
    33Tags: GDPR, DSGVO, Maps, Google Maps
    44Requires at least: 4.9
    5 Tested up to: 5.7.2
    6 Stable tag: 1.0.6
     5Tested up to: 6.1.1
     6Stable tag: 1.0.7
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    4343* It provides a required link to the Google terms of use and
    4444* 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.
    4551
    4652
     
    133139* Update of Screenshots
    134140= 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
    135149
    136150
  • exactly-gdpr-google-maps/trunk/admin/exggmap-admin.php

    r2551436 r2882222  
    6565    __('Button Title', 'exactly-gdpr-google-maps'),
    6666    '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',
    6775    'exggmap_options_page',
    6876    'exggmap_section'
     
    136144  $sanitary_values['exggmap_button_title'] = sanitize_text_field( $input['exggmap_button_title'] );
    137145}
     146if ( isset( $input['exggmap_anchor_text'] ) ) {
     147  $sanitary_values['exggmap_anchor_text'] = sanitize_text_field( $input['exggmap_anchor_text'] );
     148}
    138149
    139150if ( isset( $input['exggmap_map_width'] ) ) {
     
    206217  );
    207218  echo '<br><span>' . __('Default Value:', 'exactly-gdpr-google-maps') .' ' . __('Load Map', 'exactly-gdpr-google-maps') . '<span/>';
     219}
     220function 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/>';
    208227}
    209228
  • exactly-gdpr-google-maps/trunk/exactly-gdpr-google-maps.php

    r2559279 r2882222  
    66 * Plugin URI:  https://wordpress.org/plugins/exactly-gdpr-google-maps/
    77 * 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.6
     8 * Version:     1.0.7
    99 * Author:      exovia
    1010 * Author URI:  https://www.exovia.de/
     
    2525 * Definitions
    2626 */
    27 define( 'EXGGMAP_VERSION', '1.0.6' );
     27define( 'EXGGMAP_VERSION', '1.0.7' );
    2828
    2929define( 'EXGGMAP_PLUGIN', __FILE__ );
  • exactly-gdpr-google-maps/trunk/includes/exggmap-defaults.php

    r2291268 r2882222  
    1515    "exggmap_map_height"=>"9",
    1616    "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'),
    1718    "exggmap_layer_background_color"=>"#000000",
    1819    "exggmap_button_background_color"=>"#693e91",
  • exactly-gdpr-google-maps/trunk/includes/exggmap-shortcode.php

    r2559278 r2882222  
    1818  $box_styles = 'style="width:' . $width .'px; height: '. $height .'px;'.'"';
    1919  $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;
    2221 
    2322    ob_start();     
    2423    ?>
    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; ?>">
    2625      <div class="exggmap-mask" style="background-color: <?php echo $background_color; ?>; color:<?php echo $font_color ?>">
    2726        <div class="exggmap-mask-content">
     
    5150        target="_blank"
    5251        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>
    5453    </p>
    5554    <?php
  • exactly-gdpr-google-maps/trunk/public/css/styles.css

    r2291268 r2882222  
    22  position: relative;
    33  width: 100%;
    4   height: 0;
     4  aspect-ratio: 4 / 3;
    55}
    66
     
    1212  bottom: 0;
    1313  opacity: 1;
    14   transition: opacity 2.5s ease-in .5s;
     14  transition: opacity 2.5s ease-in 0.5s;
    1515  display: flex;
    1616  flex-direction: column;
     
    4444}
    4545
    46 .exggmap-wrapper a:hover, .exggmap-wrapper a:visited {
     46.exggmap-wrapper a:hover,
     47.exggmap-wrapper a:visited {
    4748  color: #2196f3;
    4849}
  • exactly-gdpr-google-maps/trunk/readme.txt

    r2559278 r2882222  
    33Tags: GDPR, DSGVO, Maps, Google Maps
    44Requires at least: 4.9
    5 Tested up to: 5.7.2
    6 Stable tag: 1.0.6
     5Tested up to: 6.1.1
     6Stable tag: 1.0.7
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    4343* It provides a required link to the Google terms of use and
    4444* 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.
    4551
    4652
     
    133139* Update of Screenshots
    134140= 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
    135149
    136150
Note: See TracChangeset for help on using the changeset viewer.