Plugin Directory

Changeset 536974


Ignore:
Timestamp:
04/26/2012 08:44:53 PM (14 years ago)
Author:
boldbigflank
Message:

hide digits option

Location:
wp-click2client
Files:
2 edited
5 copied

Legend:

Unmodified
Added
Removed
  • wp-click2client/branches/1.1.0/readme.txt

    r536956 r536974  
    11=== Plugin Name ===
    2 Contributors: boldbigflank, minddog
     2Contributors: boldbigflank
    33Tags: twilio, click2client, phone, voice
    44Requires at least: 2.8.0
    55Tested up to: 3.3.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77
    88Wordpress Click2Client adds in-browser call functionality to any wordpress site.  Just configure the control and drop the tag in your theme.
     
    2121First, create a Twilio App at https://www.twilio.com/user/account/apps and copy its Application Sid (34 characters, starts with "AP")
    2222Drop 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
    2324    <?php wp_c2client("ApplicationSid"); ?>
    2425
    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"); ?>
     26You 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); ?>
    2729
    2830Thats it!
     
    3537== Frequently Asked Questions ==
    3638
     39= I don't see the button =
     40Make sure you have set up php execution in your wordpress (You may need to get the PHP Execution plugin)
     41
    3742= Where can I go for help or support? =
    3843Twilio 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  
    44 Plugin URI: https://github.com/smashcubed/wp-click2client
    55 Description: Allows theme developers to add click2client support to any post/page
    6  Version: 1.0.0
     6 Version: 1.1.0
    77 Author: Alex Swan (original by Adam Ballai)
    88 Author URI: http://www.bold-it.com
     
    2020if(!class_exists('Click2client')) {
    2121
    22 define('WP_CLICK2CLIENT_VERSION', '1.0.0');
     22define('WP_CLICK2CLIENT_VERSION', '1.1.0');
    2323require_once 'Services/Twilio.php';
    2424
     
    121121
    122122/* Wordpres Tag for click2client */
    123 function wp_c2client($applicationSid, $Caption = "Call") {
     123function wp_c2client($applicationSid, $Caption = "Call", $Digits = False) {
    124124    // Click to client
    125125    // Get a token using the AppId
     
    129129    $callerId = get_option('wpc2client_caller_id');
    130130    $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>';
    131135    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>
    136136        <script type="text/javascript">
    137137            var connection = ""
     
    166166        </script>       
    167167END;
    168    
    169     // Click to call
    170168}
    171169
  • wp-click2client/trunk/readme.txt

    r536956 r536974  
    11=== Plugin Name ===
    2 Contributors: boldbigflank, minddog
     2Contributors: boldbigflank
    33Tags: twilio, click2client, phone, voice
    44Requires at least: 2.8.0
    55Tested up to: 3.3.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77
    88Wordpress Click2Client adds in-browser call functionality to any wordpress site.  Just configure the control and drop the tag in your theme.
     
    2121First, create a Twilio App at https://www.twilio.com/user/account/apps and copy its Application Sid (34 characters, starts with "AP")
    2222Drop 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
    2324    &lt;?php wp_c2client("ApplicationSid"); ?&gt;
    2425
    25 You may optionally change the title of the button by entering a second variable.  For example:
    26     &lt;?php wp_c2client("ApplicationSid", "Call Now!!!1"); ?&gt;
     26You 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    &lt;?php wp_c2client("ApplicationSid", "Button Text", TRUE); ?&gt;
    2729
    2830Thats it!
     
    3537== Frequently Asked Questions ==
    3638
     39= I don't see the button =
     40Make sure you have set up php execution in your wordpress (You may need to get the PHP Execution plugin)
     41
    3742= Where can I go for help or support? =
    3843Twilio will gladly help you with any questions or comments you may have with twilio services.
  • wp-click2client/trunk/wp-click2client.php

    r536947 r536974  
    44 Plugin URI: https://github.com/smashcubed/wp-click2client
    55 Description: Allows theme developers to add click2client support to any post/page
    6  Version: 1.0.0
     6 Version: 1.1.0
    77 Author: Alex Swan (original by Adam Ballai)
    88 Author URI: http://www.bold-it.com
     
    2020if(!class_exists('Click2client')) {
    2121
    22 define('WP_CLICK2CLIENT_VERSION', '1.0.0');
     22define('WP_CLICK2CLIENT_VERSION', '1.1.0');
    2323require_once 'Services/Twilio.php';
    2424
     
    121121
    122122/* Wordpres Tag for click2client */
    123 function wp_c2client($applicationSid, $Caption = "Call") {
     123function wp_c2client($applicationSid, $Caption = "Call", $Digits = False) {
    124124    // Click to client
    125125    // Get a token using the AppId
     
    129129    $callerId = get_option('wpc2client_caller_id');
    130130    $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>';
    131135    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>
    136136        <script type="text/javascript">
    137137            var connection = ""
     
    166166        </script>       
    167167END;
    168    
    169     // Click to call
    170168}
    171169
Note: See TracChangeset for help on using the changeset viewer.