Changeset 1384731
- Timestamp:
- 04/02/2016 01:47:48 AM (10 years ago)
- Location:
- l7-admin-help-videos
- Files:
-
- 31 added
- 4 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/assets (added)
-
tags/1.1.1/assets/css (added)
-
tags/1.1.1/assets/css/.sass-cache (added)
-
tags/1.1.1/assets/css/.sass-cache/7a2c3394e63b768be53ca3cff8a34d5ac6834d15 (added)
-
tags/1.1.1/assets/css/.sass-cache/7a2c3394e63b768be53ca3cff8a34d5ac6834d15/main.sassc (added)
-
tags/1.1.1/assets/css/bootstrap.css (added)
-
tags/1.1.1/assets/css/bootstrap.min.css (added)
-
tags/1.1.1/assets/css/main.css (added)
-
tags/1.1.1/assets/css/main.css.map (added)
-
tags/1.1.1/assets/css/scss (added)
-
tags/1.1.1/assets/fonts (added)
-
tags/1.1.1/assets/images (added)
-
tags/1.1.1/assets/img (added)
-
tags/1.1.1/assets/img/layer7web-no-label.png (added)
-
tags/1.1.1/assets/js (added)
-
tags/1.1.1/assets/js/bootstrap.min.js (added)
-
tags/1.1.1/assets/js/l7whv-upload.js (added)
-
tags/1.1.1/assets/js/main.js (added)
-
tags/1.1.1/assets/js/src (added)
-
tags/1.1.1/includes (added)
-
tags/1.1.1/includes/functions.php (added)
-
tags/1.1.1/includes/options-page.php (added)
-
tags/1.1.1/l7-admin-help-videos.php (added)
-
tags/1.1.1/readme.txt (added)
-
tags/1.1.1/style (added)
-
tags/1.1.1/style/main.css (added)
-
tags/1.1.1/style/main.css.map (added)
-
tags/1.1.1/templates (added)
-
tags/1.1.1/templates/help-video-display.php (added)
-
tags/1.1.1/uninstall.php (added)
-
trunk/includes/functions.php (modified) (2 diffs)
-
trunk/includes/options-page.php (modified) (2 diffs)
-
trunk/l7-admin-help-videos.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
l7-admin-help-videos/trunk/includes/functions.php
r1268060 r1384731 102 102 'post_type' => $post_type, 103 103 'post_status' => 'publish', 104 'no_found_rows' => true, 104 'posts_per_page' => 10, 105 'caller_get_posts' => 1, 105 106 ); 106 107 } … … 126 127 ), 127 128 'post_status' => 'publish', 128 'no_found_rows' => true, 129 'posts_per_page' => 10, 130 'caller_get_posts' => 1, 129 131 ); 130 132 } -
l7-admin-help-videos/trunk/includes/options-page.php
r1267057 r1384731 14 14 */ 15 15 public function __construct() { 16 include_once( plugin_dir_path( __FILE__ ) .'functions.php' );16 include_once( 'functions.php' ); 17 17 if ( ! isset( $this->admin_help_video_functions) ){ 18 18 $this->admin_help_video_functions = new AdminHelpVideoFunctions; … … 110 110 public function l7whv_user_roles(){ 111 111 $options = get_option( 'l7whv_help_video_options' ); 112 113 // Editor 112 114 113 $editor = $this->l7hv_default_settings( 'editor' ); 115 114 if ( '1' == $editor ){ 116 115 $checked_editor = 'checked'; 117 116 } 118 else { 119 $checked_editor = ''; 120 } 121 122 // Author 117 123 118 $author = $this->l7hv_default_settings( 'author' ); 124 119 if ( '1' == $author ){ 125 120 $checked_author = 'checked'; 126 121 } 127 else { 128 $checked_author = ''; 129 } 130 131 // Contributer 122 132 123 $contributor = $this->l7hv_default_settings( 'contributor' ); 133 124 if ( '1' == $contributor ){ 134 125 $checked_cont = 'checked'; 135 126 } 136 else { 137 $checked_cont = ''; 138 } 139 140 // Subscriber 127 141 128 $subscriber = $this->l7hv_default_settings( 'subscriber' ); 142 129 if ( '1' == $subscriber ){ 143 130 $checked_sub = 'checked'; 144 131 } 145 else {146 $checked_sub = '';147 }148 149 132 $output = "<label class='checkbox-inline'><input type='checkbox' value='1' name='l7whv_help_video_options[subscriber]'" . $checked_sub . '>Subscriber</label>'; 150 133 $output .= "<label class='checkbox-inline'><input type='checkbox' value='1' name='l7whv_help_video_options[contributor]'" . $checked_cont . '>Contributor</label>'; -
l7-admin-help-videos/trunk/l7-admin-help-videos.php
r1268060 r1384731 4 4 * Plugin URI: layer7web.com 5 5 * Description: Provide help videos on the admin side to people using their Wordpress install. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: Jeffrey S. Mattson 8 8 * Author URI: https://github.com/jeffreysmattson … … 82 82 * Takes an array of links for the plugin page and adds a new settings link to it 83 83 * It will display on the "installed plugins page" 84 * @param [array] $linksArray of links for the plugins page.85 * @return [array]Returns the link array with the new link added.84 * @param $links Array of links for the plugins page. 85 * @return Returns the link array with the new link added. 86 86 */ 87 87 function l7whv_settings_link( $links ) { … … 99 99 */ 100 100 public function l7hv_sort_videos(){ 101 102 101 /** 103 102 * Include and create function object 104 103 */ 105 include_once( plugin_dir_path( __FILE__ ) .'includes/functions.php' );106 if ( ! isset( $l7whv_function ) && class_exists( 'AdminHelpVideoFunctions') ){104 include_once( 'includes/functions.php' ); 105 if ( ! isset( $l7whv_function ) && class_exists( AdminHelpVideoFunctions ) ){ 107 106 $l7whv_function = new AdminHelpVideoFunctions; 108 107 } 109 include_once( plugin_dir_path( __FILE__ ) .'templates/help-video-display.php' );108 include_once( 'templates/help-video-display.php' ); 110 109 wp_die(); 111 110 } … … 220 219 return $post_id; 221 220 } 222 } 223 else { 221 } else { 224 222 if ( ! current_user_can( 'edit_post', $post_id ) ){ 225 223 return $post_id; … … 278 276 */ 279 277 public function remove_ex_box(){ 280 remove_meta_box( 'authordiv',' post','normal' ); // Author Metabox281 remove_meta_box( 'commentstatusdiv',' post','normal' ); // Comments Status Metabox282 remove_meta_box( 'commentsdiv',' post','normal' ); // Comments Metabox283 remove_meta_box( 'postcustom',' post','normal' ); // Custom Fields Metabox284 remove_meta_box( 'postexcerpt',' post','normal' ); // Excerpt Metabox285 remove_meta_box( 'revisionsdiv',' post','normal' ); // Revisions Metabox286 remove_meta_box( 'slugdiv',' post','normal' ); // Slug Metabox287 remove_meta_box( 'trackbacksdiv',' post','normal' ); // Trackback Metabox278 remove_meta_box( 'authordiv','l7_help_video','normal' ); // Author Metabox 279 remove_meta_box( 'commentstatusdiv','l7_help_video','normal' ); // Comments Status Metabox 280 remove_meta_box( 'commentsdiv','l7_help_video','normal' ); // Comments Metabox 281 remove_meta_box( 'postcustom','l7_help_video','normal' ); // Custom Fields Metabox 282 remove_meta_box( 'postexcerpt','l7_help_video','normal' ); // Excerpt Metabox 283 remove_meta_box( 'revisionsdiv','l7_help_video','normal' ); // Revisions Metabox 284 remove_meta_box( 'slugdiv','l7_help_video','normal' ); // Slug Metabox 285 remove_meta_box( 'trackbacksdiv','l7_help_video','normal' ); // Trackback Metabox 288 286 } 289 287 -
l7-admin-help-videos/trunk/readme.txt
r1268060 r1384731 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.3 7 Stable tag:1.1. 07 Stable tag:1.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 == Changelog == 63 63 64 = 1.1.0 =65 <ul>66 <li>Increased query efficiency</li>67 </ul>68 69 64 = 1.0.9 = 70 65 <ul> 71 <li>Corrected class check</li>66 <li>Corrected Metabox removal bug</li> 72 67 </ul> 73 68 74 69 = 1.0.8 = 75 70 <ul> 76 <li> Fixed include bug.</li>71 <li>Corrected Error Notice</li> 77 72 </ul> 78 73 79 74 = 1.0.7 = 80 75 <ul> 81 <li> Corrected Error Notice</li>76 <li>Fixed 'Display All' bug</li> 82 77 </ul> 83 78 84 79 = 1.0.6 = 85 <ul>86 <li>Fixed 'Display All' bug</li>87 </ul>88 89 = 1.0.5 =90 80 <ul> 91 81 <li>Created Custom Taxonomy for the video posts</li> … … 94 84 </ul> 95 85 96 = 1.0. 4=86 = 1.0.5 = 97 87 <ul> 98 88 <li>Bug fix</li> 99 89 </ul> 100 90 101 = 1.0. 3=91 = 1.0.4 = 102 92 <ul> 103 93 <li> Categories list only the categories with video posts in them.</li> 104 94 </ul> 105 95 106 = 1.0. 2=96 = 1.0.3 = 107 97 <ul> 108 98 <li>Default Values added</li> … … 111 101 </ul> 112 102 113 = 1.0. 1=103 = 1.0.2 = 114 104 <ul> 115 105 <li>Optimizations</li> … … 117 107 </ul> 118 108 119 = 1.0. 0=109 = 1.0.1 = 120 110 <ul> 121 111 <li>Beta</li>
Note: See TracChangeset
for help on using the changeset viewer.