Changeset 2725661
- Timestamp:
- 05/17/2022 09:27:42 PM (4 years ago)
- Location:
- podium/trunk
- Files:
-
- 5 edited
-
README.md (modified) (1 diff)
-
includes/admin.php (modified) (1 diff)
-
includes/embed.php (modified) (2 diffs)
-
podium.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
podium/trunk/README.md
r2724820 r2725661 3 3 Contributors: Podium 4 4 Tags: Podium, Podium Webchat, Webchat, Texting, Chat Widget 5 Version: 1.0. 26 Stable Tag: 1.0. 25 Version: 1.0.3 6 Stable Tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
podium/trunk/includes/admin.php
r1944909 r2725661 35 35 </th> 36 36 <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> 49 41 </td> 50 42 </tr> -
podium/trunk/includes/embed.php
r1948727 r2725661 3 3 // Add the podium Javascript 4 4 add_action('wp_footer', 'add_podium'); 5 6 7 function 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 } 5 26 6 27 … … 30 51 if ( '' != $podium_tag ) 31 52 { 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"; 36 57 37 58 -
podium/trunk/podium.php
r2724820 r2725661 2 2 /* 3 3 * Plugin Name: Podium 4 * Version: 1.0. 25 * Stable Tag: 1.0. 24 * Version: 1.0.3 5 * Stable Tag: 1.0.3 6 6 * 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. 7 7 * Author: Podium … … 15 15 * Define 16 16 */ 17 define('podium_4f050d29b8BB9_VERSION', '1.0. 2');17 define('podium_4f050d29b8BB9_VERSION', '1.0.3'); 18 18 define('podium_4f050d29b8BB9_DIR', plugin_dir_path(__FILE__)); 19 19 define('podium_4f050d29b8BB9_URL', plugin_dir_url(__FILE__)); -
podium/trunk/readme.txt
r2724820 r2725661 3 3 Contributors: Podium 4 4 Tags: Podium, Podium Webchat, Webchat, Texting, Chat Widget 5 Version: 1.0. 26 Stable Tag: 1.0. 25 Version: 1.0.3 6 Stable Tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.