Changeset 1259105
- Timestamp:
- 10/04/2015 05:09:11 AM (10 years ago)
- Location:
- walkme-integration
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from walkme-integration/trunk)
-
tags/1.0.1/README.txt (modified) (2 diffs)
-
tags/1.0.1/lib/admin.php (modified) (6 diffs)
-
tags/1.0.1/walkme.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/lib/admin.php (modified) (6 diffs)
-
trunk/walkme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
walkme-integration/tags/1.0.1/README.txt
r1094894 r1259105 3 3 Tags: WalkMe, eLearning 4 4 Requires at least: 3.5 5 Tested up to: 4. 15 Tested up to: 4.3.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 11 11 12 12 == Description == … … 37 37 38 38 == Changelog == 39 1.0.1 Update code standards and stable tag 39 40 40 41 1.0 Initial release -
walkme-integration/tags/1.0.1/lib/admin.php
r1094894 r1259105 6 6 7 7 public static function get_instance() 8 {9 static $instance = null;8 { 9 static $instance = null; 10 10 11 if ( null === $instance ) {12 $instance = new static();13 }11 if ( null === $instance ) { 12 $instance = new static(); 13 } 14 14 15 return $instance; 16 } 15 return $instance; 16 } 17 18 private function __clone(){ 19 } 20 21 22 private function __wakeup(){ 23 } 17 24 18 25 protected function __construct() { … … 23 30 24 31 // 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' ) ); 26 33 27 34 // Create the form on the options page … … 29 36 } 30 37 31 private function __clone(){32 }33 34 35 private function __wakeup(){36 }37 38 38 /* 39 * Adds the metabox to post and page edit screens 39 * Adds the metabox to post and page edit screens 40 40 * 41 41 * @since 1.0 … … 43 43 public function add_options_page() { 44 44 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' ) ); 50 50 51 51 } … … 71 71 public function do_walkme_page( $post ) { 72 72 73 $value = get_option( 'walkme-code');73 $value = get_option( 'walkme-code' ); 74 74 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™ is an interactive online guidance and engagement platform.</p> 82 <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> 83 <form action="options.php" method="POST" > 84 HTML; 85 printf( $output, __( 'WalkMe Options', 'walkme' ) ); 94 86 95 87 settings_fields( 'walkme-group' ); … … 97 89 do_settings_sections( 'walkme-group' ); 98 90 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 <head> 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"); 101 walkme.type = "text/javascript"; walkme.async = true; walkme.src = 102 "http://cdn.walkme.com/users/HDeZFfidurmy6F/walkme_HDeZFfidurmy6F.js"; 127 103 var 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> 107 HTML; 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 <head> section. It looks something like', 'walkme' ) ); 135 109 136 110 submit_button( 'Save WalkMe Code' ); 137 111 138 $output = ''; 112 echo "</form></div>"; 113 } 139 114 140 $output .= '</form>';141 142 $output .= '</div>';143 144 echo $output;145 146 }147 148 115 } -
walkme-integration/tags/1.0.1/walkme.php
r1094894 r1259105 5 5 Plugin URI: http://drunkencoding.us 6 6 Description: Provides easy integration between the Walk Me service and WordPress 7 Version: 1.0 7 Version: 1.0.1 8 8 Author: Ryan Hoover 9 9 Author URI: http://ryan.hoover.ws … … 12 12 $path = plugin_dir_path( __FILE__ ); 13 13 14 require_once( $path . 'lib/walkme _class.php' );14 require_once( $path . 'lib/walkme-class.php' ); 15 15 require_once( $path . 'lib/admin.php' ); 16 16 17 if ( class_exists( 'WalkMe' ) )17 if ( class_exists( 'WalkMe' ) ) { 18 18 $walkme = WalkMe::get_instance(); 19 } 19 20 20 if ( class_exists( 'WalkMeAdmin' ) )21 if ( class_exists( 'WalkMeAdmin' ) ) { 21 22 $walkme_admin = WalkMeAdmin::get_instance(); 23 } 22 24 -
walkme-integration/trunk/README.txt
r1094894 r1259105 3 3 Tags: WalkMe, eLearning 4 4 Requires at least: 3.5 5 Tested up to: 4. 15 Tested up to: 4.3.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 10 This plugin provides a simple management page for adding WalkMe code into a WordPress site. 11 11 12 12 == Description == … … 37 37 38 38 == Changelog == 39 1.0.1 Update code standards and stable tag 39 40 40 41 1.0 Initial release -
walkme-integration/trunk/lib/admin.php
r1094894 r1259105 6 6 7 7 public static function get_instance() 8 {9 static $instance = null;8 { 9 static $instance = null; 10 10 11 if ( null === $instance ) {12 $instance = new static();13 }11 if ( null === $instance ) { 12 $instance = new static(); 13 } 14 14 15 return $instance; 16 } 15 return $instance; 16 } 17 18 private function __clone(){ 19 } 20 21 22 private function __wakeup(){ 23 } 17 24 18 25 protected function __construct() { … … 23 30 24 31 // 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' ) ); 26 33 27 34 // Create the form on the options page … … 29 36 } 30 37 31 private function __clone(){32 }33 34 35 private function __wakeup(){36 }37 38 38 /* 39 * Adds the metabox to post and page edit screens 39 * Adds the metabox to post and page edit screens 40 40 * 41 41 * @since 1.0 … … 43 43 public function add_options_page() { 44 44 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' ) ); 50 50 51 51 } … … 71 71 public function do_walkme_page( $post ) { 72 72 73 $value = get_option( 'walkme-code');73 $value = get_option( 'walkme-code' ); 74 74 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™ is an interactive online guidance and engagement platform.</p> 82 <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> 83 <form action="options.php" method="POST" > 84 HTML; 85 printf( $output, __( 'WalkMe Options', 'walkme' ) ); 94 86 95 87 settings_fields( 'walkme-group' ); … … 97 89 do_settings_sections( 'walkme-group' ); 98 90 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 <head> 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"); 101 walkme.type = "text/javascript"; walkme.async = true; walkme.src = 102 "http://cdn.walkme.com/users/HDeZFfidurmy6F/walkme_HDeZFfidurmy6F.js"; 127 103 var 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> 107 HTML; 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 <head> section. It looks something like', 'walkme' ) ); 135 109 136 110 submit_button( 'Save WalkMe Code' ); 137 111 138 $output = ''; 112 echo "</form></div>"; 113 } 139 114 140 $output .= '</form>';141 142 $output .= '</div>';143 144 echo $output;145 146 }147 148 115 } -
walkme-integration/trunk/walkme.php
r1094894 r1259105 5 5 Plugin URI: http://drunkencoding.us 6 6 Description: Provides easy integration between the Walk Me service and WordPress 7 Version: 1.0 7 Version: 1.0.1 8 8 Author: Ryan Hoover 9 9 Author URI: http://ryan.hoover.ws … … 12 12 $path = plugin_dir_path( __FILE__ ); 13 13 14 require_once( $path . 'lib/walkme _class.php' );14 require_once( $path . 'lib/walkme-class.php' ); 15 15 require_once( $path . 'lib/admin.php' ); 16 16 17 if ( class_exists( 'WalkMe' ) )17 if ( class_exists( 'WalkMe' ) ) { 18 18 $walkme = WalkMe::get_instance(); 19 } 19 20 20 if ( class_exists( 'WalkMeAdmin' ) )21 if ( class_exists( 'WalkMeAdmin' ) ) { 21 22 $walkme_admin = WalkMeAdmin::get_instance(); 23 } 22 24
Note: See TracChangeset
for help on using the changeset viewer.