[ljcom] r10701: LJSUP-8917: iPad Minimalism
Committer: esavintcev
LJSUP-8917: iPad MinimalismU trunk/bin/upgrading/s2layers/sup/themes.s2
Modified: trunk/bin/upgrading/s2layers/sup/themes.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/themes.s2 2011-06-24 09:52:35 UTC (rev 10700)
+++ trunk/bin/upgrading/s2layers/sup/themes.s2 2011-06-24 10:06:57 UTC (rev 10701)
@@ -519,6 +519,37 @@
set friends_show_upic = false;
set theme_designer = "andrey_agrafenin";
+function _print_CSS {
+ var Page p = get_page();
+
+ if ($*use_stylesheets) {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/style.css"]);
+ $p->need_res({"args" => "media=\"print\"" }, ["stc/sup/s/print.css"]);
+
+ if ($*use_theme_stylesheet) {
+ if ($*active_theme == "x0") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-0.css"]);
+ } elseif ($*active_theme == "x1") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-0.css"]);
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-1.css"]);
+ } elseif ($*active_theme == "x2") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-2.css"]);
+ } elseif ($*active_theme == "x3") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-3.css"]);
+ } elseif ($*active_theme == "x4") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-4.css"]);
+ } elseif ($*active_theme == "x5") {
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-4.css"]);
+ $p->need_res({"args" => "media=\"screen\"" }, ["stc/sup/s/x-5.css"]);
+ }
+ if ($*theme_css) {
+ $p->need_res({"args" => "media=\"screen, handheld\"" }, ["stc/sup/s/$*theme_css"]);
+ }
+ $p->need_res({"condition" => "IE","args" => "media=\"screen\"" }, ["stc/sup/s/ie.css"]);
+ }
+ }
+}
+
function Page::print() {
if ($.view == "recent") {$*_RecentPage = $this as RecentPage;} elseif ($.view == "friends") {$*_FriendsPage = $this as FriendsPage;} elseif ($.view == "day") {$*_DayPage = $this as DayPage;} elseif ($.view == "month") {$*_MonthPage = $this as MonthPage;} elseif ($.view == "archive") {$*_YearPage = $this as YearPage;}
_global_init_();
