wordpress-popup
Last commit date
popoverincludes
15 years ago
license.txt
15 years ago
popover.php
15 years ago
readme.txt
15 years ago
testheadfooter.php
15 years ago
popover.php
49 lines
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: WordPress Popup plugin |
| 4 | Plugin URI: http://premium.wpmudev.org |
| 5 | Description: This plugin adds a customisable popover to a site. The content, size, position can be changed and rules determining if the popup should show or not. |
| 6 | Author: Barry (Incsub) |
| 7 | Version: 3.0 |
| 8 | Author URI: http://caffeinatedb.com |
| 9 | WDP ID: 230 |
| 10 | |
| 11 | Copyright 2007-2010 Incsub (http://incsub.com) |
| 12 | |
| 13 | This program is free software; you can redistribute it and/or modify |
| 14 | it under the terms of the GNU General Public License as published by |
| 15 | the Free Software Foundation; either version 2 of the License, or |
| 16 | (at your option) any later version. |
| 17 | |
| 18 | This program is distributed in the hope that it will be useful, |
| 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | GNU General Public License for more details. |
| 22 | |
| 23 | You should have received a copy of the GNU General Public License |
| 24 | along with this program; if not, write to the Free Software |
| 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 26 | |
| 27 | */ |
| 28 | |
| 29 | // a true setting for PO_GLOBAL means that this plugin operates on a global site-admin basis |
| 30 | // commenting out this line means that the plugin operates on a blog by blog basis |
| 31 | define('PO_GLOBAL',true); |
| 32 | |
| 33 | require_once('popoverincludes/classes/functions.php'); |
| 34 | // Set up my location |
| 35 | set_popover_url(__FILE__); |
| 36 | set_popover_dir(__FILE__); |
| 37 | |
| 38 | if(is_admin()) { |
| 39 | require_once('popoverincludes/classes/popoveradmin.php'); |
| 40 | |
| 41 | $popover =& new popoveradmin(); |
| 42 | } else { |
| 43 | require_once('popoverincludes/classes/popoverpublic.php'); |
| 44 | |
| 45 | $popover =& new popoverpublic(); |
| 46 | } |
| 47 | |
| 48 | |
| 49 | ?> |