mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
FontAwesome version update. News shortcode wrapper issue corrected.
This commit is contained in:
parent
4516bc910e
commit
1b2db4683e
@ -373,11 +373,15 @@ class news {
|
||||
|
||||
|
||||
// Retrieve batch sc object, set required vars
|
||||
|
||||
$wrapperKey = (!empty($param['template_key'])) ? 'news/'.$param['template_key'].'/item' : 'news/view/item';
|
||||
|
||||
$sc = e107::getScBatch('news')
|
||||
->wrapper('news/view/item')
|
||||
->wrapper($wrapperKey)
|
||||
->setScVar('news_item', $news)
|
||||
->setScVar('param', $param);
|
||||
|
||||
|
||||
$text = e107::getParser()->parseTemplate($NEWS_PARSE, true, $sc);
|
||||
|
||||
if ($mode == 'return')
|
||||
|
@ -116,6 +116,7 @@ $param['itemlink'] = defset('OTHERNEWS2_ITEMLINK','');
|
||||
$param['thumbnail'] = OTHERNEWS2_THUMB;
|
||||
$param['catlink'] = defset('OTHERNEWS2_CATLINK','');
|
||||
$param['caticon'] = OTHERNEWS2_CATICON;
|
||||
$param['template_key'] = 'news_menu/other2/item';
|
||||
|
||||
$style = defset('OTHERNEWS2_CELL','padding:0px;vertical-align:top');
|
||||
$nbr_cols = defset('OTHERNEWS2_COLS', 1);
|
||||
|
@ -129,6 +129,7 @@ $param['itemlink'] = defset('OTHERNEWS_ITEMLINK');
|
||||
$param['thumbnail'] = defset('OTHERNEWS_THUMB');
|
||||
$param['catlink'] = defset('OTHERNEWS_CATLINK');
|
||||
$param['caticon'] = defset('OTHERNEWS_CATICON');
|
||||
$param['template_key'] = 'news_menu/other/item';
|
||||
|
||||
$style = defset('OTHERNEWS_CELL');
|
||||
$nbr_cols = defset('OTHERNEWS_COLS');
|
||||
|
@ -617,7 +617,7 @@ class wysiwyg
|
||||
$editorCSS = array(
|
||||
|
||||
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css',
|
||||
'http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css',
|
||||
'http://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css',
|
||||
e_PLUGIN_ABS.'tinymce4/editor.css',
|
||||
);
|
||||
|
||||
|
@ -13,7 +13,7 @@ define('FONTAWESOME', 4);
|
||||
|
||||
e107::js("url", "https://cdn.jsdelivr.net/bootstrap/3.3.6/js/bootstrap.min.js", 'jquery', 2);
|
||||
// e107::css('url', 'https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css');
|
||||
e107::css('url', 'https://cdn.jsdelivr.net/fontawesome/4.4.0/css/font-awesome.min.css');
|
||||
e107::css('url', 'https://cdn.jsdelivr.net/fontawesome/4.5.0/css/font-awesome.min.css');
|
||||
|
||||
|
||||
// Too slow.
|
||||
|
3
news.php
3
news.php
@ -327,6 +327,7 @@ if ($action == 'cat' || $action == 'all' || vartrue($_GET['tag']))
|
||||
$param['catlink'] = (defined("NEWSLIST_CATLINK")) ? NEWSLIST_CATLINK : "";
|
||||
$param['caticon'] = (defined("NEWSLIST_CATICON")) ? NEWSLIST_CATICON : defset('ICONSTYLE','');
|
||||
$param['current_action'] = $action;
|
||||
$param['template_key'] = 'list';
|
||||
|
||||
// NEW - allow news batch shortcode override (e.g. e107::getScBatch('news', 'myplugin', true); )
|
||||
e107::getEvent()->trigger('news_list_parse', $newsList);
|
||||
@ -502,6 +503,7 @@ if ($action == 'extend')
|
||||
|
||||
$param = array();
|
||||
$param['current_action'] = $action;
|
||||
$param['template_key'] = 'view';
|
||||
|
||||
if(vartrue($NEWSSTYLE))
|
||||
{
|
||||
@ -852,6 +854,7 @@ else
|
||||
// #### normal newsitems, rendered via render_newsitem(), the $query is changed above (no other changes made) ---------
|
||||
$param = array();
|
||||
$param['current_action'] = $action;
|
||||
$param['template_key'] = 'default';
|
||||
|
||||
// Get Correct Template
|
||||
// XXX we use $NEWSLISTSTYLE above - correct as we are currently in list mode - XXX No this is not NEWSLISTSTYLE - which provides only summaries.
|
||||
|
Loading…
x
Reference in New Issue
Block a user