| 1 |
<?php |
| 2 |
/** |
| 3 |
* JS conflict warning for Menu Pages. |
| 4 |
* |
| 5 |
* Copyright: © 2009-2011 |
| 6 |
* {@link http://www.websharks-inc.com/ WebSharks, Inc.} |
| 7 |
* ( coded in the USA ) |
| 8 |
* |
| 9 |
* Released under the terms of the GNU General Public License. |
| 10 |
* You should have received a copy of the GNU General Public License, |
| 11 |
* along with this software. In the main directory, see: /licensing/ |
| 12 |
* If not, see: {@link http://www.gnu.org/licenses/}. |
| 13 |
* |
| 14 |
* @package s2Member\Menu_Pages |
| 15 |
* @since 110912 |
| 16 |
*/ |
| 17 |
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"])) |
| 18 |
exit("Do not access this file directly."); |
| 19 |
/**/ |
| 20 |
if (!class_exists ("c_ws_plugin__s2member_menu_pages_js_c_warning")) |
| 21 |
{ |
| 22 |
/** |
| 23 |
* Newsletter/Feed Boxes for Menu Pages. |
| 24 |
* |
| 25 |
* @package s2Member\Menu_Pages |
| 26 |
* @since 110531 |
| 27 |
*/ |
| 28 |
class c_ws_plugin__s2member_menu_pages_js_c_warning |
| 29 |
{ |
| 30 |
public function __construct () |
| 31 |
{ |
| 32 |
echo '<p style="margin-top:0;"><strong>Dashboard JavaScript Conflict</strong></p>' . "\n"; |
| 33 |
echo '<p>Something is conflicting with the jQuery JavaScript framework, which s2Member® uses; causing this warning to be visible to you.</p>' . "\n"; |
| 34 |
echo '<p style="margin-bottom:0;">Please deactivate one other plugin at a time until you find the culprit. Or, in Firefox®, see <code>Tools -> Error Console</code>.</p>'; |
| 35 |
} |
| 36 |
} |
| 37 |
} |
| 38 |
/**/ |
| 39 |
new c_ws_plugin__s2member_menu_pages_js_c_warning (); |
| 40 |
?> |