mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
More _blank cleanup
This commit is contained in:
@@ -5,13 +5,13 @@ if (!defined('e107_INIT')) { exit; }
|
||||
// Dummy Theme Configuration File.
|
||||
class theme__blank implements e_theme_config
|
||||
{
|
||||
function process()
|
||||
function process() // Save posted values from config() fields.
|
||||
{
|
||||
$pref = e107::getConfig();
|
||||
|
||||
$theme_pref = array();
|
||||
$theme_pref['example'] = $_POST['_blank_example'];
|
||||
$theme_pref['fb_tabs_cols'] = intval($_POST['fb_tabs_cols']);
|
||||
$theme_pref = array();
|
||||
$theme_pref['example'] = $_POST['_blank_example'];
|
||||
$theme_pref['example2'] = intval($_POST['_blank_example2']);
|
||||
|
||||
$pref->set('sitetheme_pref', $theme_pref);
|
||||
return $pref->dataHasChanged();
|
||||
@@ -22,32 +22,24 @@ class theme__blank implements e_theme_config
|
||||
$var[0]['caption'] = "Sample configuration field";
|
||||
$var[0]['html'] = "<input type='text' name='_blank_example' value='".e107::getThemePref('example', 'default')."' />";
|
||||
|
||||
$var[1]['caption'] = "Featurebox Tab Category - number of items per tab";
|
||||
$var[1]['html'] = "<input type='text' name='fb_tabs_cols' value='".e107::getThemePref('fb_tabs_cols', 1)."' />";
|
||||
$var[1]['caption'] = "Sample configuration field";
|
||||
$var[1]['html'] = "<input type='text' name='_blank_example2' value='".e107::getThemePref('example2', 1)."' />";
|
||||
|
||||
return $var;
|
||||
}
|
||||
|
||||
function help()
|
||||
{
|
||||
return "
|
||||
<div class='block-text' style='text-align:left;margin-left:auto;margin-right:auto;width:80%'>
|
||||
|
||||
|
||||
<a href='http://e107.org'>All the HTML that you want</a>.<br /><br />
|
||||
|
||||
|
||||
<div class='well'>
|
||||
<a href='http://e107.org'>All the HTML that you want</a>.<br /><br />
|
||||
Mauris sit amet arcu arcu. Curabitur ultrices, felis ac sagittis elementum, justo dolor posuere eros, eu sollicitudin eros mi nec leo. Quisque sapien justo, ultricies at sollicitudin non; rhoncus vel nisi. Fusce egestas orci a diam vestibulum ut gravida ipsum tristique. Nullam et turpis nibh; eu dapibus ligula. Fusce ornare massa ac ante tincidunt euismod varius augue volutpat? Suspendisse potenti. Morbi eget velit in nulla tristique ultricies suscipit consequat ligula. Integer quis arcu vel sem scelerisque gravida vitae vel tortor! Suspendisse tincidunt scelerisque nibh, quis consectetur mauris varius sit amet! Pellentesque et urna vel est rutrum viverra?
|
||||
|
||||
<br /><br />
|
||||
<ul>
|
||||
<li>Curabitur ultrices</li>
|
||||
<li>Ollicitudin eros</li>
|
||||
<li>Felis ac sagittis</li>
|
||||
<li>Quisque sapien</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
@@ -1,28 +0,0 @@
|
||||
/* Non-Admin CSS Document */
|
||||
.col-main { zoom: 1 }
|
||||
button { width:auto; margin-left:5px; overflow:visible; }
|
||||
|
||||
input.checkbox,
|
||||
input.radio { width:13px; height:13px; }
|
||||
|
||||
button {
|
||||
width:auto;
|
||||
overflow:visible;
|
||||
vertical-align: middle
|
||||
}
|
||||
button span {
|
||||
margin-top:1px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* THEME SPECIFIC CSS *********************************************************************************************/
|
||||
|
||||
#core-frontpage-edit-home { width: 49%; float: left; margin-right: 10px; }
|
||||
#core-frontpage-edit-post-login { width: 49%; float: left;}
|
||||
|
||||
#core-frontpage-edit-home .adminlist { width: 100%; }
|
||||
#core-frontpage-edit-post-login .adminlist { width: 100%; }
|
||||
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
47
e107_themes/_blank/images/index.html
Normal file
47
e107_themes/_blank/images/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------------------------+
|
||||
| e107 website system : http://e107.org
|
||||
| Steve Dunstan 2001-2002 : jalist@e107.org
|
||||
| Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_themes/index.html,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-08-08 20:16:12 $
|
||||
| $Author: e107steved $
|
||||
+-----------------------------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// Parameters available: $line, $file, $message
|
||||
|
||||
|
||||
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>\n";
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n";
|
||||
echo "<html xmlns='http://www.w3.org/1999/xhtml'".(defined("TEXTDIRECTION") ? " dir='".TEXTDIRECTION."'" : "").(defined("CORE_LC") ? " xml:lang=\"".CORE_LC."\"" : "").">\n";
|
||||
echo "<head>
|
||||
<title>".LAN_ERROR_43."</title>
|
||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
||||
<meta http-equiv='content-style-type' content='text/css' />
|
||||
<meta http-equiv='content-language' content='en' />
|
||||
</head>\n
|
||||
<body>\n
|
||||
<div id='bodytext'>";
|
||||
if (is_readable(e_IMAGE.'logo.png'))
|
||||
{
|
||||
echo "<img src='".e_IMAGE_ABS.'logo.png'."' alt='".LAN_ERROR_44."' />";
|
||||
}
|
||||
echo "<div style='text-align:center; font: 14px verdana, tahoma, arial, helvetica, sans-serif;'>";
|
||||
echo LAN_ERROR_38.'<br />';
|
||||
echo LAN_ERROR_39.'<br />';
|
||||
echo LAN_ERROR_40.'<br /><br /><br /></div>';
|
||||
echo "<div style='text-align:center; font: 12px verdana, tahoma, arial, helvetica, sans-serif;'>";
|
||||
echo LAN_ERROR_41.'<br />';
|
||||
echo "<b>CRITICAL_ERROR: </b><br />Line {$line} {$file}<br />
|
||||
<br />".LAN_ERROR_42.$message."</div>\n";
|
||||
echo "</div></body>\n</html>";
|
||||
|
||||
?>
|
47
e107_themes/_blank/index.html
Normal file
47
e107_themes/_blank/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------------------------+
|
||||
| e107 website system : http://e107.org
|
||||
| Steve Dunstan 2001-2002 : jalist@e107.org
|
||||
| Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_themes/index.html,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-08-08 20:16:12 $
|
||||
| $Author: e107steved $
|
||||
+-----------------------------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// Parameters available: $line, $file, $message
|
||||
|
||||
|
||||
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>\n";
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n";
|
||||
echo "<html xmlns='http://www.w3.org/1999/xhtml'".(defined("TEXTDIRECTION") ? " dir='".TEXTDIRECTION."'" : "").(defined("CORE_LC") ? " xml:lang=\"".CORE_LC."\"" : "").">\n";
|
||||
echo "<head>
|
||||
<title>".LAN_ERROR_43."</title>
|
||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
||||
<meta http-equiv='content-style-type' content='text/css' />
|
||||
<meta http-equiv='content-language' content='en' />
|
||||
</head>\n
|
||||
<body>\n
|
||||
<div id='bodytext'>";
|
||||
if (is_readable(e_IMAGE.'logo.png'))
|
||||
{
|
||||
echo "<img src='".e_IMAGE_ABS.'logo.png'."' alt='".LAN_ERROR_44."' />";
|
||||
}
|
||||
echo "<div style='text-align:center; font: 14px verdana, tahoma, arial, helvetica, sans-serif;'>";
|
||||
echo LAN_ERROR_38.'<br />';
|
||||
echo LAN_ERROR_39.'<br />';
|
||||
echo LAN_ERROR_40.'<br /><br /><br /></div>';
|
||||
echo "<div style='text-align:center; font: 12px verdana, tahoma, arial, helvetica, sans-serif;'>";
|
||||
echo LAN_ERROR_41.'<br />';
|
||||
echo "<b>CRITICAL_ERROR: </b><br />Line {$line} {$file}<br />
|
||||
<br />".LAN_ERROR_42.$message."</div>\n";
|
||||
echo "</div></body>\n</html>";
|
||||
|
||||
?>
|
@@ -1,277 +0,0 @@
|
||||
/* Right to Left StyleSheet
|
||||
* Only a few redefinitions are necessary
|
||||
* as this file is loaded after all other CSS files and other definitions
|
||||
*/
|
||||
|
||||
/* Core Formatting */
|
||||
.left {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.f-left {
|
||||
float: right
|
||||
}
|
||||
|
||||
.f-right {
|
||||
float: left
|
||||
}
|
||||
|
||||
.clear-r {
|
||||
clear: right
|
||||
}
|
||||
|
||||
.clear-l {
|
||||
clear: left
|
||||
}
|
||||
|
||||
/* RESET CSS *********************************************************************************************/
|
||||
/* Global */
|
||||
*, body {
|
||||
direction: rtl;
|
||||
text-align: right
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
|
||||
/* E107 CORE ADMIN CSS *********************************************************************************************/
|
||||
|
||||
|
||||
/******** Decorate JS */
|
||||
/* Admin List Table */
|
||||
.adminlist { border:1px solid #ddd;}
|
||||
.adminlist th { border-right: 1px solid #ddd; } /* should be OK */
|
||||
.adminlist td { border-right: 1px solid #ddd; } /* should be OK */
|
||||
|
||||
.adminlist .col-selection-cont { float:left; } /* rtl */
|
||||
.col-selection-cont .col-selection { text-align:right; margin-left:0px; left:0px;} /* rtl - TODO check margin-right */
|
||||
|
||||
/* Form elements */
|
||||
input.input-text,
|
||||
textarea,
|
||||
select, .tbox, .helpbox {
|
||||
}
|
||||
|
||||
option {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
input.radio {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 3px;
|
||||
}
|
||||
.checkbox {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
/* BBcode textareas */
|
||||
.check-block .checkbox {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 2px
|
||||
}
|
||||
|
||||
/* Related JS functionality - .autocheck together with .auto-toggle-area (see admin/image.php) */
|
||||
|
||||
/* form used for settings */
|
||||
.col-selection { text-align:right; margin-right:0px; left:0px;}
|
||||
|
||||
|
||||
/* TODO - rename it to adminprefs */
|
||||
|
||||
.adminform td { text-align: right}
|
||||
|
||||
|
||||
/* form used for content edit */
|
||||
.adminedit td { text-align: right}
|
||||
|
||||
/* Admin Info Table TODO - box model (div) */
|
||||
.admininfo td { text-align: right}
|
||||
|
||||
/* Images and avatars */
|
||||
.image-box {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/******** Prepare for Image Preview JS */
|
||||
|
||||
/******** Tabs JS */
|
||||
.admintabs ul.e-tabs li { float: right;
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 3px; }
|
||||
|
||||
/******** SyS Messages / Message text formatting */
|
||||
/* message boxes */
|
||||
.s-message { }
|
||||
|
||||
.s-message .s-message-title {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 42px; }
|
||||
|
||||
.s-message-body {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 42px; }
|
||||
|
||||
/* validate result inline message */
|
||||
|
||||
/* message text (overall) */
|
||||
|
||||
/******** Tooltip info */
|
||||
|
||||
/******** Admin Buttons */
|
||||
button {
|
||||
padding:0 0 0 10px;
|
||||
}
|
||||
button span {
|
||||
padding:0 13px 0 0;
|
||||
}
|
||||
|
||||
/*blue buttons*/
|
||||
/* TODO The following buttons probably needs treatment */
|
||||
button { background:url(images/btn_right.gif) right no-repeat; }
|
||||
button span { background:url(images/btn_left.gif) left no-repeat; }
|
||||
|
||||
button:hover,
|
||||
button:focus { background:url(images/btn_over_right.gif) right no-repeat; }
|
||||
button:hover span,
|
||||
button:focus span { background:url(images/btn_over_left.gif) left no-repeat; }
|
||||
|
||||
|
||||
button:active { background:url(images/btn_active_right.gif) right no-repeat; }
|
||||
button:active span { background:url(images/btn_active_left.gif) left no-repeat; }
|
||||
|
||||
button.delete span { background-image:url(images/btn_remove_left.gif); }
|
||||
button.delete:hover span,
|
||||
button.delete:focus span { background-image:url(images/btn_remove_over_left.gif) }
|
||||
button.delete:active span { background-image:url(images/btn_remove_active_left.gif)}
|
||||
button.delete span {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: 30px; }
|
||||
|
||||
/*default submit*/
|
||||
button.update span { background-image:url(images/btn_update_left.gif); }
|
||||
button.update:hover span,
|
||||
button.update:focus span { background-image:url(images/btn_update_over_left.gif)}
|
||||
button.update:active span { background-image:url(images/btn_update_active_left.gif)}
|
||||
button.update span {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: 30px; }
|
||||
|
||||
button.create span {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: 30px; }
|
||||
|
||||
button.edit span {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: 30px; }
|
||||
|
||||
|
||||
.buttons-bar button {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 10px; }
|
||||
.buttons-bar button.f-right {
|
||||
/* reset right */
|
||||
padding-right: 0;
|
||||
/* add left */
|
||||
padding-left: 0px; }
|
||||
|
||||
/* Actions (adminlist) - input type image */
|
||||
|
||||
/********** Page Loading Status default style */
|
||||
#loading-mask .loader {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: -100px;
|
||||
|
||||
/*FIXME left: 50%; */
|
||||
left:auto;
|
||||
right: 50%;
|
||||
}
|
||||
|
||||
/********** Element Loading Status default style */
|
||||
|
||||
/********** Docs */
|
||||
#docs-list { padding: 10px; }
|
||||
#docs-list .qitem { padding-right: 10px; } /* something to do? */
|
||||
|
||||
.docs-item .qitem,
|
||||
.docs-item .aitem,
|
||||
.docs-item .gotop { padding-left: 10px; } /* something to do? */
|
||||
|
||||
|
||||
/********** Misc */
|
||||
|
||||
|
||||
/*******************************************************************************************************************/
|
||||
|
||||
|
||||
/* THEME SPECIFIC CSS *********************************************************************************************/
|
||||
/******** Page Base */
|
||||
|
||||
/******** Layout */
|
||||
.col-main { padding: 0 0 0 15px;}
|
||||
|
||||
/******** Horizontal navigation ADMIN_NAV_ALT */
|
||||
|
||||
/******** Side Navigation
|
||||
- Admin Navigation
|
||||
- Plugin Navigation
|
||||
*/
|
||||
|
||||
|
||||
/******** Block Elements */
|
||||
|
||||
|
||||
|
||||
/***** Admin Info Panel Buttons **/
|
||||
|
||||
.core-mainpanel-block { float:right; }
|
||||
|
||||
/*****************************/
|
||||
|
||||
|
||||
#core-admin-log-maintenance button {
|
||||
/* reset left */
|
||||
padding-left: 0;
|
||||
/* add right */
|
||||
padding-right: 10px; }
|
||||
|
||||
#core-frontpage-edit-home { float: right; }
|
||||
#core-frontpage-edit-post-login { float: right; }
|
||||
|
||||
#core-frontpage-edit-post-login .adminlist { float: left; }
|
@@ -369,5 +369,52 @@ $FOOTER['marketing-narrow'] = '
|
||||
*/
|
||||
|
||||
|
||||
$NEWSLISTSTYLE = "
|
||||
\n\n<!-- New List -->\n\n
|
||||
|
||||
<table class='newsboxes' cellpadding='0' cellspacing='0' style='border-top:1px solid black;width:100%'>
|
||||
|
||||
<tr><td style='padding:4px;width:20px;vertical-align:top'>
|
||||
{NEWSCATICON}
|
||||
</td><td style='padding:4px;vertical-align:top'>
|
||||
|
||||
{NEWSTITLELINK}
|
||||
<br />
|
||||
{NEWSSUMMARY}
|
||||
</td>
|
||||
<td style='padding:4px;text-align:right'>
|
||||
{NEWSTHUMBNAIL}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
\n\n<!-- End News List -->\n\n
|
||||
"
|
||||
|
||||
;
|
||||
|
||||
|
||||
$NEWSCAT = "\n\n\n\n<!-- News Category -->\n\n\n\n
|
||||
<div style='padding:2px;padding-bottom:12px'>
|
||||
<div class='newscat_caption'>
|
||||
{NEWSCATEGORY}
|
||||
</div>
|
||||
<div style='width:100%;text-align:left'>
|
||||
{NEWSCAT_ITEM}
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
|
||||
$NEWSCAT_ITEM = "\n\n\n\n<!-- News Category Item -->\n\n\n\n
|
||||
<div style='width:100%;display:block'>
|
||||
<table style='width:100%'>
|
||||
<tr><td style='width:2px;vertical-align:middle'>• </td>
|
||||
<td style='text-align:left;height:10px'>
|
||||
{NEWSTITLELINK}
|
||||
</td></tr></table></div>
|
||||
";
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user