mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
initial commit of bootstrap admin theme
This commit is contained in:
parent
ec8a7195d5
commit
c672418852
361
e107_themes/bootstrap/admin_template.php
Normal file
361
e107_themes/bootstrap/admin_template.php
Normal file
@ -0,0 +1,361 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Admin template - _blank theme
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_themes/_blank/admin_template.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit(); }
|
||||
|
||||
define("ADLINK_COLS",5);
|
||||
|
||||
|
||||
// include_lan(e_THEME."_blank/languages/".e_LANGUAGE.".php");
|
||||
|
||||
|
||||
|
||||
$E_ADMIN_NAVIGATION['start'] = '<ul class="nav">';
|
||||
|
||||
$E_ADMIN_NAVIGATION['button'] = '
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" id="{SUB_ID}" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" >
|
||||
{LINK_TEXT}
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
|
||||
|
||||
$E_ADMIN_NAVIGATION['button_active'] = '
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" id="{SUB_ID}" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}">
|
||||
{LINK_TEXT}
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
|
||||
$E_ADMIN_NAVIGATION['button_other'] = '
|
||||
<li>
|
||||
<a id="{SUB_ID}" role="button" href="{LINK_URL}" >
|
||||
{LINK_TEXT}
|
||||
</a>
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['start_sub'] = '
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="{SUB_ID}">
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['start_other_sub'] = '
|
||||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="{SUB_ID}">
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['button_sub'] = '
|
||||
<li>
|
||||
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_NAVIGATION['button_active_sub'] = '
|
||||
<li class="active">
|
||||
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['end_sub'] = '</ul>';
|
||||
|
||||
$E_ADMIN_NAVIGATION['end'] = '</ul>';
|
||||
|
||||
/*
|
||||
<div class="admin-navigation">
|
||||
<div id="nav">{ADMIN_NAVIGATION}</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
</div>
|
||||
*/
|
||||
|
||||
|
||||
$ADMIN_HEADER = '<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<a class="brand" href="#"><img src="'.e_IMAGE_ABS.'e107_icon_32.png" /> e107 Admin</a>
|
||||
<div class="nav-collapse collapse">
|
||||
<div class="dropdown nav pull-right navbar-text ">
|
||||
|
||||
{ADMIN_NAVIGATION=home}
|
||||
{ADMIN_NAVIGATION=language}
|
||||
{ADMIN_NAVIGATION=logout}
|
||||
</div>
|
||||
|
||||
<div class="dropdown nav">
|
||||
{ADMIN_NAVIGATION}
|
||||
|
||||
<!--
|
||||
<ul class="nav" role="navigation">
|
||||
<li class="dropdown">
|
||||
<a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
|
||||
<li><a href="http://google.com">Action</a></li>
|
||||
<li><a href="#anotherAction">Another action</a></li>
|
||||
<li><a href="#">Something else here</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
|
||||
<li><a tabindex="-1" href="#">Action</a></li>
|
||||
<li><a tabindex="-1" href="#">Another action</a></li>
|
||||
<li><a tabindex="-1" href="#">Something else here</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a tabindex="-1" href="#">Separated link</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
|
||||
|
||||
</div>
|
||||
</div><!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
$ADMIN_HEADER .= '<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
{SETSTYLE=admin_menu}
|
||||
|
||||
{ADMIN_MENU}
|
||||
{ADMIN_MENUMANAGER}
|
||||
{SETSTYLE=site_info}
|
||||
|
||||
{ADMIN_PWORD}
|
||||
{ADMIN_HELP}
|
||||
{ADMIN_STATUS=request}
|
||||
{ADMIN_LATEST=request}
|
||||
{ADMIN_LOG=request}
|
||||
{ADMIN_MSG}
|
||||
{ADMIN_PLUGINS}
|
||||
{ADMIN_UPDATE}
|
||||
|
||||
{SETSTYLE=site_info}
|
||||
{ADMIN_SITEINFO}
|
||||
{SETSTYLE=none}
|
||||
|
||||
</div>
|
||||
<div class="span10">';
|
||||
|
||||
|
||||
$ADMIN_FOOTER = '
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<hr>
|
||||
|
||||
<footer>
|
||||
<p>{ADMIN_CREDITS}</p>
|
||||
</footer>
|
||||
|
||||
</div><!--/.fluid-container-->';
|
||||
|
||||
|
||||
|
||||
//{FS_ADMIN_ALT_NAV}
|
||||
/*
|
||||
$ADMIN_HEADER = "
|
||||
<div class='admin-wrapper'>
|
||||
<div class='admin-header'>
|
||||
<div class='admin-header-content'>
|
||||
<div class='f-right'><!-- -->{ADMIN_LANG=nobutton&nomenu}</div>
|
||||
{ADMIN_LOGO}
|
||||
{ADMIN_LOGGED}
|
||||
{ADMIN_SEL_LAN}
|
||||
|
||||
</div>
|
||||
<div style='height: 20px;'><!-- --></div>
|
||||
<div class='admin-navigation'>
|
||||
<div id='nav'>{ADMIN_NAVIGATION}</div>
|
||||
<div class='clear'><!-- --></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='admin-page-body'>
|
||||
<table class='main-table'>
|
||||
<tr>
|
||||
|
||||
<td class='col-left'>
|
||||
|
||||
{SETSTYLE=admin_menu}
|
||||
{ADMIN_MENU}
|
||||
{ADMIN_MENUMANAGER}
|
||||
{ADMIN_PRESET}
|
||||
{ADMIN_LANG}
|
||||
{SETSTYLE=none}
|
||||
{ADMIN_PWORD}
|
||||
{ADMIN_STATUS=request}
|
||||
{ADMIN_LATEST=request}
|
||||
{ADMIN_LOG=request}
|
||||
{ADMIN_MSG}
|
||||
{ADMIN_PLUGINS}
|
||||
{ADMIN_UPDATE}
|
||||
|
||||
{SETSTYLE=site_info}
|
||||
{ADMIN_SITEINFO}
|
||||
{ADMIN_HELP}
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class='col-main'>
|
||||
<div class='inner-wrapper'>
|
||||
{SETSTYLE=admin_content}
|
||||
";
|
||||
*/
|
||||
/*
|
||||
{SETSTYLE=admin_menu}
|
||||
<!--
|
||||
{ADMIN_NAV}
|
||||
-->
|
||||
{ADMIN_LANG}
|
||||
|
||||
{ADMIN_SITEINFO}
|
||||
|
||||
{ADMIN_DOCS}
|
||||
*/
|
||||
|
||||
/*
|
||||
$ADMIN_FOOTER = "
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<!--
|
||||
<td class='col-right'>
|
||||
<div class='col-right'>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class='admin-footer'>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
*/
|
||||
/* NEW ADMIN MENU TEMPLATE
|
||||
* see function e_admin_menu() in e107_admin/header.php
|
||||
*/
|
||||
$E_ADMIN_MENU['start'] = '
|
||||
<ul class="plugin-navigation nav nav-list">
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['button'] = '
|
||||
<li>
|
||||
<a class="link{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_MENU['button_active'] = '
|
||||
<li class="active">
|
||||
<a class="link-active{LINK_CLASS}" href="{LINK_URL}"{ID}{ONCLICK}> {LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['start_sub'] = '
|
||||
<ul class="plugin-navigation-sub{SUB_CLASS}"{SUB_ID}>
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['button_sub'] = '
|
||||
<li>
|
||||
<a class="link" href="{LINK_URL}"> {LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_MENU['button_active_sub'] = '
|
||||
<li>
|
||||
<a class="link-active" href="{LINK_URL}"> {LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['end_sub'] = '
|
||||
</ul>
|
||||
';
|
||||
|
||||
$E_ADMIN_MENU['end'] = '
|
||||
</ul>
|
||||
';
|
||||
|
||||
/* NEW ADMIN SLIDE DOWN MENU TEMPLATE
|
||||
* see function admin_navigation() in e107_files/shortcodes/admin_navigation.php
|
||||
* TODO move it together with menu.css/menu.js to the theme templates/e107_files folder (default menu render)
|
||||
*/
|
||||
|
||||
/*
|
||||
$E_ADMIN_NAVIGATION['start'] = '
|
||||
<ul id="nav nav-links">
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['button'] = '
|
||||
<li>
|
||||
<a class="menuButton" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_NAVIGATION['button_active'] = '
|
||||
<li>
|
||||
<a class="menuButton active" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['start_sub'] = '
|
||||
<ul class="menu"{SUB_ID}>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['button_sub'] = '
|
||||
<li>
|
||||
<a class="menuItem{SUB_CLASS}" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
$E_ADMIN_NAVIGATION['button_active_sub'] = '
|
||||
<li>
|
||||
<a class="menuItem{SUB_CLASS}" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
|
||||
{SUB_MENU}
|
||||
</li>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['end_sub'] = '
|
||||
</ul>
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['end'] = '
|
||||
</ul>
|
||||
';
|
||||
|
||||
*/
|
||||
?>
|
218
e107_themes/bootstrap/admin_theme.php
Normal file
218
e107_themes/bootstrap/admin_theme.php
Normal file
@ -0,0 +1,218 @@
|
||||
<?php
|
||||
if ( ! defined('e107_INIT')) { exit(); }
|
||||
|
||||
define('STANDARDS_MODE', TRUE);
|
||||
|
||||
// include_lan(e_THEME."_blank/languages/".e_LANGUAGE.".php");
|
||||
|
||||
e107::js('theme','js/bootstrap.js');
|
||||
e107::css('theme','css/bootstrap.css');
|
||||
e107::css('theme','css/bootstrap-responsive.css');
|
||||
e107::css('theme','ie_all.css',null,'all',"<!--[if IE]>","<![endif]-->");
|
||||
// e107::js("inline","$('.dropdown-toggle').dropdown();");
|
||||
|
||||
// e107::js("inline","$('.dropdown-toggle').toggle('slow');");
|
||||
|
||||
|
||||
|
||||
if(defined('TEXTDIRECTION') && file_exists(THEME.'/menu/menu_'.strtolower(TEXTDIRECTION).'.css'))
|
||||
{
|
||||
e107::css('theme','menu/menu_'.strtolower(TEXTDIRECTION).'.css');
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::css('theme','menu/menu.css');
|
||||
}
|
||||
|
||||
|
||||
$register_sc[]='FS_ADMIN_ALT_NAV';
|
||||
$no_core_css = TRUE;
|
||||
|
||||
|
||||
// define("ADMIN_TRUE_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/true_32.png' alt='' />");
|
||||
// define("ADMIN_TRUE_ICON_PATH", e_IMAGE."admin_images/true_32.png");
|
||||
|
||||
// define("ADMIN_FALSE_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/false_32.png' alt='' />");
|
||||
// define("ADMIN_FALSE_ICON_PATH", e_IMAGE."admin_images/false_32.png");
|
||||
|
||||
define("ADMIN_EDIT_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/edit_32.png' alt='' title='".LAN_EDIT."' />");
|
||||
define("ADMIN_EDIT_ICON_PATH", e_IMAGE."admin_images/edit_32.png");
|
||||
|
||||
define("ADMIN_DELETE_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/delete_32.png' alt='' title='".LAN_DELETE."' />");
|
||||
define("ADMIN_DELETE_ICON_PATH", e_IMAGE."admin_images/delete_32.png");
|
||||
|
||||
|
||||
define("ADMIN_WARNING_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/warning_32.png' alt='' />");
|
||||
define("ADMIN_WARNING_ICON_PATH", e_IMAGE."admin_images/warning_32.png");
|
||||
|
||||
define("ADMIN_ADD_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/add_32.png' alt='' />");
|
||||
define("ADMIN_ADD_ICON_PATH", e_IMAGE."admin_images/add_32.png");
|
||||
|
||||
define("ADMIN_INFO_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/info_32.png' alt='' />");
|
||||
define("ADMIN_INFO_ICON_PATH", e_IMAGE."admin_images/info_32.png");
|
||||
|
||||
define("ADMIN_CONFIGURE_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/configure_32.png' alt='' />");
|
||||
define("ADMIN_CONFIGURE_ICON_PATH", e_IMAGE."admin_images/configure_32.png");
|
||||
|
||||
define("ADMIN_VIEW_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/search_32.png' alt='' />");
|
||||
define("ADMIN_VIEW_ICON_PATH", e_IMAGE."admin_images/admin_images/search_32.png");
|
||||
|
||||
define("ADMIN_URL_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/forums_32.png' alt='' />");
|
||||
define("ADMIN_URL_ICON_PATH", e_IMAGE."admin_images/forums_32.png");
|
||||
|
||||
define("ADMIN_INSTALLPLUGIN_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/plugin_install_32.png' alt='' />");
|
||||
define("ADMIN_INSTALLPLUGIN_ICON_PATH", e_IMAGE."admin_images/plugin_install_32.png");
|
||||
|
||||
define("ADMIN_UNINSTALLPLUGIN_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/plugin_uninstall_32.png' alt='' />");
|
||||
define("ADMIN_UNINSTALLPLUGIN_ICON_PATH", e_IMAGE."admin_images/plugin_unstall_32.png");
|
||||
|
||||
define("ADMIN_UPGRADEPLUGIN_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/up_32.png' alt='' />");
|
||||
define("ADMIN_UPGRADEPLUGIN_ICON_PATH", e_IMAGE."admin_images/up_32.png");
|
||||
|
||||
define("ADMIN_UP_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/up_32.png' alt='' title='".LAN_DELETE."' />");
|
||||
define("ADMIN_UP_ICON_PATH", e_IMAGE."admin_images/up_32.png");
|
||||
|
||||
define("ADMIN_DOWN_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/down_32.png' alt='' title='".LAN_DELETE."' />");
|
||||
define("ADMIN_DOWN_ICON_PATH", e_IMAGE."admin_images/down_32.png");
|
||||
|
||||
define("ADMIN_EXECUTE_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/execute_32.png' alt='' title='".LAN_EXECUTE."' />");
|
||||
define("ADMIN_EXECUTE_ICON_PATH", e_IMAGE."admin_images/execute_32.png");
|
||||
|
||||
define("ADMIN_SORT_ICON", "<img class='icon action S32' src='".e_IMAGE_ABS."admin_images/sort_32.png' alt='' title='Re-Sort' />");
|
||||
define("ADMIN_SORT_ICON_PATH", e_IMAGE."admin_images/sort_32.png");
|
||||
|
||||
|
||||
function theme_head() {
|
||||
|
||||
$ret = '
|
||||
<!--[if lte IE 7]>
|
||||
<script type="text/javascript" src="'.THEME_ABS.'menu/menu.js"></script>
|
||||
<![endif]-->
|
||||
';
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function tablestyle($caption, $text, $mode)
|
||||
{
|
||||
global $style;
|
||||
|
||||
$class = '';
|
||||
|
||||
if(is_string($mode) && $mode == 'admin_help') $class = ' '.str_replace('_', '-', $mode);
|
||||
|
||||
if($mode == 'core-infopanel_mye107' || $mode == 'core-infopanel_news' || $mode == 'core-infopanel_online')
|
||||
{
|
||||
echo '
|
||||
<div class="well sidebar-nav span6" style="padding:10px">
|
||||
<div class="nav-header">'.$caption.'</div>
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
return;
|
||||
}
|
||||
|
||||
if($mode == 'core-infopanel_latest' || $mode == 'core-infopanel_status')
|
||||
{
|
||||
echo '
|
||||
<div class="well sidebar-nav span3" style="padding:10px; min-height:200px">
|
||||
<div class="nav-header">'.$caption.'</div>
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
switch(varset($style, 'admin_content')) {
|
||||
|
||||
case 'admin_menu' :
|
||||
echo '
|
||||
<div class="well sidebar-nav" style="padding:10px">
|
||||
<div class="nav-header">'.$caption.'</div>
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
case 'site_info' :
|
||||
echo '
|
||||
<div class="well sidebar-nav" style="padding:10px">
|
||||
<div class="nav-header">'.$caption.'</div>
|
||||
<p>
|
||||
'.$text.'
|
||||
</p>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
case 'admin_content':
|
||||
echo '
|
||||
<div class="block">
|
||||
<h2 class="caption">'.$caption.'</h2>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
echo '
|
||||
<div class="block">
|
||||
<h4>'.$caption.'</h4>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$HEADER = '';
|
||||
$FOOTER = '';
|
||||
|
||||
define('ICONMAIL', 'email_16.png');
|
||||
define('ICONPRINT', 'print_16.png');
|
||||
define('ICONSTYLE', 'border: 0px');
|
||||
define('COMMENTLINK', LAN_THEME_2);
|
||||
define('COMMENTOFFSTRING', LAN_THEME_1);
|
||||
define('PRE_EXTENDEDSTRING', '<br /><br />');
|
||||
define('EXTENDEDSTRING', LAN_THEME_3);
|
||||
define('POST_EXTENDEDSTRING', '<br />');
|
||||
define('TRACKBACKSTRING', LAN_THEME_4);
|
||||
define('TRACKBACKBEFORESTRING', ' | ');
|
||||
|
||||
$sc_style['NEWSIMAGE']['pre'] = '<div style="float: left; margin-right: 15px">';
|
||||
$sc_style['NEWSIMAGE']['post'] = '</div>';
|
||||
$sc_style['NEWSICON']['pre'] = '<div style="float: left; margin-right: 15px">';
|
||||
$sc_style['NEWSICON']['post'] = '</div>';
|
||||
|
||||
$NEWSSTYLE = '
|
||||
<div class="newsItem clear">
|
||||
<h4>{NEWSTITLE}</h4>
|
||||
<span class="newsAuthor">{NEWSAUTHOR}</span>
|
||||
<span class="newsDate">{NEWSDATE}</span>
|
||||
<div style="clear: both; margin-bottom: 5px;"><!-- --></div>
|
||||
{NEWSIMAGE}
|
||||
{NEWSBODY}
|
||||
{EXTENDED}
|
||||
{TRACKBACK}
|
||||
<div style="clear: both; margin-bottom: 5px;"><!-- --></div>
|
||||
<table class="newsComments" cellpadding="0" cellspacing="0" style="border: 0px none; width: 100%" >
|
||||
<tr>
|
||||
<td valign="middle" style="text-align: left">
|
||||
{NEWSCOMMENTS}
|
||||
</td>
|
||||
<td valign="middle" style="text-align: right">
|
||||
{ADMINOPTIONS}{EMAILICON}{PRINTICON}{PDFICON}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
?>
|
1088
e107_themes/bootstrap/css/bootstrap-responsive.css
vendored
Normal file
1088
e107_themes/bootstrap/css/bootstrap-responsive.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9
e107_themes/bootstrap/css/bootstrap-responsive.min.css
vendored
Normal file
9
e107_themes/bootstrap/css/bootstrap-responsive.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
5893
e107_themes/bootstrap/css/bootstrap.css
vendored
Normal file
5893
e107_themes/bootstrap/css/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9
e107_themes/bootstrap/css/bootstrap.min.css
vendored
Normal file
9
e107_themes/bootstrap/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
e107_themes/bootstrap/img/glyphicons-halflings-white.png
Normal file
BIN
e107_themes/bootstrap/img/glyphicons-halflings-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
BIN
e107_themes/bootstrap/img/glyphicons-halflings.png
Normal file
BIN
e107_themes/bootstrap/img/glyphicons-halflings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
2025
e107_themes/bootstrap/js/bootstrap.js
vendored
Normal file
2025
e107_themes/bootstrap/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
e107_themes/bootstrap/js/bootstrap.min.js
vendored
Normal file
6
e107_themes/bootstrap/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
175
e107_themes/bootstrap/style.css
Normal file
175
e107_themes/bootstrap/style.css
Normal file
@ -0,0 +1,175 @@
|
||||
|
||||
/* E107 CORE CSS *********************************************************************************************/
|
||||
.searchhighlight{text-decoration: underline; color:#FF0000; font-weight:bold; }
|
||||
|
||||
/*
|
||||
* e107 v0.800 - new class definitions
|
||||
*/
|
||||
|
||||
/* Core Formatting */
|
||||
.left { text-align: left }
|
||||
.right { text-align: right }
|
||||
.center { text-align: center }
|
||||
.f-left { float: left }
|
||||
.f-right { float: right }
|
||||
.top { vertical-align: top }
|
||||
.middle { vertical-align: middle }
|
||||
.bottom { vertical-align: bottom }
|
||||
.clear { clear: both }
|
||||
.clear-l { clear: right }
|
||||
.clear-r { clear: left }
|
||||
.smalltext { font-size: 11px; }
|
||||
.nowrap { white-space:nowrap; }
|
||||
|
||||
/* Core Icons */
|
||||
img.icon { vertical-align: middle; border: 0 }
|
||||
img.icon.list { margin: 0px 5px 5px 0px }
|
||||
img.icon.action { }
|
||||
img.S16 { width: 16px; height: 16px }
|
||||
img.S32 { width: 32px; height: 32px }
|
||||
img.S64 { width: 64px; height: 64px }
|
||||
img.S128 { width: 128px; height: 128px }
|
||||
/*******************************************************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Lists */
|
||||
ul,ol { list-style:none; }
|
||||
|
||||
/* Tools */
|
||||
/*.no-display { display:none; }*/
|
||||
.no-margin { margin:0 !important; }
|
||||
.no-padding { padding:0 !important; }
|
||||
.no-bg { background:none !important; }
|
||||
.clear { clear: both; }
|
||||
|
||||
pre {
|
||||
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
/* width: 99%; */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
}
|
||||
|
||||
/********** Page Loading Status default style */
|
||||
#loading-mask { color: #556B2F; font-size: 1.2em; font-weight:bold; position:absolute; text-align: center; padding: 0; margin: 0; background-color: transparent; }
|
||||
#loading-mask .loader { position: fixed; top: 40%; left: 50%; width: 200px; text-align: center; background: #F0F9E3 none repeat scroll 0 0; border: 2px solid #556B2F; font-weight: bold; padding: 10px 5px; margin-left: -100px; margin-top: 0; }
|
||||
#loading-mask img { margin: 10px auto; }
|
||||
|
||||
/********** Element Loading Status default style */
|
||||
.element-loading-mask { background-repeat: no-repeat; background-position: 50% 50%; background-color: #f5f5f5; }
|
||||
|
||||
/********** Auto complete default style */
|
||||
div.e-autocomplete {
|
||||
position:absolute;
|
||||
width:250px;
|
||||
background-color:white;
|
||||
border:1px solid #c0c0c0;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
div.e-autocomplete ul {
|
||||
list-style-type:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
font-weight: bold; font-size: 11px
|
||||
}
|
||||
div.e-autocomplete ul li.selected { background-color: #f5f5f5;}
|
||||
div.e-autocomplete ul li {
|
||||
list-style-type:none;
|
||||
display:block;
|
||||
margin:0;
|
||||
padding: 5px;
|
||||
cursor:pointer;
|
||||
|
||||
}
|
||||
div.e-autocomplete ul li span.informal { font-weight: normal; font-size: 9px}
|
||||
|
||||
/******** Tabs JS */
|
||||
ul.e-tabs { border-bottom: 1px solid #DDDDDD; height: 31px; }
|
||||
ul.e-tabs li { border: 1px solid #DDDDDD; display: block; float: left; line-height: 30px; padding: 0px 7px; margin-right: 3px; background-color: #F9F9F9 }
|
||||
.admintabs ul.e-tabs li.active { border-bottom: 1px solid #FFFFFF; background-color: #FFFFFF}
|
||||
|
||||
/********** Misc */
|
||||
.e-pointer { cursor: pointer; } /* Pointer Hand */
|
||||
.expand-container { padding: 10px; } /* Block with expandable items */
|
||||
.nextprev-bar { clear: both; padding: 5px; font-size: 14px; margin: 5px; border:1px solid #ddd; } /* Page NextPrev navigation block */
|
||||
|
||||
|
||||
/******** SyS Messages / Message text formatting */
|
||||
/* message boxes */
|
||||
.s-message { }
|
||||
|
||||
.s-message div.info,
|
||||
.s-message div.error,
|
||||
.s-message div.success,
|
||||
.s-message div.debug,
|
||||
.s-message div.warning { padding: 5px; margin-bottom: 10px; }
|
||||
|
||||
|
||||
.s-message div.info { background-color:#C1E0FF; border: 1px solid #3399FF; }
|
||||
.s-message div.error { background-color:#FFCECE; border: 1px solid #CC0000; }
|
||||
.s-message div.success { background-color:#DFFFDF; border: 1px solid #009900; }
|
||||
.s-message div.warning { background-color:#FFFFD5; border: 1px solid #FFCC00; }
|
||||
.s-message div.debug { background-color:#FFFFFF; border: 1px solid #EAEAEA; }
|
||||
|
||||
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; font-size: 14px; font-weight: bold; line-height: 32px; }
|
||||
|
||||
.s-message div.info .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
.s-message div.error .s-message-title { background-image: url(images/messagebox_critical.png); }
|
||||
.s-message div.success .s-message-title { background-image: url(images/ok.png); }
|
||||
.s-message div.warning .s-message-title { background-image: url(images/messagebox_warning.png); }
|
||||
.s-message div.debug .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
|
||||
/* message text (overall) */
|
||||
.warning { color: #FF6600 }
|
||||
.success { color: green; }
|
||||
.error { color: #FF0000 }
|
||||
.info {}
|
||||
.required { color:red }
|
||||
|
||||
/* THEME SPECIFIC CSS *********************************************************************************************/
|
||||
/******** Page Base */
|
||||
.wrapper { width: 100%; }
|
||||
.header { padding: 20px 15px 0; }
|
||||
.header-content { border: 1px solid #DDDDDD}
|
||||
.page-body { padding: 20px 15px 0; }
|
||||
.footer {}
|
||||
legend { font-size: 14px; font-weight: bold; padding: 5px; }
|
||||
|
||||
/******** Block Elements */
|
||||
.block { border: 1px solid #DDDDDD; margin-bottom: 10px;}
|
||||
.block-text { padding: 10px 10px 10px; }
|
||||
.block h1.caption { padding: 5px 10px 5px; vertical-align: middle; }
|
||||
.block h2.caption, .block h4.caption { padding: 5px 10px 5px; border-bottom: 1px solid #DDDDDD; }
|
||||
|
||||
/******** Horizontal navigation ADMIN_NAV_ALT */
|
||||
.navigation { border: 1px solid #DDDDDD;}
|
||||
|
||||
/******** Layout */
|
||||
.main-table { width: 100%; border: 0 none; }
|
||||
.col-left { width: 220px; }
|
||||
.col-right { width: 220px;}
|
||||
.col-main { padding: 0 15px 0 15px;}
|
||||
.inner-wrapper { margin: 0 5px }
|
||||
|
||||
/******** Horizontal navigation ADMIN_NAV_ALT */
|
||||
.navigation { border: 1px solid #DDDDDD;}
|
||||
|
||||
/******** FEATUREBOX PLUGIN */
|
||||
#featurebox-ajax-container { display: block }
|
||||
#featurebox-ajax-container img { padding: 1px; margin: 5px; border: 1px solid #DDDDDD }
|
||||
|
||||
div.featurebox-nav { text-align: right; margin-right: 5px }
|
||||
div.featurebox-nav a.featurebox-nav-link { }
|
||||
div.featurebox-nav a.featurebox-nav-link.active,
|
||||
div.featurebox-nav a.featurebox-nav-link.active:hover { text-decoration: none; color: #000 }
|
||||
|
||||
div.featurebox-nav a.featurebox-nav-next,
|
||||
div.featurebox-nav a.featurebox-nav-next:hover,
|
||||
div.featurebox-nav a.featurebox-nav-prev,
|
||||
div.featurebox-nav a.featurebox-nav-prev:hover { text-decoration: none; font-size: 16px }
|
||||
|
||||
|
162
e107_themes/bootstrap/theme.php
Normal file
162
e107_themes/bootstrap/theme.php
Normal file
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
if ( ! defined('e107_INIT')) { exit(); }
|
||||
include_lan(e_THEME."_blank/languages/".e_LANGUAGE.".php");
|
||||
|
||||
// TODO theme.xml - add them to jslib/php source
|
||||
e107::getJs()->requireCoreLib('core/decorate.js')
|
||||
->requireCoreLib('core/tabs.js');
|
||||
|
||||
//$register_sc[]='FS_ADMIN_ALT_NAV';
|
||||
$no_core_css = TRUE;
|
||||
|
||||
define("STANDARDS_MODE",TRUE);
|
||||
|
||||
// TODO - JS/CSS handling via JSManager
|
||||
function theme_head() {
|
||||
|
||||
$theme_pref = e107::getThemePref();
|
||||
|
||||
$ret = '';
|
||||
$ret .= '
|
||||
<link rel="stylesheet" href="'.THEME_ABS.'menu/menu.css" type="text/css" media="all" />
|
||||
<!--[if IE]>
|
||||
<link rel="stylesheet" href="'.THEME_ABS.'ie_all.css" type="text/css" media="all" />
|
||||
<![endif]-->
|
||||
<!--[if lte IE 7]>
|
||||
<script type="text/javascript" src="'.THEME_ABS.'menu/menu.js"></script>
|
||||
<![endif]-->
|
||||
';
|
||||
|
||||
$ret .= "
|
||||
<script type='text/javascript'>
|
||||
/**
|
||||
* Decorate all tables having e-list class
|
||||
*/
|
||||
e107.runOnLoad( function() {
|
||||
\$\$('table.e-list').each(function(element) {
|
||||
e107Utils.Decorate.table(element, { tr_td: 'first last' });
|
||||
});
|
||||
}, document, true);
|
||||
|
||||
</script>";
|
||||
|
||||
if(THEME_LAYOUT == "alternate") // as matched by $HEADER['alternate'];
|
||||
{
|
||||
$ret .= "<!-- Include Something --> ";
|
||||
}
|
||||
|
||||
if($theme_pref['_blank_example'] == 3) // Pref from admin -> thememanager.
|
||||
{
|
||||
$ret .= "<!-- Include Something Else --> ";
|
||||
}
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function tablestyle($caption, $text, $mod)
|
||||
{
|
||||
global $style;
|
||||
|
||||
$type = $style;
|
||||
if(empty($caption))
|
||||
{
|
||||
$type = 'box';
|
||||
}
|
||||
|
||||
switch($type)
|
||||
{
|
||||
|
||||
case 'menu' :
|
||||
echo '
|
||||
<div class="block">
|
||||
<h4 class="caption">'.$caption.'</h4>
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
case 'box':
|
||||
echo '
|
||||
<div class="block">
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
echo '
|
||||
<div class="block">
|
||||
<h1 class="caption">'.$caption.'</h1>
|
||||
<div class="block-text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$HEADER['default'] = '
|
||||
<div class="wrapper">
|
||||
<div class="header">
|
||||
<div class="header-content">
|
||||
BLANK HEADER
|
||||
</div>
|
||||
<div style="height: 20px;"><!-- --></div>
|
||||
<div class="navigation">
|
||||
<div id="main-nav">{SITELINKS}</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<table class="main-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
|
||||
<td class="col-left">
|
||||
{SETSTYLE=menu}
|
||||
{MENU=1}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="col-main">
|
||||
<div class="inner-wrapper">
|
||||
{SETSTYLE=content}
|
||||
{FEATUREBOX|default=notablestyle}
|
||||
{FEATUREBOX|dynamic=notablestyle}
|
||||
';
|
||||
$FOOTER['default'] = '
|
||||
{FEATUREBOX|tabs=notablestyle&cols='.e107::getThemePref('fb_tabs_cols', 1).'}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="col-right">
|
||||
<div class="col-right">
|
||||
{SETSTYLE=menu}
|
||||
{MENU=2}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
$HEADER['alternate'] = '';
|
||||
$FOOTER['alternate'] = '';
|
||||
|
||||
/*
|
||||
|
||||
$CUSTOMHEADER, CUSTOMFOOTER and $CUSTOMPAGES are deprecated.
|
||||
Default custom-pages can be assigned in theme.xml
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
?>
|
10
e107_themes/bootstrap/theme.xml
Normal file
10
e107_themes/bootstrap/theme.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<e107Theme name="bootstrap" version="1.0" date="2012-12-01" compatibility="0.8">
|
||||
<author name ="e107 Inc" email="e107inc@something.com" url="http://e107.org" />
|
||||
<description>Bootstrap e107 admin theme</description>
|
||||
<layouts>
|
||||
<layout name='default' title='2 Columns' preview='preview.jpg' previewFull='preview_full.png' >
|
||||
<custompages>usersettings.php</custompages>
|
||||
</layout>
|
||||
</layouts>
|
||||
</e107Theme>
|
Loading…
x
Reference in New Issue
Block a user