mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 01:22:13 +02:00
More inline news editing tweaks.
This commit is contained in:
parent
048ab169da
commit
26636f318c
@ -382,17 +382,15 @@ class news {
|
||||
'vars' => 'news_item',
|
||||
'perms' => '0',
|
||||
'shortcodes' => array(
|
||||
'newstitle' => array('field'=>'news_title', 'type'=>'text', 'container'=>'span'),
|
||||
'newsmetadiz' => array('field'=>'news_meta_description','type'=>'text', 'container'=>'div'),
|
||||
'newsbody' => array('field'=>'news_body', 'type'=>'html', 'container'=>'div'),
|
||||
'news_title' => array('field'=>'news_title', 'type'=>'text', 'container'=>'span'),
|
||||
'news_description' => array('field'=>'news_meta_description','type'=>'text', 'container'=>'div'),
|
||||
'news_body' => array('field'=>'news_body', 'type'=>'html', 'container'=>'div'),
|
||||
'news_summary' => array('field'=>'news_summary', 'type'=>'text', 'container'=>'span'),
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
// Aliases
|
||||
$editable['shortcodes']['newstitlelink'] = $editable['shortcodes']['newstitle'];
|
||||
$editable['shortcodes']['news_title'] = $editable['shortcodes']['newstitle'];
|
||||
$editable['shortcodes']['news_body'] = $editable['shortcodes']['newsbody'];
|
||||
|
||||
|
||||
|
||||
$sc = e107::getScBatch('news')
|
||||
|
@ -35,7 +35,7 @@ $NEWS_TEMPLATE['list']['item'] = '
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9 col-md-9">
|
||||
<h3 class="media-heading">{NEWSTITLELINK}</h3>
|
||||
<h3 class="media-heading">{NEWS_TITLE: link=1}</h3>
|
||||
<p>
|
||||
{NEWS_SUMMARY}
|
||||
</p>
|
||||
@ -85,7 +85,7 @@ $NEWS_WRAPPER['default']['item']['NEWSIMAGE: item=1'] = '<span class="news-image
|
||||
$NEWS_TEMPLATE['default']['item'] = '
|
||||
{SETIMAGE: w=400&h=400}
|
||||
<div class="default-item">
|
||||
<h2 class="news-title">{NEWSTITLELINK}</h2>
|
||||
<h2 class="news-title">{NEWS_TITLE: link=1}</h2>
|
||||
|
||||
<hr class="news-heading-sep">
|
||||
<div class="row">
|
||||
@ -95,11 +95,10 @@ $NEWS_TEMPLATE['default']['item'] = '
|
||||
<hr>
|
||||
{NEWSIMAGE: item=1}
|
||||
|
||||
|
||||
<p class="lead">{NEWS_SUMMARY}</p>
|
||||
{NEWSVIDEO: item=1}
|
||||
<div class="text-justify">
|
||||
{NEWSBODY}
|
||||
{NEWS_BODY}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
{EXTENDED}
|
||||
@ -125,7 +124,7 @@ $NEWS_WRAPPER['view']['item']['NEWSIMAGE: item=1'] = '<span class="news-images-m
|
||||
$NEWS_TEMPLATE['view']['item'] = '
|
||||
{SETIMAGE: w=900&h=600}
|
||||
<div class="view-item">
|
||||
<h2 class="news-title">{NEWSTITLELINK}</h2>
|
||||
<h2 class="news-title">{NEWS_TITLE: link=1}</h2>
|
||||
|
||||
<hr class="news-heading-sep">
|
||||
<div class="row">
|
||||
@ -137,9 +136,9 @@ $NEWS_TEMPLATE['view']['item'] = '
|
||||
|
||||
<div class="body">
|
||||
{NEWSIMAGE: item=1}
|
||||
<p class="lead">{NEWSSUMMARY}</p>
|
||||
<p class="lead">{NEWS_SUMMARY}</p>
|
||||
<div class="text-justify">
|
||||
{NEWSBODY=body}
|
||||
{NEWS_BODY=body}
|
||||
</div>
|
||||
<div class="news-videos-1">
|
||||
{NEWSVIDEO: item=1}
|
||||
@ -164,7 +163,7 @@ $NEWS_TEMPLATE['view']['item'] = '
|
||||
{NEWSVIDEO: item=5}
|
||||
|
||||
<div class="body-extended text-justify">
|
||||
{NEWSBODY=extended}
|
||||
{NEWS_BODY=extended}
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -328,5 +328,8 @@ img.e-emoticon { vertical-align:middle; border:0; width:24px }
|
||||
|
||||
.e-editable-front:hover { background-color:#FCF8E3 }
|
||||
.e-editable-front a:hover { background-color:#FCF8E3 }
|
||||
.e-editable-front:hover:after { content: "\f044"; z-index:10000; position:relative; top:0; right:-5px; margin-right:4px; padding-right:5px; font-family:'FontAwesome'; font-size:0.8em }
|
||||
|
||||
|
||||
#uiAlert { z-index: 10001 }
|
||||
#uiAlert .alert { z-index:10000; box-shadow:1px 4px 5px rgba(0,0,0,0.4) }
|
@ -66,6 +66,7 @@ class e107InlineEdit
|
||||
|
||||
$srch = array("<!-- bbcode-html-start -->","<!-- bbcode-html-end -->","[html]","[/html]");
|
||||
$content = str_replace($srch,'',$content);
|
||||
$content = trim($content);
|
||||
|
||||
if($type == 'html')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user