WordPress.org

Plugin Directory

Changeset 1512423


Ignore:
Timestamp:
10/11/16 04:54:22 (16 months ago)
Author:
tcoder
Message:

modified trunk/plugin-hook.php
modified trunk/readme.txt
modified trunk/settings.php
added tags/1.0
added tags/1.0/index.php
added tags/1.0/plugin-hook.php
added tags/1.0/readme.txt
added tags/1.0/settings.php
added tags/1.0/uninstall.php

Location:
tcbd-auto-refresher
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • tcbd-auto-refresher/trunk/plugin-hook.php

    r1284623 r1512423  
    55Description: This plugin will enable auto refresh your page in your Wordpress theme. 
    66Author: Md Touhidul Sadeek 
    7 Version: 1.0 
     7Version: 2.0 
    88Author URI: http://tcoderbd.com 
    99*/ 
     
    2727// Exit if accessed directly 
    2828defined( 'ABSPATH' ) || exit; 
    29  
    30 // Define Plugin Directory 
    31 define('TCBD_GOOGLE_MAP_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' ); 
    32  
    33  
    3429 
    3530// Add settings page link in before activate/deactivate links. 
     
    7368     
    7469    if( 
    75         get_option( 'tcbd_auto_screen' ) == 'full' 
     70        get_option( 'tcbd_auto_screen' ) == 'all' 
    7671        or get_option( 'tcbd_auto_screen' ) == 'homepage' and is_home() 
    7772        or get_option( 'tcbd_auto_screen' ) == 'frontpage' and is_front_page() 
     
    8378        or get_option( 'tcbd_auto_screen' ) == '404error' and is_404() 
    8479    ){ 
    85  
    8680        echo '<meta http-equiv="refresh" content="'.$tcbd_time.'" >'; 
    87  
    88     } else { 
     81    } else if( get_option('tcbd_auto_refresh_custom') == 'custom' ) { 
    8982        echo '<meta http-equiv="refresh" content="'.$tcbd_time.';URL='.esc_url($tcbd_custom).'" >'; 
    9083    } 
  • tcbd-auto-refresher/trunk/readme.txt

    r1284623 r1512423  
    33Tags: page auto refresh,refresh,refresher,meta refresh,tcbd 
    44Requires at least: 3.0 
    5 Tested up to: 4.3.1 
    6 Stable tag: 1.1 
     5Tested up to: 4.6.1 
     6Stable tag: 2.0 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    99 
    10 This plugin will enable auto refresh your page in your Wordpress theme. 
     10This plugin will enable auto refresh your pages in your wordpress theme. 
    1111 
    1212== Description == 
     
    4141* Initial release 
    4242 
     43= 2.0 = 
     44* Bug fix 
    4345 
     46 
  • tcbd-auto-refresher/trunk/settings.php

    r1284623 r1512423  
    44    defined( 'ABSPATH' ) || exit; 
    55 
    6     // Define Plugin Directory 
    7     define('TCBD_GOOGLE_MAP_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );     
    86 
    97    function tcbd_auto_refresh_settings() { 
     
    2725        } 
    2826         
    29         if(get_option('tcbd_auto_screen')){ 
     27        if(empty(get_option('tcbd_auto_screen'))){ 
     28            $add_auto_refresher = "all"; 
     29        } else { 
    3030            $add_auto_refresher = get_option('tcbd_auto_screen'); 
    31         } else { 
    32             $add_auto_refresher = "full"; 
    3331        } 
    3432         
     
    6361                                <td> 
    6462                                    <input class="regular-text" name="tcbd_auto_refresh_time" type="text" id="tcbd_auto_refresh_time" value="<?php echo esc_attr( $tcbd_time ); ?>"> 
    65                                     <p class="description">How much secends you want to refresh your pages?</a></p> 
     63                                    <p class="description">How many secends you want to refresh your website?</a></p> 
    6664                                </td> 
    6765                            </tr> 
     
    7674                                        <legend class="screen-reader-text"><span>Add Auto Refresher</span></legend> 
    7775                                        <label title="Add Auto Refresher in full website like home page, posts, pages, categories, tags, attachment, etc.."> 
    78                                             <input type="radio" name="tcbd_auto_screen" value="full" <?php checked( $add_auto_refresher, 'full' ); ?>>In Full Website 
     76                                            <input type="radio" name="tcbd_auto_screen" value="all" <?php checked( $add_auto_refresher, 'all' ); ?>>In Full Website 
    7977                                        </label> 
    8078                                        <br> 
     
    114112                                            <input type="radio" name="tcbd_auto_screen" value="custom" <?php checked( $add_auto_refresher, 'custom' ); ?>>In custom page 
    115113                                            <input class="regular-text" name="tcbd_auto_refresh_custom" type="text" id="tcbd_auto_refresh_custom" value="<?php echo esc_attr( $tcbd_custom ); ?>"> 
    116                                             <p class="description">Your custom page url.</a></p> 
     114                                            <p class="description">Your custom website url.</a></p> 
    117115                                        </label> 
    118116                                    </fieldset> 
Note: See TracChangeset for help on using the changeset viewer.