mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Sitedown shortcodes upgraded to v2.x spec. Bootstrap css added by default.
This commit is contained in:
@@ -15,23 +15,43 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
include_once(e_HANDLER.'shortcode_handler.php');
|
|
||||||
$sitedown_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
|
||||||
/*
|
|
||||||
|
|
||||||
SC_BEGIN SITEDOWN_TABLE_MAINTAINANCETEXT
|
|
||||||
global $pref,$tp;
|
class sitedown_shortcodes extends e_shortcode
|
||||||
if($pref['maintainance_text']) {
|
{
|
||||||
return $tp->toHTML($pref['maintainance_text'], TRUE, 'parse_sc', 'admin');
|
function sc_sitedown_table_maintainancetext($parm=null)
|
||||||
} else {
|
{
|
||||||
return "<b>- ".SITENAME." ".LAN_SITEDOWN_00." -</b><br /><br />".LAN_SITEDOWN_01 ;
|
$pref = e107::pref('core');
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
if(!empty($pref['maintainance_text']))
|
||||||
|
{
|
||||||
|
return $tp->toHTML($pref['maintainance_text'], TRUE, 'parse_sc', 'admin');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "<b>- ".SITENAME." ".LAN_SITEDOWN_00." -</b><br /><br />".LAN_SITEDOWN_01 ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_sitedown_table_pagename($parm=null)
|
||||||
|
{
|
||||||
|
return PAGE_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_sitedown_theme_css($parm=null)
|
||||||
|
{
|
||||||
|
return THEME_ABS."style.css";
|
||||||
|
}
|
||||||
|
|
||||||
|
function sc_sitedown_e107_css($parm=null)
|
||||||
|
{
|
||||||
|
return e_WEB_ABS."css/e107.css";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
SC_END
|
|
||||||
|
|
||||||
|
|
||||||
SC_BEGIN SITEDOWN_TABLE_PAGENAME
|
|
||||||
return PAGE_NAME;
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
*/
|
|
||||||
?>
|
?>
|
@@ -26,19 +26,26 @@ if(!isset($SITEDOWN_TABLE))
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
|
||||||
<meta http-equiv='content-style-type' content='text/css' />\n
|
<meta http-equiv='content-style-type' content='text/css' />\n
|
||||||
<link rel='stylesheet' href='".THEME_ABS."style.css' type='text/css' media='all' />
|
<link rel='stylesheet' href='{SITEDOWN_E107_CSS}' type='text/css' media='all' />
|
||||||
|
<link rel='stylesheet' href='{SITEDOWN_THEME_CSS}' type='text/css' media='all' />
|
||||||
|
<link rel='stylesheet' media='all' property='stylesheet' type='text/css' href='http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' />
|
||||||
<link rel='stylesheet' media='all' property='stylesheet' type='text/css' href='http://netdna.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' />
|
<link rel='stylesheet' media='all' property='stylesheet' type='text/css' href='http://netdna.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' />
|
||||||
<title>{SITEDOWN_TABLE_PAGENAME}</title>
|
<title>{SITEDOWN_TABLE_PAGENAME}</title>
|
||||||
|
<style type='text/css'>
|
||||||
|
.img-responsive { display: inline }
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style='text-align:center;font-size: 14px; color: black; font-family: Tahoma, Verdana, Arial, Helvetica; text-decoration: none'>
|
<div class='container'>
|
||||||
<div style='text-align:center'>{LOGO}</div>
|
<div style='text-align:center;font-size: 14px; color: black; font-family: Tahoma, Verdana, Arial, Helvetica; text-decoration: none'>
|
||||||
<hr />
|
<div style='text-align:center'>{LOGO}</div>
|
||||||
<br />
|
<hr />
|
||||||
{SITEDOWN_TABLE_MAINTAINANCETEXT}
|
<br />
|
||||||
</div>
|
{SITEDOWN_TABLE_MAINTAINANCETEXT}
|
||||||
<div style='margin-top:100px; text-align:center'>
|
</div>
|
||||||
{XURL_ICONS: size=3x&tip-pos=bottom}
|
<div style='margin-top:100px; text-align:center'>
|
||||||
|
{XURL_ICONS: type=facebook,twitter,google-plus,github,instagram,linkedin&size=3x&tip-pos=bottom}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>";
|
</html>";
|
||||||
|
@@ -53,6 +53,7 @@ class social_shortcodes extends e_shortcode
|
|||||||
public $var;
|
public $var;
|
||||||
/**
|
/**
|
||||||
* {XURL_ICONS: size=2x}
|
* {XURL_ICONS: size=2x}
|
||||||
|
* {XURL_ICONS: type=facebook,twitter,vimeo}
|
||||||
*/
|
*/
|
||||||
function sc_xurl_icons($parm='')
|
function sc_xurl_icons($parm='')
|
||||||
{
|
{
|
||||||
@@ -76,6 +77,19 @@ class social_shortcodes extends e_shortcode
|
|||||||
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
|
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
|
||||||
$tooltipPos = vartrue($parm['tip-pos'], 'top');
|
$tooltipPos = vartrue($parm['tip-pos'], 'top');
|
||||||
|
|
||||||
|
if(!empty($parm['type']))
|
||||||
|
{
|
||||||
|
$newList = array();
|
||||||
|
$tmp = explode(",",$parm['type']);
|
||||||
|
foreach($tmp as $v)
|
||||||
|
{
|
||||||
|
$newList[$v] = $social[$v];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$social = $newList;
|
||||||
|
}
|
||||||
|
|
||||||
$text = '';
|
$text = '';
|
||||||
|
|
||||||
foreach($social as $id => $data)
|
foreach($social as $id => $data)
|
||||||
|
@@ -24,7 +24,9 @@ header('Content-type: text/html; charset=utf-8');
|
|||||||
|
|
||||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
||||||
|
|
||||||
require_once(e_CORE.'shortcodes/batch/sitedown_shortcodes.php');
|
// require_once(e_CORE.'shortcodes/batch/sitedown_shortcodes.php');
|
||||||
|
|
||||||
|
$sitedown_shortcodes= e107::getScBatch('sitedown');
|
||||||
|
|
||||||
if (!$SITEDOWN_TABLE)
|
if (!$SITEDOWN_TABLE)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user