Changeset 536974
- Timestamp:
- 04/26/2012 08:44:53 PM (14 years ago)
- Location:
- wp-click2client
- Files:
-
- 2 edited
- 5 copied
-
branches/1.1.0 (copied) (copied from wp-click2client/trunk)
-
branches/1.1.0/Services (copied) (copied from wp-click2client/trunk/Services)
-
branches/1.1.0/readme.txt (copied) (copied from wp-click2client/trunk/readme.txt) (3 diffs)
-
branches/1.1.0/twilio.php (copied) (copied from wp-click2client/trunk/twilio.php)
-
branches/1.1.0/wp-click2client.php (copied) (copied from wp-click2client/trunk/wp-click2client.php) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-click2client.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-click2client/branches/1.1.0/readme.txt
r536956 r536974 1 1 === Plugin Name === 2 Contributors: boldbigflank , minddog2 Contributors: boldbigflank 3 3 Tags: twilio, click2client, phone, voice 4 4 Requires at least: 2.8.0 5 5 Tested up to: 3.3.2 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 8 8 Wordpress Click2Client adds in-browser call functionality to any wordpress site. Just configure the control and drop the tag in your theme. … … 21 21 First, create a Twilio App at https://www.twilio.com/user/account/apps and copy its Application Sid (34 characters, starts with "AP") 22 22 Drop this code snippet below anywhere you want a click to client button, then replace ApplicationSid with the Application Sid that you want the button to call 23 23 24 <?php wp_c2client("ApplicationSid"); ?> 24 25 25 You may optionally change the title of the button by entering a second variable. For example: 26 <?php wp_c2client("ApplicationSid", "Call Now!!!1"); ?> 26 You may add a couple other parameters: choose the button text(string, default is "Call"), and show a box that allows users to input digits (boolean, default is FALSE). For example: 27 28 <?php wp_c2client("ApplicationSid", "Button Text", TRUE); ?> 27 29 28 30 Thats it! … … 35 37 == Frequently Asked Questions == 36 38 39 = I don't see the button = 40 Make sure you have set up php execution in your wordpress (You may need to get the PHP Execution plugin) 41 37 42 = Where can I go for help or support? = 38 43 Twilio will gladly help you with any questions or comments you may have with twilio services. -
wp-click2client/branches/1.1.0/wp-click2client.php
r536947 r536974 4 4 Plugin URI: https://github.com/smashcubed/wp-click2client 5 5 Description: Allows theme developers to add click2client support to any post/page 6 Version: 1. 0.06 Version: 1.1.0 7 7 Author: Alex Swan (original by Adam Ballai) 8 8 Author URI: http://www.bold-it.com … … 20 20 if(!class_exists('Click2client')) { 21 21 22 define('WP_CLICK2CLIENT_VERSION', '1. 0.0');22 define('WP_CLICK2CLIENT_VERSION', '1.1.0'); 23 23 require_once 'Services/Twilio.php'; 24 24 … … 121 121 122 122 /* Wordpres Tag for click2client */ 123 function wp_c2client($applicationSid, $Caption = "Call" ) {123 function wp_c2client($applicationSid, $Caption = "Call", $Digits = False) { 124 124 // Click to client 125 125 // Get a token using the AppId … … 129 129 $callerId = get_option('wpc2client_caller_id'); 130 130 $c2c_id = "C2C".uniqid(); 131 echo "<div id='$c2c_id'>"; 132 echo "<button id='click2client-button'>$Caption</button>"; 133 if($Digits) echo "<input id='$c2c-input' type='text' placeholder='digits' style='width:40px'/>"; 134 echo '</div>'; 131 135 echo <<<END 132 <div id="$c2c_id">133 <button id="click2client-button">$Caption</button>134 <input id='$c2c-input' type='text' placeholder="digits" style="width:40px"/>135 </div>136 136 <script type="text/javascript"> 137 137 var connection = "" … … 166 166 </script> 167 167 END; 168 169 // Click to call170 168 } 171 169 -
wp-click2client/trunk/readme.txt
r536956 r536974 1 1 === Plugin Name === 2 Contributors: boldbigflank , minddog2 Contributors: boldbigflank 3 3 Tags: twilio, click2client, phone, voice 4 4 Requires at least: 2.8.0 5 5 Tested up to: 3.3.2 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 8 8 Wordpress Click2Client adds in-browser call functionality to any wordpress site. Just configure the control and drop the tag in your theme. … … 21 21 First, create a Twilio App at https://www.twilio.com/user/account/apps and copy its Application Sid (34 characters, starts with "AP") 22 22 Drop this code snippet below anywhere you want a click to client button, then replace ApplicationSid with the Application Sid that you want the button to call 23 23 24 <?php wp_c2client("ApplicationSid"); ?> 24 25 25 You may optionally change the title of the button by entering a second variable. For example: 26 <?php wp_c2client("ApplicationSid", "Call Now!!!1"); ?> 26 You may add a couple other parameters: choose the button text(string, default is "Call"), and show a box that allows users to input digits (boolean, default is FALSE). For example: 27 28 <?php wp_c2client("ApplicationSid", "Button Text", TRUE); ?> 27 29 28 30 Thats it! … … 35 37 == Frequently Asked Questions == 36 38 39 = I don't see the button = 40 Make sure you have set up php execution in your wordpress (You may need to get the PHP Execution plugin) 41 37 42 = Where can I go for help or support? = 38 43 Twilio will gladly help you with any questions or comments you may have with twilio services. -
wp-click2client/trunk/wp-click2client.php
r536947 r536974 4 4 Plugin URI: https://github.com/smashcubed/wp-click2client 5 5 Description: Allows theme developers to add click2client support to any post/page 6 Version: 1. 0.06 Version: 1.1.0 7 7 Author: Alex Swan (original by Adam Ballai) 8 8 Author URI: http://www.bold-it.com … … 20 20 if(!class_exists('Click2client')) { 21 21 22 define('WP_CLICK2CLIENT_VERSION', '1. 0.0');22 define('WP_CLICK2CLIENT_VERSION', '1.1.0'); 23 23 require_once 'Services/Twilio.php'; 24 24 … … 121 121 122 122 /* Wordpres Tag for click2client */ 123 function wp_c2client($applicationSid, $Caption = "Call" ) {123 function wp_c2client($applicationSid, $Caption = "Call", $Digits = False) { 124 124 // Click to client 125 125 // Get a token using the AppId … … 129 129 $callerId = get_option('wpc2client_caller_id'); 130 130 $c2c_id = "C2C".uniqid(); 131 echo "<div id='$c2c_id'>"; 132 echo "<button id='click2client-button'>$Caption</button>"; 133 if($Digits) echo "<input id='$c2c-input' type='text' placeholder='digits' style='width:40px'/>"; 134 echo '</div>'; 131 135 echo <<<END 132 <div id="$c2c_id">133 <button id="click2client-button">$Caption</button>134 <input id='$c2c-input' type='text' placeholder="digits" style="width:40px"/>135 </div>136 136 <script type="text/javascript"> 137 137 var connection = "" … … 166 166 </script> 167 167 END; 168 169 // Click to call170 168 } 171 169
Note: See TracChangeset
for help on using the changeset viewer.