From ad9f2c4c8fad232c9d4c5e7074e0d3b6c5b10910 Mon Sep 17 00:00:00 2001 From: Gocha Date: Thu, 20 Oct 2016 11:23:54 +0400 Subject: [PATCH 1/3] Added text field for css class --- plugins/system/params/page-title.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/system/params/page-title.xml b/plugins/system/params/page-title.xml index 1b028cd..ce85113 100644 --- a/plugins/system/params/page-title.xml +++ b/plugins/system/params/page-title.xml @@ -9,8 +9,9 @@ + - + \ No newline at end of file From 07a72d3ef98084ab5873c8e218ce717c94725625 Mon Sep 17 00:00:00 2001 From: Gocha Date: Thu, 20 Oct 2016 11:25:42 +0400 Subject: [PATCH 2/3] Added Language for css class field Added language for css class field into administrator --- plugins/system/language/en-GB.plg_system_helix3.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/system/language/en-GB.plg_system_helix3.ini b/plugins/system/language/en-GB.plg_system_helix3.ini index 52ba672..3eae42b 100644 --- a/plugins/system/language/en-GB.plg_system_helix3.ini +++ b/plugins/system/language/en-GB.plg_system_helix3.ini @@ -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." From c1ba1ad9698e46b54f2a388c34ef1944ed549918 Mon Sep 17 00:00:00 2001 From: Gocha Date: Thu, 20 Oct 2016 11:27:08 +0400 Subject: [PATCH 3/3] Added PHP code to display css class Added php code to displat css class into div element after .sp-page-title --- template/features/title.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/template/features/title.php b/template/features/title.php index af382a8..97a9ea2 100644 --- a/template/features/title.php +++ b/template/features/title.php @@ -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'); @@ -52,9 +54,13 @@ public function renderFeature() { $page_title = $page_title_alt; } + if($page_title_css) { + $page_css = $page_title_css; + } + $output = ''; - $output .= '
'; + $output .= '
'; $output .= '
'; $output .= '

'. $page_title .'

';