mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Meta Tags Page Administration ready (new XHTML/CSS rules, message handler)
This commit is contained in:
@@ -1,20 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+ ----------------------------------------------------------------------------+
|
* e107 website system
|
||||||
| e107 website system
|
*
|
||||||
|
|
* Copyright (C) 2001-2008 e107 Inc (e107.org)
|
||||||
| <20>Steve Dunstan 2001-2002
|
* Released under the terms and conditions of the
|
||||||
| http://e107.org
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
| jalist@e107.org
|
*
|
||||||
|
|
* Administration Area - Meta Tags
|
||||||
| Released under the terms and conditions of the
|
*
|
||||||
| GNU General Public License (http://gnu.org).
|
* $Source: /cvs_backup/e107_0.8/e107_admin/meta.php,v $
|
||||||
|
|
* $Revision: 1.4 $
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/meta.php,v $
|
* $Date: 2008-12-15 13:42:25 $
|
||||||
| $Revision: 1.3 $
|
* $Author: secretr $
|
||||||
| $Date: 2008-12-06 11:13:50 $
|
*
|
||||||
| $Author: e107steved $
|
|
||||||
+----------------------------------------------------------------------------+
|
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
if (!getperms("T")) {
|
if (!getperms("T")) {
|
||||||
@@ -23,6 +21,8 @@ if (!getperms("T")) {
|
|||||||
}
|
}
|
||||||
$e_sub_cat = 'meta';
|
$e_sub_cat = 'meta';
|
||||||
require_once("auth.php");
|
require_once("auth.php");
|
||||||
|
require_once(e_HANDLER."message_handler.php");
|
||||||
|
$emessage = &eMessage::getInstance();
|
||||||
|
|
||||||
$current_lang = ($sql->mySQLlanguage != "") ? $sql->mySQLlanguage : $pref['sitelanguage'];
|
$current_lang = ($sql->mySQLlanguage != "") ? $sql->mySQLlanguage : $pref['sitelanguage'];
|
||||||
|
|
||||||
@@ -59,12 +59,7 @@ if (isset($_POST['metasubmit']))
|
|||||||
|
|
||||||
$admin_log->log_event('META_01','meta_news_summary=>'.$pref['meta_news_summary'].'[!br!]'.$current_lang,E_LOG_INFORMATIVE,'');
|
$admin_log->log_event('META_01','meta_news_summary=>'.$pref['meta_news_summary'].'[!br!]'.$current_lang,E_LOG_INFORMATIVE,'');
|
||||||
save_prefs();
|
save_prefs();
|
||||||
$message = METLAN_1;
|
$emessage->add(METLAN_1." ({$current_lang})", E_MESSAGE_SUCCESS);
|
||||||
}
|
|
||||||
|
|
||||||
if ($message)
|
|
||||||
{
|
|
||||||
$ns->tablerender(METLAN_4, "<div style='text-align:center'>".METLAN_1." (".$current_lang.").</div>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$meta = $pref['meta_tag'];
|
$meta = $pref['meta_tag'];
|
||||||
@@ -73,71 +68,69 @@ $meta_keywords = $pref['meta_keywords'];
|
|||||||
$meta_copyright = $pref['meta_copyright'];
|
$meta_copyright = $pref['meta_copyright'];
|
||||||
$meta_author = $pref['meta_author'];
|
$meta_author = $pref['meta_author'];
|
||||||
|
|
||||||
$text = "<div style='text-align:center'>
|
$text = "
|
||||||
<form method='post' action='".e_SELF."' id='dataform'>
|
<form method='post' action='".e_SELF."' id='dataform'>
|
||||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
<fieldset id='core-meta-settings'>
|
||||||
|
<legend class='e-hideme'>".METLAN_8." (".$current_lang.")"."</legend>
|
||||||
|
<table cellpadding='0' cellspacing='0' class='adminform'>
|
||||||
|
<colgroup span='2'>
|
||||||
|
<col class='col-label' />
|
||||||
|
<col class='col-control' />
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class='label'>".METLAN_9."</td>
|
||||||
|
<td class='control'>
|
||||||
|
<textarea class='tbox textarea' title='meta_description' id='meta_description' name='meta_description' cols='70' rows='4'>".$tp->toForm($meta_diz[$current_lang])."</textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class='label'>".METLAN_10."</td>
|
||||||
|
<td class='control'>
|
||||||
|
<textarea class='tbox textarea' title='meta_keywords' id='meta_keywords' name='meta_keywords' cols='70' rows='4'>".$tp->toForm($meta_keywords[$current_lang])."</textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_9."</td>
|
<td class='label'>".METLAN_11."</td>
|
||||||
<td style='width:75%' class='forumheader3'>
|
<td class='control'>
|
||||||
<textarea class='tbox' title='meta_description' id='meta_description' name='meta_description' cols='70' rows='4' style='width:90%'>".$tp->toForm($meta_diz[$current_lang])."</textarea>
|
<input class='tbox input-text' size='70' type='text' name='meta_copyright' value='".$meta_copyright[$current_lang]."' />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_10."</td>
|
<td class='label'>".METLAN_13."</td>
|
||||||
<td style='width:75%' class='forumheader3'>
|
<td class='control'>
|
||||||
<textarea class='tbox' title='meta_keywords' id='meta_keywords' name='meta_keywords' cols='70' rows='4' style='width:90%'>".$tp->toForm($meta_keywords[$current_lang])."</textarea>
|
<input class='tbox input-text' size='70' type='text' name='meta_author' value=\"".$meta_author[$current_lang]."\" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_11."</td>
|
<td class='label'>".METLAN_2."</td>
|
||||||
<td style='width:75%' class='forumheader3'>
|
<td class='control'>
|
||||||
<input class='tbox' style='width:90%' size='70' type='text' name='meta_copyright' value='".$meta_copyright[$current_lang]."' />
|
<textarea class='tbox textarea' title=\"eg. <meta name='author' content='your name' />\" id='meta' name='meta' cols='70'
|
||||||
</td>
|
rows='10' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>".str_replace("<","<",$tp->toForm($meta[$current_lang]))."</textarea>
|
||||||
</tr>
|
<div class='smalltext field-help'>eg. <meta name='author' content='your name' /> </div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_13."</td>
|
<td class='label'>".METLAN_12."</td>
|
||||||
<td style='width:75%' class='forumheader3'>
|
<td class='control'>
|
||||||
<input class='tbox' style='width:90%' size='70' type='text' name='meta_author' value=\"".$meta_author[$current_lang]."\" />
|
<input class='checkbox' type='checkbox' name='meta_news_summary' value='1'".($pref['meta_news_summary'] ? " checked='checked'" : '')." />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
<button class='create' type='submit' name='metasubmit' value='".METLAN_3."'><span>".METLAN_3."</span></button>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
<tr>
|
";
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_2.":
|
|
||||||
<span class='smalltext'><br /><br />eg.
|
|
||||||
<meta name='author' content='your name' /> </span>
|
|
||||||
</td>
|
|
||||||
<td style='width:75%' class='forumheader3'>
|
|
||||||
<textarea class='tbox' title=\"eg. <meta name='author' content='your name' />\" id='meta' name='meta' cols='70'
|
|
||||||
rows='10' style='width:90%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>".str_replace("<","<",$tp->toForm($meta[$current_lang]))."</textarea>
|
|
||||||
<br />";
|
|
||||||
$text .= "</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
$ns -> tablerender(METLAN_8." (".$current_lang.")", $emessage->render().$text);
|
||||||
<td style='width:25%' class='forumheader3'>".METLAN_12."</td>
|
|
||||||
<td class='forumheader3' style='text-align:left;width:75%' >";
|
|
||||||
$checked = ($pref['meta_news_summary']) ? "checked='checked'" : "";
|
|
||||||
$text .= "
|
|
||||||
<input type='checkbox' name='meta_news_summary' value='1' {$checked} />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr><td colspan='2' style='text-align:center' class='forumheader'>
|
|
||||||
|
|
||||||
<input class='button' type='submit' name='metasubmit' value='".METLAN_3."' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
</div>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$ns -> tablerender(METLAN_8." (".$current_lang.")", $text);
|
|
||||||
|
|
||||||
require_once("footer.php");
|
require_once("footer.php");
|
||||||
|
|
||||||
|
@@ -1,13 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+ ----------------------------------------------------------------------------+
|
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||||
| e107 website system - Language File.
|
* $Id: lan_frontpage.php,v 1.4 2008-12-15 13:42:25 secretr Exp $
|
||||||
|
|
*
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_frontpage.php,v $
|
* Admin Language File
|
||||||
| $Revision: 1.3 $
|
*
|
||||||
| $Date: 2008-12-15 13:31:02 $
|
|
||||||
| $Author: secretr $
|
|
||||||
+----------------------------------------------------------------------------+
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1,18 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+ ----------------------------------------------------------------------------+
|
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||||
| e107 website system - Language File.
|
* $Id: lan_meta.php,v 1.2 2008-12-15 13:42:25 secretr Exp $
|
||||||
|
|
*
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_meta.php,v $
|
* Admin Language File
|
||||||
| $Revision: 1.1.1.1 $
|
*
|
||||||
| $Date: 2006-12-02 04:34:41 $
|
|
||||||
| $Author: mcfly_e107 $
|
|
||||||
+----------------------------------------------------------------------------+
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("METLAN_1", "Meta tags updated in database");
|
define("METLAN_1", "Meta tags updated in database");
|
||||||
define("METLAN_2", "Enter additional meta-tags");
|
define("METLAN_2", "Enter additional meta-tags");
|
||||||
define("METLAN_3", "Enter new meta tag settings");
|
define("METLAN_3", "Enter new meta tag settings");
|
||||||
define("METLAN_4", "Updated");
|
//define("METLAN_4", "Updated");
|
||||||
define("METLAN_5", "type your description here");
|
define("METLAN_5", "type your description here");
|
||||||
define("METLAN_6", "type, a, list, of, your, keywords, here");
|
define("METLAN_6", "type, a, list, of, your, keywords, here");
|
||||||
define("METLAN_7", "type your copyright info here");
|
define("METLAN_7", "type your copyright info here");
|
||||||
|
Reference in New Issue
Block a user