Add a search module to layouts, if the journal is searchable. (styling 
for nonfree layouts).

        Patch by foxfirefey. 

diffs (62 lines):

diff -r f04b4037a007 -r 06c1fca43cb0 
bin/upgrading/s2layers/sundaymorning/layout.s2
--- a/bin/upgrading/s2layers/sundaymorning/layout.s2    Wed Jun 02 17:56:57 
2010 +0800
+++ b/bin/upgrading/s2layers/sundaymorning/layout.s2    Wed Jun 02 20:22:56 
2010 +0800
@@ -48,6 +48,7 @@ propgroup modules {
     property use module_poweredby_group;
     property use module_customtext_group;
     property use module_credit_group;
+    property use module_search_group;
 
     property string module_navlinks_section_override {
        values = "none|(none)|one|Header|two|Sidebar";
@@ -70,6 +71,7 @@ set module_credit_section = "two";
 set module_credit_section = "two";
 set module_poweredby_section = "two";
 set module_poweredby_order = 20;
+set module_search_section = "two";
 
 propgroup text {
     property use text_view_recent;
@@ -511,6 +513,10 @@ q { font-style: italic;
     margin-right: auto;
 }
 
+.module-search .search-form { margin: .5em; }
+.module-search .search-box { margin: .5em 0em; width: 100%;}
+.module-search .search-form { text-align: right; }
+
 /* wrap long content, particularly openid usernames */
 .module-pagesummary .ljuser {
     white-space: normal !important;
diff -r f04b4037a007 -r 06c1fca43cb0 
bin/upgrading/s2layers/transmogrified/layout.s2
--- a/bin/upgrading/s2layers/transmogrified/layout.s2   Wed Jun 02 17:56:57 
2010 +0800
+++ b/bin/upgrading/s2layers/transmogrified/layout.s2   Wed Jun 02 20:22:56 
2010 +0800
@@ -56,6 +56,7 @@ propgroup modules {
     property use module_poweredby_group;
     property use module_customtext_group;
     property use module_credit_group;
+    property use module_search_group;
 }
 
 set module_layout_sections = "none|(none)|one|Header|two|Sidebar|three|Footer";
@@ -71,6 +72,7 @@ set module_customtext_section = "two";
 set module_customtext_section = "two";
 set module_active_section = "two";
 set module_credit_section = "two";
+set module_search_section = "two";
 
 propgroup text {
     property use text_view_recent;
@@ -577,6 +579,12 @@ function Page::print_default_stylesheet 
     .module-calendar table {
         margin-left: auto;
         margin-right: auto;
+    }
+    .module-search .search-form {
+        text-align: right;
+    }
+    .module-search .search-box {
+        width: 100%;
     }
     /* wrap long content, particularly openid usernames */
     .module-pagesummary .ljuser {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to