Plugin Directory

Changeset 1408951


Ignore:
Timestamp:
05/02/2016 02:25:50 PM (10 years ago)
Author:
TheGP
Message:

3.1.3 + readme improvements

Location:
jumpout/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jumpout/trunk/class.php

    r1341556 r1408951  
    3333    private
    3434        $settings, $settings_default, $jo_url, $popupfiles_domain,
    35         $version = '3.1.2';
     35        $version = '3.1.3';
    3636
    3737    function JumpOut()
  • jumpout/trunk/launch.php

    r1341556 r1408951  
    44Plugin URI: http://makedreamprofits.ru/jo/
    55Description: Устанавливайте JumpOut попапы в один клик с нашим плагином для Вордпресс!
    6 Version: 3.1.2
     6Version: 3.1.3
    77Author: MakeDreamProfits
    88Author URI: http://makedreamprofits.ru
     
    4343    add_action('admin_init', array($JumpOut, 'addScripts'));
    4444} else {
     45    //echo $_SERVER['REQUEST_URI'];
     46
     47    $execute = TRUE;
     48    if (isset($_SERVER['REQUEST_URI'])) {
     49        $request_uri = strtok($_SERVER['REQUEST_URI'], '?');
     50
     51        // if its .xml or .xsl - ignoring such files
     52        // https://trello.com/c/nm1A8MuN/2211-jo-xml-sitemap
     53        $url = explode('/', $request_uri);
     54        $url = $url[count($url) - 1];
     55
     56        if (FALSE !== strpos($url, '.')) {
     57            if (in_array(substr($url, 1 + strpos($url, '.')), array('xml', 'xsl'))) {
     58                $execute = FALSE;
     59            }
     60        }
     61
     62        // ignoring the login page
     63        if (strpos($request_uri, 'wp-login')) {
     64            $execute = FALSE;
     65        }
     66    }
     67
     68    //wp-login.php
     69
     70
     71    if ($execute) {
     72        add_action('init', array($JumpOut, 'frontendStart'), 0);
     73        add_action('shutdown', array($JumpOut, 'frontendEnd'), 1000);
     74
     75        add_action('wp_head', array($JumpOut, 'frontendHeader'));
     76    }
     77
     78
    4579    //add_action('wp_footer', array($JumpOut, 'frontendFooter'));
    46     add_action('init', array($JumpOut, 'frontendStart'), 0);
    47     add_action('shutdown', array($JumpOut, 'frontendEnd'), 1000);
    48 
    49     add_action('wp_head', array($JumpOut, 'frontendHeader'));
    5080
    5181    //add_action('init', array($JumpOut, 'frontendStart'), 0);
  • jumpout/trunk/readme.txt

    r1357355 r1408951  
    33Tags: popup, jumpout
    44Requires at least: 2.5.0
    5 Tested up to: 4.4
     5Tested up to: 4.5.1
    66Stable tag: trunk
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 The plugin is for simplifying installation of Jumpout popups on your website.
     10The plugin is simplifying installation of [Jumpout](http://makedreamprofits.com/jo/) popups on your website.
    1111
    1212== Description ==
Note: See TracChangeset for help on using the changeset viewer.