Plugin Directory

Changeset 1155649


Ignore:
Timestamp:
05/07/2015 08:24:30 PM (11 years ago)
Author:
websitezcom
Message:

Fixing the name of the plugin file to match what it used to be

Location:
wp-mobile-detector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-mobile-detector/tags/3.0/websitez-wp-mobile-detector.php

    r804694 r1155649  
    11<?php
    2 /*
    3  Plugin Name: WP Mobile Detector Mobile Plugin
     2/**
     3 Plugin Name: WP Mobile Detector
    44 Plugin URI: http://www.websitez.com/
    5  Description: The WP Mobile Detector wordpress mobile plugin automatically detects if the visitor is using a standard mobile phone or a smart phone and loads a compatible wordpress mobile theme for each. This mobile plugin is one of the first to differentiate between a standard mobile phone and a smart phone. With advanced mobile statistics, image resizing, automatically formatted content, and detection of 5,000+ mobile phones, the WP Mobile Detector gives your mobile visitors the experience they desire.
     5 Description: Create a mobile friendly WordPress website instantly for over 5,000+ mobile devices.
     6 Version: 3.0
     7 Author: Websitez.com, LLC
     8 Author URI: http://www.websitez.com
     9 Text Domain: wp-mobile-detector
     10 Domain Path: /locale
     11*/
    612
    7  Version: 1.8
    8  Author: Websitez.com
    9  Author URI: http://websitez.com
    10 */
     13define('WEBSITEZ_MODE', 'production');
    1114
    1215/*
     
    1619
    1720global $table_prefix;
    18 //Putting this in for the future
    19 global $websitez_free_version;
    20 $websitez_free_version = true;
    2121
    2222global $websitez_mobile_device;
    2323$websitez_mobile_device = array();
    2424
     25if(isset($_GET['websitez-mobile'])):
     26    //Disabling W3 Total Cache
     27    define('DONOTCACHEPAGE', true);
     28    define('DONOTMINIFY', true);
     29    define('DONOTCACHEOBJECT', true);
     30endif;
    2531/*
    2632Define Globals
    2733*/
    28 define('WEBSITEZ_COOKIE_NAME', 'websitez_mobile_detector_v1-8');
    2934define('WEBSITEZ_PLUGIN_NAME', 'WP Mobile Detector');
     35define('WEBSITEZ_PLUGIN_VERSION', '3.0');
    3036define('WEBSITEZ_PLUGIN_AUTHORIZATION', 'wp_mobile_detector_token');
    3137define('WEBSITEZ_PLUGIN_DIR', dirname(__FILE__));
     
    3339define('WEBSITEZ_BASIC_THEME', 'websitez_basic_theme');
    3440define('WEBSITEZ_ADVANCED_THEME', 'websitez_advanced_theme');
    35 define('WEBSITEZ_INSTALL_BASIC_THEME', 'bluesteel-mobile');
    36 define('WEBSITEZ_INSTALL_ADVANCED_THEME', 'bluesteel-mobile');
     41define('WEBSITEZ_INSTALL_BASIC_THEME', 'amanda-mobile');
     42define('WEBSITEZ_INSTALL_ADVANCED_THEME', 'amanda-mobile');
    3743define('WEBSITEZ_DEFAULT_THEME', 'twentyten');
    38 define('WEBSITEZ_ADVANCED_MAX_IMAGE_WIDTH', '250');
     44define('WEBSITEZ_ADVANCED_MAX_IMAGE_WIDTH', '320');
    3945define('WEBSITEZ_STATS_TABLE', $table_prefix.'websitez_stats');
    4046define('WEBSITEZ_RECORD_STATS_NAME', 'websitez_record_stats');
     
    4652define('WEBSITEZ_BASIC_URL_REDIRECT', 'websitez_basic_url_redirect');
    4753define('WEBSITEZ_ADVANCED_URL_REDIRECT', 'websitez_advanced_url_redirect');
    48 
    49 define('WEBSITEZ_SHOW_DASHBOARD_WIDGET', "true");
    50 define('WEBSITEZ_SHOW_DASHBOARD_WIDGET_NAME', "websitez_show_dashboard_widget");
    51 
    52 define('WEBSITEZ_SHOW_MOBILE_TO_TABLETS', "true");
    53 define('WEBSITEZ_SHOW_MOBILE_TO_TABLETS_NAME', "websitez_show_mobile_to_tablets");
    54 
    55 /* ADs off by default */
    56 define('WEBSITEZ_SHOW_MOBILE_ADS', "false");
    57 define('WEBSITEZ_SHOW_MOBILE_ADS_NAME', "websitez_show_mobile_ads");
    58 define('WEBSITEZ_MONETIZATION_MESSAGE', "websitez_monetization_message");
     54define('WEBSITEZ_DISABLE_PLUGIN_NAME', 'websitez_disable_plugin');
     55define('WEBSITEZ_DISABLE_PLUGIN', "false");
     56define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_NAME', 'websitez_redirect_mobile_visitors');
     57define('WEBSITEZ_REDIRECT_MOBILE_VISITORS', "false");
     58define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_WEBSITE_NAME', 'websitez_redirect_mobile_visitors_website');
     59define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_WEBSITE', "");
     60define('WEBSITEZ_LICENSE_KEY_NAME','websitez_pro_license_key');
     61define('WEBSITEZ_LICENSE_EMAIL_NAME','websitez_pro_license_email');
     62define('PURCHASE_WEBSITEZ_PRO_LINK','http://websitez.com');
    5963
    6064//Does this plugin come with pre-installed templates?
     
    6266$websitez_preinstalled_templates = get_option(WEBSITEZ_USE_PREINSTALLED_THEMES_NAME);
    6367
     68//Configuration options
     69global $websitez_options, $websitez_preload_images;
     70
    6471// Install plugin
    6572if(function_exists('register_activation_hook')) {
    6673    register_activation_hook( __FILE__, 'websitez_install' );
    6774}
     75if(function_exists('register_deactivation_hook')) {
     76    register_deactivation_hook( __FILE__, 'websitez_uninstall' );
     77}
    6878
    6979if(is_admin()) {
    7080    require(dirname(__FILE__) . '/admin/admin-page.php');
    71     require(dirname(__FILE__) . '/admin/themes.php');
    7281    add_action('admin_menu', 'websitez_configuration_menu');
    7382    //Check to make sure plugin is installed properly
    74     add_action('init', 'websitez_checkInstalled');
    75     add_action('init', 'websitez_authorization');
    76     //add_action('init', 'websitez_check_monetization');
    77     add_action('wp_dashboard_setup', 'websitez_dashboard_setup' );
     83    add_action('admin_init', 'websitez_checkInstalled');
     84    add_filter( 'cron_schedules', 'wz_cron_add_monthly' );
     85    add_filter('plugin_action_links', 'websitez_settings_link', 10, 2 );
     86    add_action("activated_plugin", "websitez_plugin_activated");
     87    add_action('wp_ajax_websitez_options', 'websitez_save_options');
     88}else{
     89    // Using an action does not allow us to disable other plugins.
     90    //add_action( 'plugins_loaded', 'websitez_go', 1 );
     91    websitez_go();
    7892}
    7993
    80 /*
    81 Lets get this party started.
    82 */
    83 if(websitez_check_and_act_mobile()){
    84     if($websitez_preinstalled_templates == "true"){
    85         require(dirname(__FILE__) . '/default-widgets.php');
    86         if(!is_admin()){
     94function websitez_go(){
     95    global $websitez_preinstalled_templates;
     96   
     97    $websitez_detect = apply_filters( 'websitez_detect', true );
     98    if ( $websitez_detect !== true ) {
     99        return false;
     100    }
     101   
     102    if(websitez_check_and_act_mobile()){
     103        if($websitez_preinstalled_templates == "true"){
     104            require(dirname(__FILE__) . '/default-widgets.php');
    87105            add_filter('theme_root', 'websitez_setThemeFolder');
    88106            add_filter('theme_root_uri', 'websitez_setThemeFolderFront');
     
    95113            add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
    96114            add_filter('get_the_generator_html', 'websitez_wordpress_generator');
     115        }else{
     116            add_filter('stylesheet', 'websitez_getTheme');
     117            add_filter('template', 'websitez_getTheme');
     118            add_action('send_headers', 'websitez_send_headers');
     119            add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
     120            add_filter('get_the_generator_html', 'websitez_wordpress_generator');
    97121        }
    98     }else{
    99         add_filter('stylesheet', 'websitez_getTheme');
    100         add_filter('template', 'websitez_getTheme');
    101         add_action('send_headers', 'websitez_send_headers');
    102         add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
    103         add_filter('get_the_generator_html', 'websitez_wordpress_generator');
    104122    }
    105123}
     124add_action( 'websitez_do_filter', 'websitez_do_filter' );
    106125?>
  • wp-mobile-detector/trunk/websitez-wp-mobile-detector.php

    r804694 r1155649  
    11<?php
    2 /*
    3  Plugin Name: WP Mobile Detector Mobile Plugin
     2/**
     3 Plugin Name: WP Mobile Detector
    44 Plugin URI: http://www.websitez.com/
    5  Description: The WP Mobile Detector wordpress mobile plugin automatically detects if the visitor is using a standard mobile phone or a smart phone and loads a compatible wordpress mobile theme for each. This mobile plugin is one of the first to differentiate between a standard mobile phone and a smart phone. With advanced mobile statistics, image resizing, automatically formatted content, and detection of 5,000+ mobile phones, the WP Mobile Detector gives your mobile visitors the experience they desire.
     5 Description: Create a mobile friendly WordPress website instantly for over 5,000+ mobile devices.
     6 Version: 3.0
     7 Author: Websitez.com, LLC
     8 Author URI: http://www.websitez.com
     9 Text Domain: wp-mobile-detector
     10 Domain Path: /locale
     11*/
    612
    7  Version: 1.8
    8  Author: Websitez.com
    9  Author URI: http://websitez.com
    10 */
     13define('WEBSITEZ_MODE', 'production');
    1114
    1215/*
     
    1619
    1720global $table_prefix;
    18 //Putting this in for the future
    19 global $websitez_free_version;
    20 $websitez_free_version = true;
    2121
    2222global $websitez_mobile_device;
    2323$websitez_mobile_device = array();
    2424
     25if(isset($_GET['websitez-mobile'])):
     26    //Disabling W3 Total Cache
     27    define('DONOTCACHEPAGE', true);
     28    define('DONOTMINIFY', true);
     29    define('DONOTCACHEOBJECT', true);
     30endif;
    2531/*
    2632Define Globals
    2733*/
    28 define('WEBSITEZ_COOKIE_NAME', 'websitez_mobile_detector_v1-8');
    2934define('WEBSITEZ_PLUGIN_NAME', 'WP Mobile Detector');
     35define('WEBSITEZ_PLUGIN_VERSION', '3.0');
    3036define('WEBSITEZ_PLUGIN_AUTHORIZATION', 'wp_mobile_detector_token');
    3137define('WEBSITEZ_PLUGIN_DIR', dirname(__FILE__));
     
    3339define('WEBSITEZ_BASIC_THEME', 'websitez_basic_theme');
    3440define('WEBSITEZ_ADVANCED_THEME', 'websitez_advanced_theme');
    35 define('WEBSITEZ_INSTALL_BASIC_THEME', 'bluesteel-mobile');
    36 define('WEBSITEZ_INSTALL_ADVANCED_THEME', 'bluesteel-mobile');
     41define('WEBSITEZ_INSTALL_BASIC_THEME', 'amanda-mobile');
     42define('WEBSITEZ_INSTALL_ADVANCED_THEME', 'amanda-mobile');
    3743define('WEBSITEZ_DEFAULT_THEME', 'twentyten');
    38 define('WEBSITEZ_ADVANCED_MAX_IMAGE_WIDTH', '250');
     44define('WEBSITEZ_ADVANCED_MAX_IMAGE_WIDTH', '320');
    3945define('WEBSITEZ_STATS_TABLE', $table_prefix.'websitez_stats');
    4046define('WEBSITEZ_RECORD_STATS_NAME', 'websitez_record_stats');
     
    4652define('WEBSITEZ_BASIC_URL_REDIRECT', 'websitez_basic_url_redirect');
    4753define('WEBSITEZ_ADVANCED_URL_REDIRECT', 'websitez_advanced_url_redirect');
    48 
    49 define('WEBSITEZ_SHOW_DASHBOARD_WIDGET', "true");
    50 define('WEBSITEZ_SHOW_DASHBOARD_WIDGET_NAME', "websitez_show_dashboard_widget");
    51 
    52 define('WEBSITEZ_SHOW_MOBILE_TO_TABLETS', "true");
    53 define('WEBSITEZ_SHOW_MOBILE_TO_TABLETS_NAME', "websitez_show_mobile_to_tablets");
    54 
    55 /* ADs off by default */
    56 define('WEBSITEZ_SHOW_MOBILE_ADS', "false");
    57 define('WEBSITEZ_SHOW_MOBILE_ADS_NAME', "websitez_show_mobile_ads");
    58 define('WEBSITEZ_MONETIZATION_MESSAGE', "websitez_monetization_message");
     54define('WEBSITEZ_DISABLE_PLUGIN_NAME', 'websitez_disable_plugin');
     55define('WEBSITEZ_DISABLE_PLUGIN', "false");
     56define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_NAME', 'websitez_redirect_mobile_visitors');
     57define('WEBSITEZ_REDIRECT_MOBILE_VISITORS', "false");
     58define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_WEBSITE_NAME', 'websitez_redirect_mobile_visitors_website');
     59define('WEBSITEZ_REDIRECT_MOBILE_VISITORS_WEBSITE', "");
     60define('WEBSITEZ_LICENSE_KEY_NAME','websitez_pro_license_key');
     61define('WEBSITEZ_LICENSE_EMAIL_NAME','websitez_pro_license_email');
     62define('PURCHASE_WEBSITEZ_PRO_LINK','http://websitez.com');
    5963
    6064//Does this plugin come with pre-installed templates?
     
    6266$websitez_preinstalled_templates = get_option(WEBSITEZ_USE_PREINSTALLED_THEMES_NAME);
    6367
     68//Configuration options
     69global $websitez_options, $websitez_preload_images;
     70
    6471// Install plugin
    6572if(function_exists('register_activation_hook')) {
    6673    register_activation_hook( __FILE__, 'websitez_install' );
    6774}
     75if(function_exists('register_deactivation_hook')) {
     76    register_deactivation_hook( __FILE__, 'websitez_uninstall' );
     77}
    6878
    6979if(is_admin()) {
    7080    require(dirname(__FILE__) . '/admin/admin-page.php');
    71     require(dirname(__FILE__) . '/admin/themes.php');
    7281    add_action('admin_menu', 'websitez_configuration_menu');
    7382    //Check to make sure plugin is installed properly
    74     add_action('init', 'websitez_checkInstalled');
    75     add_action('init', 'websitez_authorization');
    76     //add_action('init', 'websitez_check_monetization');
    77     add_action('wp_dashboard_setup', 'websitez_dashboard_setup' );
     83    add_action('admin_init', 'websitez_checkInstalled');
     84    add_filter( 'cron_schedules', 'wz_cron_add_monthly' );
     85    add_filter('plugin_action_links', 'websitez_settings_link', 10, 2 );
     86    add_action("activated_plugin", "websitez_plugin_activated");
     87    add_action('wp_ajax_websitez_options', 'websitez_save_options');
     88}else{
     89    // Using an action does not allow us to disable other plugins.
     90    //add_action( 'plugins_loaded', 'websitez_go', 1 );
     91    websitez_go();
    7892}
    7993
    80 /*
    81 Lets get this party started.
    82 */
    83 if(websitez_check_and_act_mobile()){
    84     if($websitez_preinstalled_templates == "true"){
    85         require(dirname(__FILE__) . '/default-widgets.php');
    86         if(!is_admin()){
     94function websitez_go(){
     95    global $websitez_preinstalled_templates;
     96   
     97    $websitez_detect = apply_filters( 'websitez_detect', true );
     98    if ( $websitez_detect !== true ) {
     99        return false;
     100    }
     101   
     102    if(websitez_check_and_act_mobile()){
     103        if($websitez_preinstalled_templates == "true"){
     104            require(dirname(__FILE__) . '/default-widgets.php');
    87105            add_filter('theme_root', 'websitez_setThemeFolder');
    88106            add_filter('theme_root_uri', 'websitez_setThemeFolderFront');
     
    95113            add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
    96114            add_filter('get_the_generator_html', 'websitez_wordpress_generator');
     115        }else{
     116            add_filter('stylesheet', 'websitez_getTheme');
     117            add_filter('template', 'websitez_getTheme');
     118            add_action('send_headers', 'websitez_send_headers');
     119            add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
     120            add_filter('get_the_generator_html', 'websitez_wordpress_generator');
    97121        }
    98     }else{
    99         add_filter('stylesheet', 'websitez_getTheme');
    100         add_filter('template', 'websitez_getTheme');
    101         add_action('send_headers', 'websitez_send_headers');
    102         add_filter('get_the_generator_xhtml', 'websitez_wordpress_generator');
    103         add_filter('get_the_generator_html', 'websitez_wordpress_generator');
    104122    }
    105123}
     124add_action( 'websitez_do_filter', 'websitez_do_filter' );
    106125?>
Note: See TracChangeset for help on using the changeset viewer.