Changeset 1462090
- Timestamp:
- 07/28/2016 09:25:19 AM (10 years ago)
- Location:
- wp-allaround/trunk
- Files:
-
- 4 added
- 2 deleted
- 3 edited
-
README.txt (modified) (2 diffs)
-
css (added)
-
css/wp-allaround.css (added)
-
languages/it_IT.mo (deleted)
-
languages/it_IT.po (deleted)
-
languages/wp-allaround-it_IT.mo (added)
-
languages/wp-allaround-it_IT.po (added)
-
wp-allaround-admin.php (modified) (2 diffs)
-
wp-allaround.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-allaround/trunk/README.txt
r1461999 r1462090 4 4 Tags: telegram, bot, channel, broadcast, promote 5 5 Requires at least: 4.0.0 6 Tested up to: 4. 5.37 Stable tag: 0. 56 Tested up to: 4.6.0 7 Stable tag: 0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 36 36 == Changelog == 37 37 38 = 0.6 = 39 * Plugin internationalization now works 40 * Added italian translation 41 * Added publish status column on articles list 42 * Minor code cleanup and bugs fixed 43 38 44 = 0.5 = 39 45 * Minor bug fixes -
wp-allaround/trunk/wp-allaround-admin.php
r1461999 r1462090 35 35 36 36 function allaround_enqueue() { 37 global $wp_styles; 38 37 39 wp_enqueue_script( 'ajax-script', 38 40 plugins_url( '/js/common.js', __FILE__ ), 39 41 array('jquery') 40 42 ); 43 41 44 wp_localize_script( 'ajax-script', 'ajax_object', array( 42 45 'ajax_url' => admin_url( 'admin-ajax.php' ), 43 46 )); 47 48 // Load the main stylesheet 49 wp_enqueue_style( 'wp-allaround', plugins_url( '/css/wp-allaround.css', __FILE__ )); 44 50 } 51 45 52 add_action('admin_enqueue_scripts', 'allaround_enqueue'); 46 53 … … 93 100 </tr><tr> 94 101 <td> 95 <input type="submit" >102 <input type="submit" value="<?php _e('Submit'); ?>> 96 103 </td> 97 104 </tr> -
wp-allaround/trunk/wp-allaround.php
r1461999 r1462090 45 45 } 46 46 47 function allaround_load_textdomain() { 48 load_plugin_textdomain( 'wp-allaround', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); 49 } 50 add_action( 'plugins_loaded', 'allaround_load_textdomain' ); 51 47 52 /* ============================================================ */ 48 53 /* */ … … 50 55 /* */ 51 56 /* =============================================================*/ 52 53 57 54 58 function allaround_post_metabox() { … … 79 83 } 80 84 } 85 86 /* ============================================================ */ 87 /* */ 88 /* POSTS LIST TABLE */ 89 /* */ 90 /* =============================================================*/ 91 92 /* Display custom column */ 93 function allaround_display_column( $column, $post_id ) { 94 if ($column == 'allaround'){ 95 /* Check if this post was already published to avoid duplicates */ 96 $is_publish = get_post_meta($post_id,'allaround_post_publish', true); 97 ?> 98 <div aria-hidden="true" title="" class="allaround-score-icon <?php echo ($is_publish ? "published" : "na"); ?>"></div><span class="screen-reader-text"><?php echo ($is_publish ? __("Published") : __("Not published")); ?></span></td> 99 <?php 100 } 101 } 102 add_action( 'manage_posts_custom_column' , 'allaround_display_column', 10, 2 ); 103 104 function allaround_column($columns) { 105 return array_merge( $columns, 106 array('allaround' => __('AllAround')) ); 107 } 108 add_filter('manage_posts_columns' , 'allaround_column'); 81 109 82 110 /* ============================================================ */
Note: See TracChangeset
for help on using the changeset viewer.