1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

eURL initial core folder structure, admin page fixes, admin images, admin language file

This commit is contained in:
secretr
2008-12-02 11:03:02 +00:00
parent 01c828b9d8
commit c7e1f248d5
4 changed files with 110 additions and 65 deletions

View File

@@ -9,8 +9,8 @@
* URL Management * URL Management
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/eurl.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/eurl.php,v $
* $Revision: 1.2 $ * $Revision: 1.3 $
* $Date: 2008-12-02 00:40:28 $ * $Date: 2008-12-02 11:03:02 $
* $Author: secretr $ * $Author: secretr $
*/ */
@@ -65,20 +65,31 @@ class admin_url_config {
<table style='".ADMIN_WIDTH."' class='fborder admin-config'> <table style='".ADMIN_WIDTH."' class='fborder admin-config'>
"; ";
$empty = "
<tr>
<td colspan='2' class='forumheader3 center'>".LAN_EURL_EMPTY."</td>
</tr>
";
$text .= " $text .= "
<tbody> <tbody>
<tr> <tr>
<td colspan='2' class='forumheader'>Configure Core URLs</td> <td colspan='2' class='forumheader'>".LAN_EURL_CORECONFIG."</td>
</tr>"; </tr>
";
$text .= $this->render_sections('core'); $tmp = $this->render_sections('core');
if($tmp) $text .= $tmp;
else $text .= $empty;
$text .= " $text .= "
<tr> <tr>
<td colspan='2' class='forumheader'>Configure Plugin URLs</td> <td colspan='2' class='forumheader'>".LAN_EURL_PLUGCONFIG."</td>
</tr>"; </tr>";
$text .= $this->render_sections('plugin'); $tmp = $this->render_sections('plugin');
if($tmp) $text .= $tmp;
else $text .= $empty;
$text .= " $text .= "
@@ -90,7 +101,7 @@ class admin_url_config {
</form> </form>
</div>"; </div>";
$this->_api->ns->tablerender('Manage Site URLs', $text); $this->_api->ns->tablerender(PAGE_NAME, $text);
} }
function render_sections($id) function render_sections($id)
@@ -117,11 +128,12 @@ class admin_url_config {
function render_section($id, $section) function render_section($id, $section)
{ {
$this->normalize($id, $section); //var_dump($id, $section); $this->normalize($id, $section);
$text .= " $text .= "
<tr> <tr>
<td class='forumheader3' style='width: 30%'>{$section['name']}</td> <td class='forumheader3' style='width: 30%'>{$section['name']}</td>
<td class='forumheader3' style='width: 70%; white-space: nowrap'> <td class='forumheader3' style='width: 70%'>
".$this->render_section_radio($id, $section)." ".$this->render_section_radio($id, $section)."
"; ";
$text .= " $text .= "
@@ -138,7 +150,7 @@ class admin_url_config {
$checked_def = varset($pref['url_config'][$section['path']]) ? '' : ' checked="checked"'; $checked_def = varset($pref['url_config'][$section['path']]) ? '' : ' checked="checked"';
$def = " $def = "
<input type='radio' id='{$section['path']}-default' name='cprofile[{$section['path']}]' value='0'{$checked_def} /> <input type='radio' id='{$section['path']}-default' name='cprofile[{$section['path']}]' value='0'{$checked_def} />
<label for='{$section['path']}-default'>Default</label> <label for='{$section['path']}-default'>".LAN_EURL_DEFAULT."</label>
"; ";
//CUSTOM - CENTRAL REPOSITORY //CUSTOM - CENTRAL REPOSITORY
@@ -159,13 +171,12 @@ class admin_url_config {
$custom = " $custom = "
<div class='clear'><!-- --></div> <div class='clear'><!-- --></div>
<input type='radio' id='{$section['path']}-custom' name='cprofile[{$section['path']}]' value='{$udefined_id}'{$checked} /> <input type='radio' id='{$section['path']}-custom' name='cprofile[{$section['path']}]' value='{$udefined_id}'{$checked} />
<label for='{$section['path']}-custom'>User Defined Config</label> <label for='{$section['path']}-custom'>".LAN_EURL_UDEFINED."</label>
<a href='#{$section['path']}-custom-info' class='e-expandit' title='Info'><img src='".e_IMAGE_ABS."admin_images/docs_16.png' alt='' /></a> <a href='#{$section['path']}-custom-info' class='e-expandit' title='".LAN_EURL_INFOALT."'><img src='".e_IMAGE_ABS."admin_images/docs_16.png' alt='' /></a>
<div class='e-hideme' id='{$section['path']}-custom-info'> <div class='e-hideme' id='{$section['path']}-custom-info'>
<div class='indent'> <div class='indent'>
User defined URL configuration - overrides (disables) all custom configuration profiles.<br /> ".LAN_EURL_UDEFINED_INFO."<br />
Remove the User defined configuration folder to enable the custom configuration profiles.<br /> <strong>".LAN_EURL_LOCATION."</strong> ".e_FILE_ABS."e_url/custom/{$id}/{$section['path']}/"."
<strong>Location:</strong> ".e_FILE_ABS."e_url/custom/{$id}/{$section['path']}/"."
</div> </div>
</div> </div>
"; ";
@@ -191,13 +202,13 @@ class admin_url_config {
<div class='clear'><!-- --></div> <div class='clear'><!-- --></div>
<input type='radio' id='{$section['path']}-profile-{$config_profile}' name='cprofile[{$section['path']}]' value='{$profile_id}'{$checked_profile} /> <input type='radio' id='{$section['path']}-profile-{$config_profile}' name='cprofile[{$section['path']}]' value='{$profile_id}'{$checked_profile} />
<label for='{$section['path']}-profile-{$config_profile}'> <label for='{$section['path']}-profile-{$config_profile}'>
Config Profile [{$config_profile}] ".LAN_EURL_PROFILE." [{$config_profile}]
</label> </label>
<a href='#{$section['path']}-profile-{$config_profile}-info' class='e-expandit' title='Info'><img src='".e_IMAGE_ABS."admin_images/docs_16.png' alt='' /></a> <a href='#{$section['path']}-profile-{$config_profile}-info' class='e-expandit' title='".LAN_EURL_INFOALT."'><img src='".e_IMAGE_ABS."admin_images/docs_16.png' alt='' /></a>
<div class='e-hideme' id='{$section['path']}-profile-{$config_profile}-info'> <div class='e-hideme' id='{$section['path']}-profile-{$config_profile}-info'>
<div class='indent'> <div class='indent'>
Under Construction - profile.xml<br /> ".LAN_EURL_PROFILE_INFO."<br />
<strong>Location:</strong> ".str_replace(array(e_PLUGIN, e_FILE), array(e_PLUGIN_ABS, e_FILE_ABS), $profile_path)."{$config_profile}/ <strong>".LAN_EURL_LOCATION."</strong> ".str_replace(array(e_PLUGIN, e_FILE), array(e_PLUGIN_ABS, e_FILE_ABS), $profile_path)."{$config_profile}/
</div> </div>
</div> </div>
"; ";
@@ -228,8 +239,8 @@ class admin_url_config {
function get_core_sections() function get_core_sections()
{ {
$core_def = array( $core_def = array(
'news' => array("core_name" => 'News', 'core_path' => 'news'), 'news' => array("core_name" => LAN_EURL_CORE_NEWS, 'core_path' => 'news'),
'downloads' => array("core_name" => 'Downloads', 'core_path' => 'downloads') 'downloads' => array("core_name" => LAN_EURL_CORE_DOWNLOADS, 'core_path' => 'downloads')
); );
return $core_def; return $core_def;
@@ -253,16 +264,16 @@ class admin_url_config {
} }
} }
/*
function headerjs() function headerjs()
{ {
/*
$js = " $js = "
<script type='text/javascript'> <script type='text/javascript'>
</script>"; </script>";
return $js; return $js;
*/
} }*/
?> ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,34 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2001-2008 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Administration Language File
*
* $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_eurl.php,v $
* $Revision: 1.1 $
* $Date: 2008-12-02 11:03:02 $
* $Author: secretr $
*/
if (!defined("PAGE_NAME")) { define("PAGE_NAME", "Manage Site URLs"); }
define("LAN_EURL_EMPTY", "The list is empty");
define("LAN_EURL_CORECONFIG", "Configure Core URLs");
define("LAN_EURL_PLUGCONFIG", "Configure Plugin URLs");
define("LAN_EURL_DEFAULT", "Default");
define("LAN_EURL_PROFILE", "Config Profile");
define("LAN_EURL_UDEFINED", "User Defined Config");
define("LAN_EURL_INFOALT", "Info");
define("LAN_EURL_UDEFINED_INFO", "User defined URL configuration - overrides (disables) all custom configuration profiles. Remove the User defined configuration folder to enable the custom configuration profiles.");
define("LAN_EURL_PROFILE_INFO", "Under Construction - profile.xml");
define("LAN_EURL_LOCATION", "Location:");
define("LAN_EURL_CORE_NEWS", "News");
define("LAN_EURL_CORE_DOWNLOADS", "Downloads");
//define("LAN_EURL_", "");
//define("LAN_EURL_", "");
?>