Skip to content

Commit 0fa7bcb

Browse files
committed
Fix disp=mustread on bootstrap manual skins
1 parent d1a916b commit 0fa7bcb

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

skins/bootstrap_manual_skin/_item_content.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
// Determine content mode to use..
117117
if( $Item->is_intro() )
118118
{
119-
$content_mode = $params['intro_mode'];
119+
$content_mode = ( $params['intro_mode'] == '$content_mode$' ? $params['content_mode'] : $params['intro_mode'] );
120120
}
121121
else
122122
{

skins/bootstrap_manual_skin/_item_list.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
'before_title_text' => '$item_icon$',
2525
'after_title_text' => '',
2626
'item_link_type' => '#',
27+
'content_mode' => 'auto', // Can be 'excerpt', 'normal' or 'full'. 'auto' will auto select depending on backoffice SEO settings for $disp-detail
28+
'intro_mode' => 'normal', // Same as above. This will typically be forced to "normal" when displaying an intro section so that intro posts always display as normal there
2729
), $params );
2830

2931
global $Item;
@@ -101,6 +103,11 @@
101103
'widget_item_visibility_badge_params' => array(
102104
'template' => '<div class="evo_status evo_status__$status$ badge pull-right" data-toggle="tooltip" data-placement="top" title="$tooltip_title$">$status_title$</div>',
103105
),
106+
// Params for widget "Item Content":
107+
'widget_item_content_params' => array(
108+
'content_mode' => $params['content_mode'],
109+
'intro_mode' => $params['intro_mode'],
110+
),
104111
) );
105112
// ----------------------------- END OF "Item in List" CONTAINER -----------------------------
106113

skins/green_bootstrap_theme/manual/_item_content.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
// Determine content mode to use..
117117
if( $Item->is_intro() )
118118
{
119-
$content_mode = $params['intro_mode'];
119+
$content_mode = ( $params['intro_mode'] == '$content_mode$' ? $params['content_mode'] : $params['intro_mode'] );
120120
}
121121
else
122122
{

skins/green_bootstrap_theme/manual/_item_list.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
'after_title' => '$flag_icon$</h3>$item_status$',
2424
'before_title_text' => '$item_icon$',
2525
'after_title_text' => '',
26+
'content_mode' => 'auto', // Can be 'excerpt', 'normal' or 'full'. 'auto' will auto select depending on backoffice SEO settings for $disp-detail
27+
'intro_mode' => 'normal', // Same as above. This will typically be forced to "normal" when displaying an intro section so that intro posts always display as normal there
2628
), $params );
2729

2830
global $Item;
@@ -99,6 +101,11 @@
99101
'widget_item_visibility_badge_params' => array(
100102
'template' => '<div class="evo_status evo_status__$status$ badge pull-right" data-toggle="tooltip" data-placement="top" title="$tooltip_title$">$status_title$</div>',
101103
),
104+
// Params for widget "Item Content":
105+
'widget_item_content_params' => array(
106+
'content_mode' => $params['content_mode'],
107+
'intro_mode' => $params['intro_mode'],
108+
),
102109
) );
103110
// ----------------------------- END OF "Item in List" CONTAINER -----------------------------
104111

0 commit comments

Comments
 (0)