Commit 8568b2b3 authored by pkdille's avatar pkdille

[MOD] lesser magic: last pref in siteads admin template

parent c6fb4de5
......@@ -124,5 +124,10 @@ function prefs_global_list() {
'size' => '5',
'filter' => 'digits',
),
'sitead' => array(
'name' => tra('Content'),
'type' => 'textarea',
'size' => '5',
),
);
}
......@@ -10,15 +10,9 @@
<input type="hidden" name="adssetup" />
<fieldset>
<legend>{tr}Site Ads and Banners{/tr}{if $prefs.feature_help eq 'y'} {help url="Banners"}{/if}</legend>
<div class="adminoptionbox">
<div class="adminoptionlabel">
<label for="sitead">{tr}Content{/tr}:</label>
<br />
<textarea name="sitead" rows="6" style="width: 90%" id="sitead">{$prefs.sitead|escape}</textarea>
<br />
<em>{tr}Example{/tr}: {literal}{banner zone='{/literal}{tr}Test{/tr}{literal}'}{/literal}.</em>
</div>
</div>
{preference name=sitead}
<em>{tr}Example{/tr}: {literal}{banner zone='{/literal}{tr}Test{/tr}{literal}'}{/literal}.</em>
{preference name=feature_sitead}
<div class="adminoptionbox" id="feature_sitead_childcontainer">
......
......@@ -3,18 +3,9 @@
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: /cvsroot/tikiwiki/tiki/tiki-admin_include_ads.php,v 1.1.2.1 2008-03-16 16:57:50 luciash Exp $
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
if (isset($_REQUEST["adssetup"])) {
ask_ticket('admin-inc-ads');
$pref_simple_values = array(
"sitead"
);
foreach($pref_simple_values as $svitem) {
simple_set_value($svitem);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment