Changeset 1231051
- Timestamp:
- 08/26/2015 09:22:54 AM (11 years ago)
- Location:
- mins-to-read
- Files:
-
- 43 added
- 4 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/.gitignore (added)
-
tags/1.2.1/assets (added)
-
tags/1.2.1/assets/scss (added)
-
tags/1.2.1/assets/scss/_think201-wp.scss (added)
-
tags/1.2.1/assets/scss/mtr-admin.scss (added)
-
tags/1.2.1/assets/scss/mtr-user.scss (added)
-
tags/1.2.1/gulpfile.js (added)
-
tags/1.2.1/includes (added)
-
tags/1.2.1/includes/mtr-admin.php (added)
-
tags/1.2.1/includes/mtr-engine.php (added)
-
tags/1.2.1/includes/mtr-install.php (added)
-
tags/1.2.1/includes/mtr-view.php (added)
-
tags/1.2.1/includes/mtr.php (added)
-
tags/1.2.1/languages (added)
-
tags/1.2.1/languages/mins-to-read-fr_FR.mo (added)
-
tags/1.2.1/languages/mins-to-read-fr_FR.po (added)
-
tags/1.2.1/mins-to-read.php (added)
-
tags/1.2.1/pages (added)
-
tags/1.2.1/pages/admin-dashboard.php (added)
-
tags/1.2.1/public (added)
-
tags/1.2.1/public/css (added)
-
tags/1.2.1/public/css/mtr-admin.css (added)
-
tags/1.2.1/public/css/mtr-user.css (added)
-
tags/1.2.1/readme.txt (added)
-
trunk/.gitignore (added)
-
trunk/assets (added)
-
trunk/assets/scss (added)
-
trunk/assets/scss/_think201-wp.scss (added)
-
trunk/assets/scss/mtr-admin.scss (added)
-
trunk/assets/scss/mtr-user.scss (added)
-
trunk/gulpfile.js (added)
-
trunk/includes/mtr-admin.php (modified) (3 diffs)
-
trunk/includes/mtr-engine.php (added)
-
trunk/includes/mtr-view.php (added)
-
trunk/includes/mtr.php (modified) (1 diff)
-
trunk/languages (added)
-
trunk/languages/mins-to-read-fr_FR.mo (added)
-
trunk/languages/mins-to-read-fr_FR.po (added)
-
trunk/mins-to-read.php (modified) (5 diffs)
-
trunk/pages (added)
-
trunk/pages/admin-dashboard.php (added)
-
trunk/public (added)
-
trunk/public/css (added)
-
trunk/public/css/mtr-admin.css (added)
-
trunk/public/css/mtr-user.css (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mins-to-read/trunk/includes/mtr-admin.php
r1052910 r1231051 37 37 public function admin_dashboard() 38 38 { 39 require_once(MTRPLUGIN_DIR.'/ includes/admin-dashboard.php');39 require_once(MTRPLUGIN_DIR.'/pages/admin-dashboard.php'); 40 40 } 41 41 … … 44 44 if(is_admin()) 45 45 { 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' ); 48 47 } 49 48 } … … 53 52 if (!is_admin()) 54 53 { 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' ); 56 55 } 57 56 } -
mins-to-read/trunk/includes/mtr.php
r1052910 r1231051 45 45 global $post; 46 46 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 47 55 MTRView::show_mtr($post->ID); 48 56 } -
mins-to-read/trunk/mins-to-read.php
r1052910 r1231051 2 2 /* 3 3 Plugin Name: Mins To Read 4 Plugin URI: http:// www.think201.com4 Plugin URI: http://labs.think201.com/plugins/mins-to-read 5 5 Description: 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 6 Author: Think201 7 Text Domain: mins-to-read 8 Domain Path: /languages 9 Version: 1.2.1 8 10 Author URI: http://www.think201.com 9 11 License: GPL v1 … … 24 26 * @package Main 25 27 */ 26 27 //start session28 if (session_id() == '') {29 session_start();30 }31 28 32 29 if(version_compare(PHP_VERSION, '5.2', '<' )) … … 51 48 52 49 if ( !defined( 'MTR_VERSION' ) ) 53 define('MTR_VERSION', '1. 0.5' );50 define('MTR_VERSION', '1.2.1' ); 54 51 55 52 if ( !defined( 'MTRPLUGIN_DIR' ) ) … … 84 81 register_uninstall_hook( __FILE__, array('MTR_Install', 'delete') ); 85 82 83 function mins_to_read_load_plugin_textdomain() { 84 load_plugin_textdomain( 'mins-to-read', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); 85 } 86 add_action( 'plugins_loaded', 'mins_to_read_load_plugin_textdomain' ); 87 86 88 add_action( 'plugins_loaded', 'MinsToReadStart' ); 87 89 … … 95 97 } 96 98 97 function mtr_print($Id )99 function mtr_print($Id = null) 98 100 { 101 global $post; 102 103 $Id = $post->ID; 104 99 105 if(!empty($Id) AND get_post_type( $Id ) === 'post') 100 106 { -
mins-to-read/trunk/readme.txt
r1052910 r1231051 1 1 === Mins To Read === 2 2 Contributors: think201, anuragrath, vivekpandey 3 Tags: time to read, wordpress plugin, blog, read time, calculation, minutes, words, time, calculator,3 Tags: time to read, blog, read time, calculation, minutes, words, time, calculator 4 4 Requires at least: 3.5.2 5 5 Donate link: http://www.think201.com/ 6 Tested up to: 4. 07 Stable tag: 1.2 8 Version: 1.2 6 Tested up to: 4.2.2 7 Stable tag: 1.2.1 8 Version: 1.2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 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 12 Displays read time of your blog post. 14 13 15 14 == Description == 16 15 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. 16 Let 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 18 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. 18 19 19 20 … … 89 90 - Added ShortCode [mtr_print] features. 90 91 - 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.