Plugin Directory

Changeset 1259105


Ignore:
Timestamp:
10/04/2015 05:09:11 AM (10 years ago)
Author:
ryanshoover
Message:

1.0.1 - Ship

Location:
walkme-integration
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • walkme-integration/tags/1.0.1/README.txt

    r1094894 r1259105  
    33Tags: WalkMe, eLearning
    44Requires at least: 3.5
    5 Tested up to: 4.1
     5Tested up to: 4.3.1
    66Stable tag: trunk
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 
     10This plugin provides a simple management page for adding WalkMe code into a WordPress site.
    1111
    1212== Description ==
     
    3737
    3838== Changelog ==
     391.0.1 Update code standards and stable tag
    3940
    40411.0 Initial release
  • walkme-integration/tags/1.0.1/lib/admin.php

    r1094894 r1259105  
    66
    77    public static function get_instance()
    8     {
    9         static $instance = null;
     8    {
     9        static $instance = null;
    1010
    11         if ( null === $instance ) {
    12             $instance = new static();
    13         }
     11        if ( null === $instance ) {
     12            $instance = new static();
     13        }
    1414
    15         return $instance;
    16     }
     15        return $instance;
     16    }
     17
     18    private function __clone(){
     19    }
     20
     21
     22    private function __wakeup(){
     23    }
    1724
    1825    protected function __construct() {
     
    2330
    2431        // Add the options page to the Tools menu
    25         add_action('admin_menu', array( &$this, 'add_options_page') );
     32        add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
    2633
    2734        // Create the form on the options page
     
    2936    }
    3037
    31     private function __clone(){
    32     }
    33 
    34    
    35     private function __wakeup(){
    36     }
    37 
    3838    /*
    39      * Adds the metabox to post and page edit screens
     39     * Adds the metabox to post and page edit screens
    4040     *
    4141     * @since 1.0
     
    4343    public function add_options_page() {
    4444
    45         add_management_page( 'WalkMe', 
    46                              'WalkMe',
    47                              'manage_options',
    48                              'walkme',
    49                              array( &$this, 'do_walkme_page' ) );
     45        add_management_page( 'WalkMe',
     46            'WalkMe',
     47            'manage_options',
     48            'walkme',
     49        array( &$this, 'do_walkme_page' ) );
    5050
    5151    }
     
    7171    public function do_walkme_page( $post ) {
    7272
    73         $value   = get_option('walkme-code');
     73        $value   = get_option( 'walkme-code' );
    7474
    75         $output  = '';
    76 
    77         $output .= '<div class="wrap">';
    78 
    79         $output .= '<h1>' . __( 'WalkMe Options', 'walkme' ) . '</h1>';
    80 
    81         $output .= '<a href="http://www.walkme.com/" target="_blank" >';
    82 
    83         $output .= '<img src="' . $this->url . 'img/logo.png" title="WalkMe Logo">';
    84 
    85         $output .= '</a>';
    86 
    87         $output .= '<p>WalkMe™ is an interactive online guidance and engagement platform.</p>';
    88 
    89         $output .= '<p>WalkMe™ provides a cloud-based service designed to help professionals – customer service managers, user experience managers, training professionals, SaaS providers and sales managers – to guide and engage prospects, customers, employees and partners through any online experience.</p>';
    90 
    91         $output .= '<form action="options.php" method="POST" >';
    92 
    93         echo $output;
     75        $output = <<<HTML
     76    <div class="wrap">
     77        <h1>%s</h1>
     78        <a href="http://www.walkme.com/" target="_blank" >
     79            <img src="{$this->url}img/logo.png" title="WalkMe Logo">
     80        </a>
     81        <p>WalkMe&trade; is an interactive online guidance and engagement platform.</p>
     82        <p>WalkMe&trade; provides a cloud-based service designed to help professionals – customer service managers, user experience managers, training professionals, SaaS providers and sales managers – to guide and engage prospects, customers, employees and partners through any online experience.</p>
     83        <form action="options.php" method="POST" >
     84HTML;
     85        printf( $output, __( 'WalkMe Options', 'walkme' ) );
    9486
    9587        settings_fields( 'walkme-group' );
     
    9789        do_settings_sections( 'walkme-group' );
    9890
    99         $output  = '';
    100 
    101         $output .= '<div>';
    102 
    103         $output .= '<label for="walkme_code">';
    104        
    105         $output .= __( 'Insert your WalkMe Code', 'walkme' );
    106        
    107         $output .= '</label> ';
    108 
    109         $output .= '</div>';
    110 
    111         $output .= '<div>';
    112        
    113         $output .= '<input type="text" id="walkme-code" name="walkme-code" value="' . esc_attr( $value ) . '" size="50" />';
    114 
    115         $output .= '</div>';
    116 
    117         $output .= '<p class="description">';
    118 
    119         $output .= __( 'Your WalkMe code is the piece of JavaScript code that WalkMe says should go in your document &lt;head&gt; section. It looks something like', 'walkme' );
    120 
    121         $output .= '<xmp>';
    122 
    123         $output .= '
    124 <script type="text/javascript">(function() {var walkme = document.createElement("script");
    125 walkme.type = "text/javascript"; walkme.async = true; walkme.src =
    126 "http://cdn.walkme.com/users/9tK6MJmqLebvdGLoxXd7WBKPV/test/walkme_9tK6MJmqLebvdGLoxXd7WBKPV.js";
     91        $output  = <<<HTML
     92        <div>
     93            <label for="walkme_code">%s</label>
     94        </div>
     95        <div>
     96            <textarea id="walkme-code" name="walkme-code" cols="80" rows="5">%s</textarea>
     97        </div>
     98        <p class="description">%s
     99            <xmp>
     100<script type="text/javascript">(function() {var walkme = document.createElement("script");
     101walkme.type = "text/javascript"; walkme.async = true; walkme.src =
     102"http://cdn.walkme.com/users/HDeZFfidurmy6F/walkme_HDeZFfidurmy6F.js";
    127103var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(walkme, s);})();
    128 </script>';
    129 
    130         $output .= '</xmp>';
    131 
    132         $output .= '</p>';
    133 
    134         echo $output;
     104</script>
     105            </xmp>
     106        </p>
     107HTML;
     108        printf( $output, __( 'Insert your WalkMe Code', 'walkme' ), esc_attr( $value ), __( 'Your WalkMe code is the piece of JavaScript code that WalkMe says should go in your document &lt;head&gt; section. It looks something like', 'walkme' ) );
    135109
    136110        submit_button( 'Save WalkMe Code' );
    137111
    138         $output  = '';
     112        echo "</form></div>";
     113    }
    139114
    140         $output .= '</form>';
    141 
    142         $output .= '</div>';
    143 
    144         echo $output;
    145    
    146     }
    147    
    148115}
  • walkme-integration/tags/1.0.1/walkme.php

    r1094894 r1259105  
    55Plugin URI: http://drunkencoding.us
    66Description: Provides easy integration between the Walk Me service and WordPress
    7 Version: 1.0
     7Version: 1.0.1
    88Author: Ryan Hoover
    99Author URI: http://ryan.hoover.ws
     
    1212$path = plugin_dir_path( __FILE__ );
    1313
    14 require_once( $path . 'lib/walkme_class.php' );
     14require_once( $path . 'lib/walkme-class.php' );
    1515require_once( $path . 'lib/admin.php' );
    1616
    17 if( class_exists( 'WalkMe' ) )
     17if ( class_exists( 'WalkMe' ) ) {
    1818    $walkme = WalkMe::get_instance();
     19}
    1920
    20 if( class_exists( 'WalkMeAdmin' ) )
     21if ( class_exists( 'WalkMeAdmin' ) ) {
    2122    $walkme_admin = WalkMeAdmin::get_instance();
     23}
    2224
  • walkme-integration/trunk/README.txt

    r1094894 r1259105  
    33Tags: WalkMe, eLearning
    44Requires at least: 3.5
    5 Tested up to: 4.1
     5Tested up to: 4.3.1
    66Stable tag: trunk
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 
     10This plugin provides a simple management page for adding WalkMe code into a WordPress site.
    1111
    1212== Description ==
     
    3737
    3838== Changelog ==
     391.0.1 Update code standards and stable tag
    3940
    40411.0 Initial release
  • walkme-integration/trunk/lib/admin.php

    r1094894 r1259105  
    66
    77    public static function get_instance()
    8     {
    9         static $instance = null;
     8    {
     9        static $instance = null;
    1010
    11         if ( null === $instance ) {
    12             $instance = new static();
    13         }
     11        if ( null === $instance ) {
     12            $instance = new static();
     13        }
    1414
    15         return $instance;
    16     }
     15        return $instance;
     16    }
     17
     18    private function __clone(){
     19    }
     20
     21
     22    private function __wakeup(){
     23    }
    1724
    1825    protected function __construct() {
     
    2330
    2431        // Add the options page to the Tools menu
    25         add_action('admin_menu', array( &$this, 'add_options_page') );
     32        add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
    2633
    2734        // Create the form on the options page
     
    2936    }
    3037
    31     private function __clone(){
    32     }
    33 
    34    
    35     private function __wakeup(){
    36     }
    37 
    3838    /*
    39      * Adds the metabox to post and page edit screens
     39     * Adds the metabox to post and page edit screens
    4040     *
    4141     * @since 1.0
     
    4343    public function add_options_page() {
    4444
    45         add_management_page( 'WalkMe', 
    46                              'WalkMe',
    47                              'manage_options',
    48                              'walkme',
    49                              array( &$this, 'do_walkme_page' ) );
     45        add_management_page( 'WalkMe',
     46            'WalkMe',
     47            'manage_options',
     48            'walkme',
     49        array( &$this, 'do_walkme_page' ) );
    5050
    5151    }
     
    7171    public function do_walkme_page( $post ) {
    7272
    73         $value   = get_option('walkme-code');
     73        $value   = get_option( 'walkme-code' );
    7474
    75         $output  = '';
    76 
    77         $output .= '<div class="wrap">';
    78 
    79         $output .= '<h1>' . __( 'WalkMe Options', 'walkme' ) . '</h1>';
    80 
    81         $output .= '<a href="http://www.walkme.com/" target="_blank" >';
    82 
    83         $output .= '<img src="' . $this->url . 'img/logo.png" title="WalkMe Logo">';
    84 
    85         $output .= '</a>';
    86 
    87         $output .= '<p>WalkMe™ is an interactive online guidance and engagement platform.</p>';
    88 
    89         $output .= '<p>WalkMe™ provides a cloud-based service designed to help professionals – customer service managers, user experience managers, training professionals, SaaS providers and sales managers – to guide and engage prospects, customers, employees and partners through any online experience.</p>';
    90 
    91         $output .= '<form action="options.php" method="POST" >';
    92 
    93         echo $output;
     75        $output = <<<HTML
     76    <div class="wrap">
     77        <h1>%s</h1>
     78        <a href="http://www.walkme.com/" target="_blank" >
     79            <img src="{$this->url}img/logo.png" title="WalkMe Logo">
     80        </a>
     81        <p>WalkMe&trade; is an interactive online guidance and engagement platform.</p>
     82        <p>WalkMe&trade; provides a cloud-based service designed to help professionals – customer service managers, user experience managers, training professionals, SaaS providers and sales managers – to guide and engage prospects, customers, employees and partners through any online experience.</p>
     83        <form action="options.php" method="POST" >
     84HTML;
     85        printf( $output, __( 'WalkMe Options', 'walkme' ) );
    9486
    9587        settings_fields( 'walkme-group' );
     
    9789        do_settings_sections( 'walkme-group' );
    9890
    99         $output  = '';
    100 
    101         $output .= '<div>';
    102 
    103         $output .= '<label for="walkme_code">';
    104        
    105         $output .= __( 'Insert your WalkMe Code', 'walkme' );
    106        
    107         $output .= '</label> ';
    108 
    109         $output .= '</div>';
    110 
    111         $output .= '<div>';
    112        
    113         $output .= '<input type="text" id="walkme-code" name="walkme-code" value="' . esc_attr( $value ) . '" size="50" />';
    114 
    115         $output .= '</div>';
    116 
    117         $output .= '<p class="description">';
    118 
    119         $output .= __( 'Your WalkMe code is the piece of JavaScript code that WalkMe says should go in your document &lt;head&gt; section. It looks something like', 'walkme' );
    120 
    121         $output .= '<xmp>';
    122 
    123         $output .= '
    124 <script type="text/javascript">(function() {var walkme = document.createElement("script");
    125 walkme.type = "text/javascript"; walkme.async = true; walkme.src =
    126 "http://cdn.walkme.com/users/9tK6MJmqLebvdGLoxXd7WBKPV/test/walkme_9tK6MJmqLebvdGLoxXd7WBKPV.js";
     91        $output  = <<<HTML
     92        <div>
     93            <label for="walkme_code">%s</label>
     94        </div>
     95        <div>
     96            <textarea id="walkme-code" name="walkme-code" cols="80" rows="5">%s</textarea>
     97        </div>
     98        <p class="description">%s
     99            <xmp>
     100<script type="text/javascript">(function() {var walkme = document.createElement("script");
     101walkme.type = "text/javascript"; walkme.async = true; walkme.src =
     102"http://cdn.walkme.com/users/HDeZFfidurmy6F/walkme_HDeZFfidurmy6F.js";
    127103var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(walkme, s);})();
    128 </script>';
    129 
    130         $output .= '</xmp>';
    131 
    132         $output .= '</p>';
    133 
    134         echo $output;
     104</script>
     105            </xmp>
     106        </p>
     107HTML;
     108        printf( $output, __( 'Insert your WalkMe Code', 'walkme' ), esc_attr( $value ), __( 'Your WalkMe code is the piece of JavaScript code that WalkMe says should go in your document &lt;head&gt; section. It looks something like', 'walkme' ) );
    135109
    136110        submit_button( 'Save WalkMe Code' );
    137111
    138         $output  = '';
     112        echo "</form></div>";
     113    }
    139114
    140         $output .= '</form>';
    141 
    142         $output .= '</div>';
    143 
    144         echo $output;
    145    
    146     }
    147    
    148115}
  • walkme-integration/trunk/walkme.php

    r1094894 r1259105  
    55Plugin URI: http://drunkencoding.us
    66Description: Provides easy integration between the Walk Me service and WordPress
    7 Version: 1.0
     7Version: 1.0.1
    88Author: Ryan Hoover
    99Author URI: http://ryan.hoover.ws
     
    1212$path = plugin_dir_path( __FILE__ );
    1313
    14 require_once( $path . 'lib/walkme_class.php' );
     14require_once( $path . 'lib/walkme-class.php' );
    1515require_once( $path . 'lib/admin.php' );
    1616
    17 if( class_exists( 'WalkMe' ) )
     17if ( class_exists( 'WalkMe' ) ) {
    1818    $walkme = WalkMe::get_instance();
     19}
    1920
    20 if( class_exists( 'WalkMeAdmin' ) )
     21if ( class_exists( 'WalkMeAdmin' ) ) {
    2122    $walkme_admin = WalkMeAdmin::get_instance();
     23}
    2224
Note: See TracChangeset for help on using the changeset viewer.