fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-16 10:11 am

[dw-nonfree] Make site schemes siteviews S2 layout have inheritable themes

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/19a48e4de898]

http://bugs.dwscoalition.org/show_bug.cgi?id=3189

Register dreamwidth.org-specific site skins.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/DW/SiteScheme/Local.pm
--------------------------------------------------------------------------------
diff -r 7a10df60e793 -r 19a48e4de898 cgi-bin/DW/SiteScheme/Local.pm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cgi-bin/DW/SiteScheme/Local.pm	Tue Nov 16 18:11:39 2010 +0800
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+#
+# DW::SiteScheme::Local
+#
+# Register the local sitesechemes
+#
+# Authors:
+#      Andrea Nall <anall@andreanall.com>
+#
+# Copyright (c) 2010 by Dreamwidth Studios, LLC.
+#
+# This program is NOT free software or open-source; you can use it as an
+# example of how to implement your own site-specific extensions to the
+# Dreamwidth Studios open-source code, but you cannot use it on your site
+# or redistribute it, with or without modifications.
+#
+use DW::SiteScheme;
+
+DW::SiteScheme->register_siteschemes(
+    'celerity-local' => 'celerity',
+    'dreamwidth' => 'global',
+    'gradation-horizontal-local' => 'gradation-horizontal',
+    'gradation-vertical-local' => 'gradation-vertical',
+    'tropo-common' => 'common',
+    'tropo-purple' => 'tropo-common',
+    'tropo-red' => 'tropo-common'
+);
+
+DW::SiteScheme->register_default_sitescheme( 'tropo-red' );
+
+1;
+
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org