From 8e571e44f0ce6888eee1312fd9b8035793b7e603 Mon Sep 17 00:00:00 2001 From: Semias Date: Sat, 14 Jul 2012 01:19:02 +0200 Subject: [PATCH] Added css style to sitefaq index and category --- inc/app/sitefaq/boxes/category/index.php | 2 ++ inc/app/sitefaq/boxes/index/index.php | 2 ++ inc/app/sitefaq/html/faq.spt | 18 +++++++++++------- 3 files changed, 15 insertions(+), 7 deletions(-) mode change 100644 => 100755 inc/app/sitefaq/boxes/category/index.php mode change 100644 => 100755 inc/app/sitefaq/boxes/index/index.php mode change 100644 => 100755 inc/app/sitefaq/html/faq.spt diff --git a/inc/app/sitefaq/boxes/category/index.php b/inc/app/sitefaq/boxes/category/index.php old mode 100644 new mode 100755 index dc6ffd15..63019414 --- a/inc/app/sitefaq/boxes/category/index.php +++ b/inc/app/sitefaq/boxes/category/index.php @@ -10,6 +10,8 @@ $res = db_fetch_array ('select * from sitefaq_question where category = ? order by question asc', $parameters['category']); +page_add_style ( site_prefix () . '/inc/app/sitefaq/html/faq.css' ); + echo template_simple ( 'category.spt', array ( diff --git a/inc/app/sitefaq/boxes/index/index.php b/inc/app/sitefaq/boxes/index/index.php old mode 100644 new mode 100755 index f3ee588e..403eb1ea --- a/inc/app/sitefaq/boxes/index/index.php +++ b/inc/app/sitefaq/boxes/index/index.php @@ -15,6 +15,8 @@ $cats[$res[$k]->category][] = $res[$k]; } +page_add_style ( site_prefix () . '/inc/app/sitefaq/html/faq.css' ); + echo template_simple ( 'faq.spt', array ( diff --git a/inc/app/sitefaq/html/faq.spt b/inc/app/sitefaq/html/faq.spt old mode 100644 new mode 100755 index f02ff5cf..c09351d2 --- a/inc/app/sitefaq/html/faq.spt +++ b/inc/app/sitefaq/html/faq.spt @@ -1,4 +1,5 @@ + +{box cms/buttons/add?collection=sitefaq_question&return=[site/current]} + {if appconf ('user_submissions')}
{intl Ask a Question} @@ -26,13 +29,14 @@ $(document).ready(function() { {loop obj[cats]}
{loop/category}

{loop obj[res]} - {if loop.category eq parent.category} -
- {loop/question}
-
- {filter none}{loop/answer}{end filter} - {intl close}  -
+ {if loop.category eq parent[category]} + {box cms/buttons?collection=sitefaq_question&id=[loop/id]&access=public&status=approved&team=none&add=false&float=true&return=[site/current]} +
+ {loop/question}
+
+ {filter none}{loop/answer}{end filter} + {intl close}  +
{end if} {end loop}