Changeset 1104648
- Timestamp:
- 03/04/2015 03:20:19 AM (11 years ago)
- Location:
- kush-micro-news/trunk
- Files:
-
- 3 edited
-
includes/admin.php (modified) (2 diffs)
-
index.php (modified) (5 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kush-micro-news/trunk/includes/admin.php
r1104072 r1104648 12 12 add_submenu_page('micro-news','Micro News Settings', 'Settings', 'administrator','micro-news-config', 'micro_news_config_page'); 13 13 14 //check for plugin version and updating default15 // $d = get_plugin_data( KUSH_MICRO_NEWS_DIR.'index.php');16 // if($d['Version'] == "1.4.4")//17 // {18 // update_option("kush_mn_load_nav_swap","true");19 // }20 21 14 } 22 15 23 16 function micro_news_config_page(){ 24 17 $what=''; 25 //update_option('kush_mn_db_version','1.0'); 18 26 19 //$_POST = array_map('stripslashes_deep', $_POST['myRename']); 27 20 … … 344 337 else 345 338 $cat = "default"; 346 339 347 340 global $wpdb; 348 341 $table_name = $wpdb->prefix . "kushmicronews"; -
kush-micro-news/trunk/index.php
r1104072 r1104648 3 3 Plugin Name: Kush Micro News 4 4 Description: Spread the news in shortest possible way. Use links to refer data and title to concise it. 5 Version: 1.6. 05 Version: 1.6.1 6 6 Author: Kush Sharma 7 7 Author Email: thekushsharma@gmail.com … … 16 16 17 17 function kush_micronews_load_depen_reg(){ 18 wp_register_style( 'kush_mn_style', KUSH_MICRO_NEWS_URL.'assets/css/style.css', array(), '0 2032015');19 wp_register_script( 'kush_mn_script', KUSH_MICRO_NEWS_URL.'assets/js/script.js', array('jquery'), '0 2032015');18 wp_register_style( 'kush_mn_style', KUSH_MICRO_NEWS_URL.'assets/css/style.css', array(), '03032015'); 19 wp_register_script( 'kush_mn_script', KUSH_MICRO_NEWS_URL.'assets/js/script.js', array('jquery'), '03032015'); 20 20 //importing stylesheet and js. 21 21 } … … 64 64 65 65 function micronews_shortcode( $atts ) { 66 $a = shortcode_atts( array( 'news' => '5', 'header' => 'true', 'category' => 'default', 'simple' => ' true' ), $atts );66 $a = shortcode_atts( array( 'news' => '5', 'header' => 'true', 'category' => 'default', 'simple' => 'false' ), $atts ); 67 67 68 68 return kush_micro_news_output($a['news'], $a['header'], 0, $a['simple'], $a['category']); … … 87 87 extract($args, EXTR_SKIP); 88 88 89 $no_news = empty($instance['no_news']) ? '5': apply_filters('no_news', $instance['no_news']);89 $no_news = empty($instance['no_news']) ? get_option( "kush_mn_num_news", '5') : apply_filters('no_news', $instance['no_news']); 90 90 $news_cat = empty($instance['news_cat']) ? 'default' : apply_filters('news_cat', $instance['news_cat']); 91 91 … … 109 109 110 110 111 $instance = wp_parse_args((array)$instance, array('no_news' => ' ', 'news_cat' => 'default'));111 $instance = wp_parse_args((array)$instance, array('no_news' => '5', 'news_cat' => 'default')); 112 112 113 113 $no_news = strip_tags(stripslashes($instance['no_news'])); -
kush-micro-news/trunk/readme.txt
r1104072 r1104648 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.1.1 7 Stable tag: 1.6. 07 Stable tag: 1.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 43 43 3. Place `<?php if(function_exists('kush_micro_news_output')){echo kush_micro_news_output();} ?>` in your template file. 44 44 4. You can also use Kush Micro News Widget to place in your desired location. 45 5. Shortcode `[kushmicronews]` is also available to show news in a page or post. 45 5. Shortcode `[kushmicronews]` is also available to show news in a page or post. Read FAQ for available options to configure. 46 46 47 47 * The location where you gonna output this plugin should have atleast 200px width to present itself well. … … 64 64 65 65 Use shortcode `[kushmicronews news="5" header="true" category="default" simple="false"]` inside wordpress editor where you want news to display itself. You can use this in any of your page or post but keep in mind that page should have enough free space for all the content. 66 -'news' attribute will decide how many news should be displayed. Default: 567 -'header' attribute will decide whether "Micro News" header is visible. Valid options: "true" or "false". Default: "true"68 -'simple' attribute will toggle plugin visual behaviour. To show load more button and other effects. Valid options: "true" or "false". Default: "false"69 -'category' attribute will show that perticular group of news. Valid options: "default","cata","catb","catc","catd". Default: "default"66 * 'news' attribute will decide how many news should be displayed. Default: 5 67 * 'header' attribute will decide whether "Micro News" header is visible. Valid options: "true" or "false". Default: "true" 68 * 'simple' attribute will toggle plugin visual behaviour. To show load more button and other effects. Valid options: "true" or "false". Default: "false" 69 * 'category' attribute will show that perticular group of news. Valid options: "default","cata","catb","catc","catd". Default: "default" 70 70 71 71 = Can i create category to seperate news with each other? = … … 90 90 == Changelog == 91 91 92 = 1.6.1 = 93 * Small bug fixes. 94 92 95 = 1.6.0 = 93 96 * Added Feature: To categories news into 5 different groups. … … 174 177 175 178 = 1.6.0 = 176 * URGENT : Database update required .179 * URGENT : Database update required, use button in Settings page. 177 180 178 181 = 1.2 =
Note: See TracChangeset
for help on using the changeset viewer.