Changeset 2083091
- Timestamp:
- 05/08/2019 06:23:52 AM (7 years ago)
- Location:
- launchpad-article-feedback/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
assets/css/launchpad_feedback.css (modified) (1 diff)
-
index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
launchpad-article-feedback/trunk/README.txt
r2072856 r2083091 4 4 Tags: Was this article helpful,feedback,article feedback, WordPress Article Feedback, Launchpad Article Feedback, Article reviews 5 5 Requires at least: 3.0 6 Tested up to: 5. 1.16 Tested up to: 5.2 7 7 Stable tag: 1.0 8 8 License: GPLv3 or later … … 69 69 = 1.0 = 70 70 * Default:Add "Was this article helpful?" at the Start/End or on both of content with Thumbsup to Share and Thumbsdown for feedback to author. 71 = 1.1 = 72 * Default: Check for errors in WordPress v5.2 73 71 74 == License == 72 75 -
launchpad-article-feedback/trunk/assets/css/launchpad_feedback.css
r2071333 r2083091 44 44 padding: 30px 40px; 45 45 box-shadow: 0px 3px 20px 0px rgba(0,64,128,0.1); 46 max-width: 350px;46 max-width: 400px; 47 47 border-radius: 10px; 48 48 } -
launchpad-article-feedback/trunk/index.php
r2072855 r2083091 4 4 Plugin URI: https://launchpad.vn 5 5 Description: Was this article helpful? 6 Version: 1. 06 Version: 1.1 7 7 Author: Launchpad.vn 8 8 Author URI: https://launchpad.vn … … 14 14 class LaunchpadFeedback { 15 15 private static $instance; 16 const VERSION = '1. 0';16 const VERSION = '1.1'; 17 17 18 18 private static function has_instance() { … … 63 63 add_filter( 'manage_edit-feedback_columns', array( $this, 'feedback_edit_columns' ) ); 64 64 add_action( 'manage_posts_custom_column', array( $this, 'feedback_column_display' ), 10, 2 ); 65 add_action( 'restrict_manage_posts', array( $this, 'feedback_add_taxonomy_filters' ) );66 67 65 add_action( 'add_meta_boxes', array( $this, 'lp_create_metabox' ) ); 68 66 } … … 138 136 139 137 public function feedback_column_display( $feedback_columns, $post_id ) { 140 141 // Code from: http://wpengineer.com/display-post-thumbnail-post-page-overview142 143 138 switch ( $feedback_columns ) { 144 145 139 case "name": 146 140 echo '<strong style="font-size:15px;color:#333;">'. get_post_meta( $post_id, 'feedback_name', true ) . '</strong><br>'; … … 183 177 wp_enqueue_style( 'wp-color-picker' ); 184 178 wp_enqueue_script('launchpad_feedback_admin_js', plugins_url( 'assets/js/launchpad_feedback_admin.js', __FILE__ ), array('jquery','wp-color-picker'), self::VERSION, 'all' ); 185 wp_register_style('launchpad_feedback_admin_css', plugin_dir_url(__FILE__) . '/assets/css/launchpad_feedback_admin.css', false, $version);179 wp_register_style('launchpad_feedback_admin_css', plugin_dir_url(__FILE__) . '/assets/css/launchpad_feedback_admin.css', false, self::VERSION ); 186 180 wp_enqueue_style( 'launchpad_feedback_admin_css' ); 187 188 181 } 189 182
Note: See TracChangeset
for help on using the changeset viewer.