mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Gsitemap - minor code cleanup
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*
|
||||
* Plugin Administration - gsitemap
|
||||
*
|
||||
*
|
||||
*/
|
||||
require_once("../../class2.php");
|
||||
if(!getperms("P") || !plugInstalled('gsitemap'))
|
||||
@@ -212,31 +211,24 @@ class gsitemap
|
||||
$text = "
|
||||
<form action='".e_SELF."' id='form' method='post'>
|
||||
<table class='table adminform'>
|
||||
|
||||
<colgroup span='2'>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td style='width:25%'>".LAN_NAME."
|
||||
<span class='smalltext'> </span></td>
|
||||
<td>
|
||||
<input class='tbox' type='text' style='width:90%' name='gsitemap_name' size='40' value='".$editArray['gsitemap_name']."' maxlength='100' />
|
||||
</td>
|
||||
<td>".LAN_NAME."</td>
|
||||
<td>".$frm->text('gsitemap_name', $editArray['gsitemap_name'], '100', array('class' => 'tbox input-text span3'))."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:25%'>".LAN_URL."
|
||||
<span class='smalltext'> </span></td>
|
||||
<td>
|
||||
<input class='tbox' type='text' style='width:90%' name='gsitemap_url' size='40' value='".$editArray['gsitemap_url']."' maxlength='100' />
|
||||
<input class='tbox' type='hidden' name='gsitemap_lastmod' size='40' value='".time()."' maxlength='100' />
|
||||
</td>
|
||||
<td>".LAN_URL."</td>
|
||||
<td>".$frm->text('gsitemap_url', $editArray['gsitemap_url'], '100', array('class' => 'tbox input-text span3'))."
|
||||
<input class='tbox' type='hidden' name='gsitemap_lastmod' size='40' value='".time()."' maxlength='100' /></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style='width:25%'>".GSLAN_10."
|
||||
<span class='smalltext'> </span></td>
|
||||
<td>".GSLAN_10."</td>
|
||||
<td>
|
||||
<select class='tbox' name='gsitemap_freq' >\n";
|
||||
|
||||
<select class='tbox' name='gsitemap_freq'>\n";
|
||||
foreach($this->freq_list as $k=>$fq)
|
||||
{
|
||||
$sel = ($editArray['gsitemap_freq'] == $k)? "selected='selected'" : "";
|
||||
@@ -246,10 +238,8 @@ class gsitemap
|
||||
$text.="</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>".GSLAN_9."<br />
|
||||
<span class='smalltext'> </span></td>
|
||||
<td>".GSLAN_9."</td>
|
||||
<td>
|
||||
<select class='tbox' name='gsitemap_priority' >\n";
|
||||
|
||||
@@ -261,8 +251,6 @@ class gsitemap
|
||||
|
||||
$text.="</select></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>".LAN_ORDER."</td>
|
||||
<td><select name='gsitemap_order' class='tbox'>";
|
||||
@@ -270,20 +258,14 @@ class gsitemap
|
||||
for($i=0;$i<$count;$i++){
|
||||
$text .= $editArray['gsitemap_order'] == $i ? "<option value='".$i."' selected='selected'>".$i."</option>" : "<option value='".$i."'>".$i."</option>";
|
||||
}
|
||||
$text .="
|
||||
</select>
|
||||
$text .= "</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>".LAN_VISIBILITY."</td>
|
||||
<td>";
|
||||
$text .= r_userclass("gsitemap_active", $editArray['gsitemap_active'], 'off', "nobody,public,guest,member,admin,classes,language");
|
||||
$text .="
|
||||
</td>
|
||||
<td>".r_userclass("gsitemap_active", $editArray['gsitemap_active'], 'off', "nobody,public,guest,member,admin,classes,language")." </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='buttons-bar center'>";
|
||||
if(is_array($editArray))
|
||||
{
|
||||
@@ -293,7 +275,6 @@ class gsitemap
|
||||
else
|
||||
{
|
||||
$text .= $frm->admin_button('add_link',LAN_CREATE,'create');
|
||||
// $text .= "<input class='button' type='submit' name='add_link' value='".LAN_CREATE."' />";
|
||||
}
|
||||
|
||||
$text .= "</div>
|
||||
|
Reference in New Issue
Block a user