Plugin Directory

Changeset 1104648


Ignore:
Timestamp:
03/04/2015 03:20:19 AM (11 years ago)
Author:
kushsharma
Message:

Small bug fixes.

Location:
kush-micro-news/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kush-micro-news/trunk/includes/admin.php

    r1104072 r1104648  
    1212add_submenu_page('micro-news','Micro News Settings', 'Settings', 'administrator','micro-news-config', 'micro_news_config_page');
    1313
    14     //check for plugin version and updating default
    15     // $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 
    2114}
    2215
    2316function micro_news_config_page(){
    2417$what='';
    25 //update_option('kush_mn_db_version','1.0');
     18
    2619//$_POST = array_map('stripslashes_deep', $_POST['myRename']);
    2720
     
    344337        else
    345338            $cat = "default";
    346        
     339
    347340        global $wpdb;           
    348341        $table_name = $wpdb->prefix . "kushmicronews";
  • kush-micro-news/trunk/index.php

    r1104072 r1104648  
    33Plugin Name: Kush Micro News
    44Description: Spread the news in shortest possible way. Use links to refer data and title to concise it.
    5 Version: 1.6.0
     5Version: 1.6.1
    66Author: Kush Sharma
    77Author Email: thekushsharma@gmail.com
     
    1616
    1717function kush_micronews_load_depen_reg(){
    18     wp_register_style( 'kush_mn_style', KUSH_MICRO_NEWS_URL.'assets/css/style.css', array(), '02032015');   
    19     wp_register_script( 'kush_mn_script', KUSH_MICRO_NEWS_URL.'assets/js/script.js', array('jquery'), '02032015');
     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');
    2020    //importing stylesheet and js.
    2121}
     
    6464   
    6565    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 );
    6767
    6868        return kush_micro_news_output($a['news'], $a['header'], 0, $a['simple'], $a['category']);
     
    8787            extract($args, EXTR_SKIP);
    8888           
    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']);
    9090            $news_cat = empty($instance['news_cat']) ? 'default' : apply_filters('news_cat', $instance['news_cat']);
    9191           
     
    109109           
    110110           
    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'));
    112112
    113113        $no_news = strip_tags(stripslashes($instance['no_news']));
  • kush-micro-news/trunk/readme.txt

    r1104072 r1104648  
    55Requires at least: 3.0.1
    66Tested up to: 4.1.1
    7 Stable tag: 1.6.0
     7Stable tag: 1.6.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    43433. Place `<?php if(function_exists('kush_micro_news_output')){echo kush_micro_news_output();} ?>` in your template file.
    44444. 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.
     455. Shortcode `[kushmicronews]` is also available to show news in a page or post. Read FAQ for available options to configure.
    4646
    4747* The location where you gonna output this plugin should have atleast 200px width to present itself well.
     
    6464
    6565Use 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: 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"
     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"
    7070
    7171= Can i create category to seperate news with each other? =
     
    9090== Changelog ==
    9191
     92= 1.6.1 =
     93* Small bug fixes.
     94
    9295= 1.6.0 =
    9396* Added Feature: To categories news into 5 different groups.
     
    174177
    175178= 1.6.0 =
    176 * URGENT : Database update required.
     179* URGENT : Database update required, use button in Settings page.
    177180
    178181= 1.2 =
Note: See TracChangeset for help on using the changeset viewer.