Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/system/language/en-GB.plg_system_helix3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ ENABLE_PAGE_TITLE_DESC="Enable this option show page title after just below the
ENABLE_PAGE_TITLE="Enable Page Title"
ENABLE_PAGE_TITLE_DESC="Enable this option show page title after just below the header."
PAGE_TITLE_ALT="Alternative Title"
PAGE_TITLE_CSS="Title CSS"
PAGE_TITLE_CSS_DESC="Aditional css class for page title"
PAGE_TITLE_ALT_DESC="Alternative title will override joomla default menu title."
PAGE_SUBTITLE="Page Subtitle"
PAGE_SUBTITLE_DESC="Add brief description about the page as page subtitle."
Expand Down
3 changes: 2 additions & 1 deletion plugins/system/params/page-title.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

<field name="page_title_alt" type="text" default="" label="PAGE_TITLE_ALT" description="PAGE_TITLE_ALT_DESC" />
<field name="page_subtitle" type="text" default="" label="PAGE_SUBTITLE" description="PAGE_SUBTITLE_DESC" />
<field name="page_title_css" type="text" default="" label="PAGE_TITLE_CSS" description="PAGE_TITLE_CSS_DESC" />
<field name="page_title_bg_color" type="color" label="PAGE_BACKGROUND_COLOR" description="PAGE_BACKGROUND_COLOR_DESC" />
<field name="page_title_bg_image" type="media" label="PAGE_BACKGROUND_IMAGE" description="PAGE_BACKGROUND_IMAGE_DESC" />
</fieldset>
</fields>
</form>
</form>
8 changes: 7 additions & 1 deletion template/features/title.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function renderFeature() {
$page_title = $menuitem->title;
$page_title_alt = $params->get('page_title_alt');
$page_subtitle = $params->get('page_subtitle');
// Here
$page_title_css = $params->get('page_title_css');
$page_title_bg_color = $params->get('page_title_bg_color');
$page_title_bg_image = $params->get('page_title_bg_image');

Expand All @@ -52,9 +54,13 @@ public function renderFeature() {
$page_title = $page_title_alt;
}

if($page_title_css) {
$page_css = $page_title_css;
}

$output = '';

$output .= '<div class="sp-page-title"'. $style .'>';
$output .= '<div class="sp-page-title '. $page_css .'"'. $style .'>';
$output .= '<div class="container">';

$output .= '<h2>'. $page_title .'</h2>';
Expand Down