Plugin Directory

Changeset 2725661


Ignore:
Timestamp:
05/17/2022 09:27:42 PM (4 years ago)
Author:
podiumsupport
Message:

tagging version 1.0.3

Location:
podium/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • podium/trunk/README.md

    r2724820 r2725661  
    33Contributors: Podium 
    44Tags: Podium, Podium Webchat, Webchat, Texting, Chat Widget
    5 Version: 1.0.2 
    6 Stable Tag: 1.0.2 
     5Version: 1.0.3 
     6Stable Tag: 1.0.3 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • podium/trunk/includes/admin.php

    r1944909 r2725661  
    3535                    </th>
    3636                    <td>
    37                       <?php
    38                           echo "<select name=\"podium_settings[podium_enabled]\"  id=\"podium_enabled\">\n";
    39 
    40                           echo "<option value=\"on\"";
    41                           if ( $podium_activated ) { echo " selected='selected'"; }
    42                           echo ">Enabled</option>\n";
    43 
    44                           echo "<option value=\"off\"";
    45                           if ( ! $podium_activated ) { echo" selected='selected'"; }
    46                           echo ">Disabled</option>\n";
    47                           echo "</select>\n";
    48                         ?>
     37                    <select name="podium_settings[podium_enabled]"  id="podium_enabled">
     38                      <option <?php echo ($podium_activated) ? esc_html_e('selected="selected"', 'text-domain') : '' ?> value="<?php echo esc_attr('on'); ?>">Enabled</option>
     39                      <option <?php echo (!$podium_activated) ? esc_html_e('selected="selected"', 'text-domain') : '' ?> value="<?php echo esc_attr('off'); ?>">Disabled</option>
     40                    </select>
    4941                    </td>
    5042                </tr>
  • podium/trunk/includes/embed.php

    r1948727 r2725661  
    33// Add the podium Javascript
    44add_action('wp_footer', 'add_podium');
     5
     6
     7function print_sanatized_script($podium_tag)
     8{
     9  $script_dom = new DOMDocument();
     10  $script_dom->loadHTML('<html>'.$podium_tag.'</html>');
     11  foreach($script_dom->getElementsByTagName('script') as $script)
     12  {
     13    if (strpos(esc_url_raw($script->getAttribute('src')), 'ORG_TOKEN') !== false)
     14    {
     15      echo '<script defer src="' . esc_url_raw($script->getAttribute('src')) . '" id="podium-widget" data-organization-api-token="' . esc_attr($script->getAttribute('data-organization-api-token')) . '"></script>';
     16      echo "\n";
     17    }
     18    else
     19    {
     20      echo '<script defer src="' . esc_url_raw($script->getAttribute('src')) . '" id="podium-widget" data-api-token="' . esc_attr($script->getAttribute('data-api-token')) . '" /></script>';
     21      echo "\n";
     22    }
     23  }
     24
     25}
    526
    627
     
    3051    if ( '' != $podium_tag )
    3152    {
    32       echo "<!-- Start Podium Webchat Code -->\n";
    33       // echo "<script defer src=\"https://connect.podium.com/widget.js#API_TOKEN=$podium_tag\" id=\"podium-widget\" data-api-token=\"$podium_tag\"></script>\n";
    34       echo $podium_tag;
    35       echo"<!-- end: Podium Webchat Code. -->\n";
     53      // script tag which will be print in the client website
     54      echo "<!-- Start: Podium Webchat Code -->\n";
     55      print_sanatized_script($podium_tag);
     56      echo "<!-- End: Podium Webchat Code -->\n";
    3657
    3758
  • podium/trunk/podium.php

    r2724820 r2725661  
    22/*
    33 * Plugin Name: Podium
    4  * Version: 1.0.2
    5  * Stable Tag: 1.0.2
     4 * Version: 1.0.3
     5 * Stable Tag: 1.0.3
    66 * Description: Allow customers to text you right from your website, capture them as leads, and convert them to customers. Install Podium on your WordPress site in just a few clicks.
    77 * Author: Podium
     
    1515* Define
    1616*/
    17 define('podium_4f050d29b8BB9_VERSION', '1.0.2');
     17define('podium_4f050d29b8BB9_VERSION', '1.0.3');
    1818define('podium_4f050d29b8BB9_DIR', plugin_dir_path(__FILE__));
    1919define('podium_4f050d29b8BB9_URL', plugin_dir_url(__FILE__));
  • podium/trunk/readme.txt

    r2724820 r2725661  
    33Contributors: Podium
    44Tags: Podium, Podium Webchat, Webchat, Texting, Chat Widget
    5 Version: 1.0.2
    6 Stable Tag: 1.0.2
     5Version: 1.0.3
     6Stable Tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.