Commit 34ef29a7 by Félicie

change classic to cagette them

parent 100f63e0
...@@ -1972,10 +1972,10 @@ function qa_load_theme_class($theme, $template, $content, $request) ...@@ -1972,10 +1972,10 @@ function qa_load_theme_class($theme, $template, $content, $request)
$classname = 'qa_html_theme_base'; $classname = 'qa_html_theme_base';
// Then load the selected theme if valid, otherwise load the Classic theme // Then load the selected theme if valid, otherwise load the Cagette theme
if (!file_exists(QA_THEME_DIR . $theme . '/qa-styles.css')) if (!file_exists(QA_THEME_DIR . $theme . '/qa-styles.css'))
$theme = 'Classic'; $theme = 'Cagette';
$themeroothtml = qa_html(qa_path_to_root() . 'qa-theme/' . $theme . '/'); $themeroothtml = qa_html(qa_path_to_root() . 'qa-theme/' . $theme . '/');
......
...@@ -1033,9 +1033,9 @@ foreach ($showoptions as $optionname) { ...@@ -1033,9 +1033,9 @@ foreach ($showoptions as $optionname) {
case 'site_theme_mobile': case 'site_theme_mobile':
$themeoptions = qa_admin_theme_options(); $themeoptions = qa_admin_theme_options();
if (!isset($themeoptions[$value])) if (!isset($themeoptions[$value]))
$value = 'Classic'; // check here because we also need $value for qa_addon_metadata() $value = 'Cagette'; // check here because we also need $value for qa_addon_metadata()
qa_optionfield_make_select($optionfield, $themeoptions, $value, 'Classic'); qa_optionfield_make_select($optionfield, $themeoptions, $value, 'Cagette');
$metadataUtil = new \Q2A\Util\Metadata(); $metadataUtil = new \Q2A\Util\Metadata();
$themedirectory = QA_THEME_DIR . $value; $themedirectory = QA_THEME_DIR . $value;
......
{ {
"name": "Classic", "name": "Cagette",
"description": "Non-responsive theme without RTL support that doesn't process any output from the core", "description": "Non-responsive theme without RTL support that doesn't process any output from the core",
"version": "1.5", "version": "1",
"date": "2012-09-11", "date": "2012-05",
"author": "Question2Answer", "author": "Cooperatic",
"author_uri": "http://www.question2answer.org", // "author_uri": "http://www.cooperatic.fr",
"license": "GPLv2", "license": "GPLv2",
"min_q2a": "1.5" "min_q2a": "1.5"
} }
/* /*
Theme Name: Classic Theme Name: Cagette
Theme URI: Theme URI:
Theme Version: 1.5 Theme Version: 1
Theme Date: 2012-09-11 Theme Date: 2012-05
Theme Author: Question2Answer Theme Author: Cooperatic
Theme Author URI: http://www.question2answer.org/ Theme Author URI: http://www.cooperatic.fr/
Theme License: GPLv2
Theme Update Check URI: Theme Update Check URI:
*/ */
...@@ -13,7 +12,7 @@ ...@@ -13,7 +12,7 @@
/* General page layout */ /* General page layout */
body {margin:0; padding:0;} body {margin:0; padding:0;}
body,td,input,textarea {font-size:12px; font-family:"Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;} body,td,input,textarea {font-size:12px; font-family:"Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; color: #333;}
a:link,a:active,a:visited {text-decoration:none;} a:link,a:active,a:visited {text-decoration:none;}
a:hover {text-decoration:underline;} a:hover {text-decoration:underline;}
p {margin-top:0;} p {margin-top:0;}
......
...@@ -24,5 +24,5 @@ class qa_html_theme extends qa_html_theme_base ...@@ -24,5 +24,5 @@ class qa_html_theme extends qa_html_theme_base
{ {
// use new ranking layout // use new ranking layout
protected $ranking_block_layout = true; protected $ranking_block_layout = true;
protected $theme = 'classic'; protected $theme = 'cageztte';
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment