Changeset 1342044
- Timestamp:
- 02/03/2016 09:30:17 AM (10 years ago)
- Location:
- call-from-web/trunk
- Files:
-
- 2 edited
-
call-from-web.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
call-from-web/trunk/call-from-web.php
r918645 r1342044 2 2 /* 3 3 * Plugin Name: Call From Web 4 * Plugin URI: http ://www.call-from-web.com/plugins/wordpress4 * Plugin URI: https://www.call-from-web.com/plugins/wordpress 5 5 * Description: Let your visitors call you by phone for free. 6 * Version: 2.36 * Version: 3.0 7 7 * Author: Call From Web 8 * Author URI: http ://www.call-from-web.com8 * Author URI: https://www.call-from-web.com 9 9 * License: GPL2 10 10 * */ 11 11 ?> 12 12 <?php 13 14 define('CFW_BASE_URL', 'https://www.call-from-web.com'); 13 15 14 16 add_action('admin_menu', 'cfw_add_page_fn'); … … 23 25 <div class="icon32" id="icon-options-general"><br></div> 24 26 <h2>Call From Web</h2> 25 Set up your domain widget ID here to be able to view your comments. <h3>Need a valid widget ID? <a href=" http://www.call-from-web.com/users/sign_up?utm_source=wordpress&utm_medium=plugin&utm_campaign=settings">Sign up</a>.</h3>27 Set up your domain widget ID here to be able to view your comments. <h3>Need a valid widget ID? <a href="<?= CFW_BASE_URL ?>/users/sign_up?utm_source=wordpress&utm_medium=plugin&utm_campaign=settings">Sign up</a>.</h3> 26 28 <form action="options.php" method="post"> 27 29 <?php settings_fields('cfw_plugin_options'); ?> … … 30 32 <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?>" /> 31 33 </p> 32 <h3><a href=" http://www.call-from-web.com/contact_attempts?utm_source=wordpress&utm_medium=plugin&utm_campaign=settings">Log in</a> to check for incoming calls.</h3>34 <h3><a href="<?= CFW_BASE_URL ?>/contact_attempts?utm_source=wordpress&utm_medium=plugin&utm_campaign=settings">Log in</a> to check for incoming calls.</h3> 33 35 </form> 34 36 </div> … … 75 77 function cfw_addButton(){ 76 78 $o = get_option('cfw_plugin_options'); 77 $profile = empty($o['cfw_profile']) ? " " : "/{$o['cfw_profile']}";79 $profile = empty($o['cfw_profile']) ? "no_profile" : $o['cfw_profile']; 78 80 $button_title = empty($o['cfw_button_title']) ? 'Contact Us' : $o['cfw_button_title']; 79 echo "<a href=\" http://www.call-from-web.com/request{$profile}\" class=\"call-from-web\">{$button_title}</a>";80 echo '<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="http://cdn.call-from-web.com/assets/form/v1.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","call-from-web-js");</script>';81 echo "<a href=\"" . CFW_BASE_URL . "/request/{$profile}\" class=\"call-from-web\">{$button_title}</a>"; 82 echo "<script type=\"text/javascript\">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"". CFW_BASE_URL . "/button/v2/{$profile}.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,'script','call-from-web-v2-js');</script>"; 81 83 } 82 84 … … 84 86 $no_api_key_provided =<<<EOS 85 87 <p>You have not entered your Widget ID for <b>Call From Web</b> plugin. <a href="options-general.php?page=call-from-web/call-from-web.php">Please enter your Widget ID here</a>.</p> 86 <p><a href="http ://www.call-from-web.com/users/sign_up?utm_source=wordpress&utm_medium=plugin&utm_campaign=notice">Get your Widget ID if you don't have one here.</a></p>88 <p><a href="https://www.call-from-web.com/users/sign_up?utm_source=wordpress&utm_medium=plugin&utm_campaign=notice">Get your Widget ID if you don't have one here.</a></p> 87 89 EOS; 88 90 ?> … … 95 97 $o = get_option('cfw_plugin_options'); 96 98 if (empty($o['cfw_profile'])) { add_action( 'admin_notices', 'cfw_no_api_key_provided_admin_notice'); } 97 -
call-from-web/trunk/readme.txt
r1313555 r1342044 3 3 Tags: call, phone, button, click2call, support, feedback, form, button, contact form, request, comment, bug report, request features 4 4 Requires at least: 3.3 5 Version: 1.05 Version: 3.0 6 6 Tested up to: 4.4 7 7 Stable tag: trunk
Note: See TracChangeset
for help on using the changeset viewer.