Plugin Directory

Changeset 1231051


Ignore:
Timestamp:
08/26/2015 09:22:54 AM (11 years ago)
Author:
think201
Message:

Minor Issue fixes.
Options to select style for UI types

Location:
mins-to-read
Files:
43 added
4 edited

Legend:

Unmodified
Added
Removed
  • mins-to-read/trunk/includes/mtr-admin.php

    r1052910 r1231051  
    3737    public function admin_dashboard()
    3838    {
    39         require_once(MTRPLUGIN_DIR.'/includes/admin-dashboard.php');   
     39        require_once(MTRPLUGIN_DIR.'/pages/admin-dashboard.php');   
    4040    }
    4141
     
    4444        if(is_admin())
    4545        {       
    46             wp_enqueue_style( 'think201-wp', plugins_url( 'mins-to-read/css/think201-wp.css' ), '', MTR_VERSION, 'all' );
    47             wp_enqueue_style( 'mtr', plugins_url( 'mins-to-read/css/mtr.css' ), '', MTR_VERSION, 'all' );
     46            wp_enqueue_style( 'mtr', plugins_url( 'mins-to-read/public/css/mtr-admin.css' ), '', MTR_VERSION, 'all' );
    4847        }
    4948    }
     
    5352        if (!is_admin())
    5453        {
    55             wp_enqueue_style( 'mtr-user-css', plugins_url( 'mins-to-read/css/mtr.css' ), '', MTR_VERSION, 'all' );
     54            wp_enqueue_style( 'mtr-user-css', plugins_url( 'mins-to-read/public/css/mtr-user.css' ), '', MTR_VERSION, 'all' );
    5655        }
    5756    }     
  • mins-to-read/trunk/includes/mtr.php

    r1052910 r1231051  
    4545            global $post;
    4646
     47            // check if the option is not through code go ahead & do this
     48            $Options = unserialize(get_option(MTR_MINS_READ));
     49
     50            if(isset($Options['mtr_style']) AND $Options['mtr_style'] == 'code')
     51            {
     52                return $content;
     53            }
     54
    4755            MTRView::show_mtr($post->ID);
    4856        }       
  • mins-to-read/trunk/mins-to-read.php

    r1052910 r1231051  
    22/*
    33Plugin Name: Mins To Read
    4 Plugin URI: http://www.think201.com
     4Plugin URI: http://labs.think201.com/plugins/mins-to-read
    55Description: Mins To Read is a plugin which calculates the read time of a blog post based on words present in it.
    6 Author: Think201, Vivek Pandey, Anurag Rath
    7 Version: 1.2
     6Author: Think201
     7Text Domain: mins-to-read
     8Domain Path: /languages
     9Version: 1.2.1
    810Author URI: http://www.think201.com
    911License: GPL v1
     
    2426 * @package Main
    2527 */
    26 
    27 //start session
    28 if (session_id() == '') {
    29     session_start();
    30 }
    3128
    3229if(version_compare(PHP_VERSION, '5.2', '<' ))
     
    5148
    5249if ( !defined( 'MTR_VERSION' ) )
    53 define('MTR_VERSION', '1.0.5' );
     50define('MTR_VERSION', '1.2.1' );
    5451
    5552if ( !defined( 'MTRPLUGIN_DIR' ) )
     
    8481register_uninstall_hook(    __FILE__, array('MTR_Install', 'delete') );
    8582
     83function mins_to_read_load_plugin_textdomain() {
     84    load_plugin_textdomain( 'mins-to-read', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     85}
     86add_action( 'plugins_loaded', 'mins_to_read_load_plugin_textdomain' );
     87
    8688add_action( 'plugins_loaded', 'MinsToReadStart' );
    8789
     
    9597}
    9698
    97 function mtr_print($Id)
     99function mtr_print($Id = null)
    98100{
     101    global $post;
     102   
     103    $Id = $post->ID;
     104
    99105    if(!empty($Id) AND get_post_type( $Id ) === 'post')
    100106    {
  • mins-to-read/trunk/readme.txt

    r1052910 r1231051  
    11=== Mins To Read ===
    22Contributors: think201, anuragrath, vivekpandey
    3 Tags: time to read, wordpress plugin, blog, read time, calculation, minutes, words, time, calculator,
     3Tags: time to read, blog, read time, calculation, minutes, words, time, calculator
    44Requires at least: 3.5.2
    55Donate link: http://www.think201.com/
    6 Tested up to: 4.0
    7 Stable tag: 1.2
    8 Version: 1.2
     6Tested up to: 4.2.2
     7Stable tag: 1.2.1
     8Version: 1.2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Let your readers know how much time the blog post gonnna take for reading. Mins To Read plugin calculates the read time of a blog post based on words present in it.
    13 
     12Displays read time of your blog post.
    1413
    1514== Description ==
    1615
    17 Mins To Read is a plugin which calculates the read time of a blog post based on words present in it. Automatically updates the read time based on the updates the blog post/article recieves.This plugin takes care of calculation of read time of all your existing blog posts in a single click. Apart from this, users can configure reading speed for their posts. Default positions available with custom class addition support for the same. Users can position the mins to read feature by functional calls in theme file.
     16Let your readers know how much time the blog post will take for reading. Mins To Read plugin calculates the read time of a blog post based on words present in it.
     17
     18Automatically updates the read time based on the updates the blog post/article recieves.This plugin takes care of calculation of read time of all your existing blog posts in a single click. Apart from this, users can configure reading speed for their posts. Default positions available with custom class addition support for the same. Users can position the mins to read feature by functional calls in theme file.
    1819
    1920
     
    8990- Added ShortCode [mtr_print] features.
    9091- Added function mtr_print() support to be called from theme files.
     92
     93= 1.2.1 =
     94- Minor Bug Fixes
     95- Making the default presentation optional
Note: See TracChangeset for help on using the changeset viewer.