1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Banner e_help to Admin UI

This commit is contained in:
Tijn Kuyper
2019-10-26 15:59:05 +02:00
parent 6a8b7cb455
commit 01adf399bb
3 changed files with 14 additions and 18 deletions

View File

@@ -6,20 +6,10 @@
* Released under the terms and conditions of the * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
* Banner Administration * Banner Administration - Handles the display and sequencing of banners on web pages, including counting impressions
* *
*/ */
/**
* e107 Banner management plugin
*
* Handles the display and sequencing of banners on web pages, including counting impressions
*
* @package e107_plugins
* @subpackage banner
*
*/
require_once('../../class2.php'); require_once('../../class2.php');
if (!getperms('D') && !getperms('P')) if (!getperms('D') && !getperms('P'))
{ {
@@ -61,8 +51,6 @@ e107::js('footer-inline','
'); ');
class banner_admin extends e_admin_dispatcher class banner_admin extends e_admin_dispatcher
{ {
@@ -385,7 +373,12 @@ class banner_ui extends e_admin_ui
// $ns->tablerender(LAN_PLUGIN_BANNER_NAME.SEP.BNRLAN_36, $mes->render() . $text); // $ns->tablerender(LAN_PLUGIN_BANNER_NAME.SEP.BNRLAN_36, $mes->render() . $text);
} }
public function renderHelp()
{
$help_text = str_replace("[br]", "<br />", BNRLAN_HELP_02);
return array('caption' => LAN_HELP, 'text' => $help_text);
}
} }

View File

@@ -9,6 +9,10 @@
* Plugin - Banner * Plugin - Banner
* *
*/ */
// DEPRECATED FILE - help text now included renderHelp() in banner_config.php
return;
/*
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!e107::isInstalled('banner')) if (!e107::isInstalled('banner'))
{ {
@@ -19,3 +23,4 @@ e107::includeLan(e_PLUGIN.'banner/languages/'.e_LANGUAGE.'admin_banner.php');
$ns->tablerender(BNRLAN_HELP_01, BNRLAN_HELP_02); $ns->tablerender(BNRLAN_HELP_01, BNRLAN_HELP_02);
?> ?>
*/

View File

@@ -7,7 +7,6 @@
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
*/ */
define("BNRLAN_00", "No banners created yet."); // 15 define("BNRLAN_00", "No banners created yet."); // 15
define("BNRLAN_01", "Banner ID not found."); define("BNRLAN_01", "Banner ID not found.");
@@ -71,7 +70,6 @@ define("BNRLAN_48", "All selected campaigns (no box rendering)");
define("BNRLAN_50", "Local"); define("BNRLAN_50", "Local");
define("BNRLAN_51", "Remote"); define("BNRLAN_51", "Remote");
define("BNRLAN_HELP_01", "Banner Help"); //define("BNRLAN_HELP_01", "Banner Help"); LAN_HELP
define("BNRLAN_HELP_02", "Use this plugin to manage advertising on your website.<br /><br />When creating a new banner you can create a username and password for your client to login and check the progress of the campaign. <br /><br />You can enable the banner menu using the menu manager and perform further configuration from there.");
?> define("BNRLAN_HELP_02", "Use this plugin to manage advertising on your website.[br][br]When creating a new banner you can create a username and password for your client to login and check the progress of the campaign. [br][br]You can enable the banner menu using the menu manager and perform further configuration from there.");