From 8f92b6eea478db950610df2978e3d4fd47025e6b Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sat, 24 Oct 2015 19:51:58 +0200 Subject: [PATCH 1/2] some work on poke template --- mod/poke.php | 49 +++++++++++++-------------- view/templates/poke_content.tpl | 54 ++++++++++++++++-------------- view/templates/poke_head.tpl | 18 ++++++++++ view/theme/duepuntozero/style.css | 15 +++++++++ view/theme/frost-mobile/style.css | 16 +++++++++ view/theme/frost/style.css | 16 +++++++++ view/theme/quattro/dark/style.css | 14 ++++++++ view/theme/quattro/green/style.css | 14 ++++++++ view/theme/quattro/lilac/style.css | 14 ++++++++ view/theme/quattro/quattro.less | 12 +++++++ view/theme/smoothly/style.css | 19 +++++++++++ view/theme/vier/style.css | 16 +++++++++ 12 files changed, 206 insertions(+), 51 deletions(-) create mode 100644 view/templates/poke_head.tpl diff --git a/mod/poke.php b/mod/poke.php index db1c949636..45a577cda6 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -1,4 +1,18 @@ -get_baseurl(); - $a->page['htmlhead'] .= ''; - $a->page['htmlhead'] .= <<< EOT + $head_tpl = get_markup_template('poke_head.tpl'); + $a->page['htmlhead'] .= replace_macros($head_tpl,array( + '$baseurl' => $a->get_baseurl(true), + '$base' => $base + )); - -EOT; $parent = ((x($_GET,'parent')) ? intval($_GET['parent']) : '0'); - $verbs = get_poke_verbs(); $shortlist = array(); diff --git a/view/templates/poke_content.tpl b/view/templates/poke_content.tpl index 857dfb2003..18191de03f 100644 --- a/view/templates/poke_content.tpl +++ b/view/templates/poke_content.tpl @@ -3,31 +3,33 @@
{{$desc}}
-
-
-
-
{{$clabel}}
-
- - - -
-
-
{{$choice}}
-
-
- -
-
-
{{$prv_desc}}
- -
-
- -
+
+
+ +
+
{{$clabel}}
+ + + +
+ +
+
{{$choice}}
+ +
+ +
+
{{$prv_desc}}
+ +
+ + + +
+
diff --git a/view/templates/poke_head.tpl b/view/templates/poke_head.tpl new file mode 100644 index 0000000000..6e30eb7fee --- /dev/null +++ b/view/templates/poke_head.tpl @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index ae2530b6a2..087104123a 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -2022,6 +2022,21 @@ a.mail-list-link { .message-links-end { clear: both; } +#poke-desc { + margin: 5px 0 10px; +} + +#poke-wrapper { + padding: 10px 0 20px; +} + +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} + +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 10px; +} #sidebar-group-list ul { list-style-type: none; diff --git a/view/theme/frost-mobile/style.css b/view/theme/frost-mobile/style.css index f4b46fed84..22460b0590 100644 --- a/view/theme/frost-mobile/style.css +++ b/view/theme/frost-mobile/style.css @@ -2500,6 +2500,22 @@ a.mail-list-link { clear: both; } +#poke-desc { + margin: 5px 0 10px; +} + +#poke-wrapper { + padding: 10px 0 0px; +} + +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} + +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 10px; +} + #sidebar-group-list ul { list-style-type: none; } diff --git a/view/theme/frost/style.css b/view/theme/frost/style.css index 8b87c3bd42..396f32cf97 100644 --- a/view/theme/frost/style.css +++ b/view/theme/frost/style.css @@ -2315,6 +2315,22 @@ a.mail-list-link { clear: both; } +#poke-desc { + margin: 5px 0 10px; +} + +#poke-wrapper { + padding: 10px 0 20px; +} + +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} + +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 10px; +} + #sidebar-group-list ul { list-style-type: none; } diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index 1eda67de13..aaeb74e752 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -2267,6 +2267,20 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } +/* poke */ +#poke-desc { + margin: 5px 0 25px; +} +#poke-recipient, +#poke-action, +#poke-privacy-settings { + margin: 10px 0 30px; +} +#poke-recip-label, +#poke-action-label, +#prvmail-message-label { + margin: 10px 0 10px; +} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index 71569971e5..ef408b4cd2 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -2267,6 +2267,20 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } +/* poke */ +#poke-desc { + margin: 5px 0 25px; +} +#poke-recipient, +#poke-action, +#poke-privacy-settings { + margin: 10px 0 30px; +} +#poke-recip-label, +#poke-action-label, +#prvmail-message-label { + margin: 10px 0 10px; +} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index 55b81e5daf..e31a427468 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -2267,6 +2267,20 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } +/* poke */ +#poke-desc { + margin: 5px 0 25px; +} +#poke-recipient, +#poke-action, +#poke-privacy-settings { + margin: 10px 0 30px; +} +#poke-recip-label, +#poke-action-label, +#prvmail-message-label { + margin: 10px 0 10px; +} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 3c9915576f..19847ad2de 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -1525,6 +1525,18 @@ ul.tabs { &:hover .mail-delete { .opaque(1); } } +/* poke */ +#poke-desc { + margin: 5px 0 25px; +} + +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} + +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 10px; +} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/smoothly/style.css b/view/theme/smoothly/style.css index 46d8902aeb..da180ae61e 100644 --- a/view/theme/smoothly/style.css +++ b/view/theme/smoothly/style.css @@ -2693,6 +2693,25 @@ margin-left: 0px; border: 1px solid #7C7D7B; } +/* ========== */ +/* = Poke = */ +/* ========== */ +#poke-desc { + margin: 5px 0 20px; +} +#poke-wrapper { + margin: 40px 0 20px; +} +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 20px; +} +#poke-recip { + float: none; +} + /* ================= */ /* = Notifications = */ /* ================= */ diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index 1c03edc6bf..a6a27832f5 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -2496,6 +2496,22 @@ a.mail-list-link { border: none; } +/* ========== */ +/* = Poke = */ +/* ========== */ +#poke-desc { + margin: 10px 0 20px; +} +#poke-wrapper { + margin: 40px 0 20px; +} +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 20px; +} + /* ========== */ /* = Events = */ /* ========== */ From 5b93bff6dad386dc85662f45fab58d239444a19d Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 25 Oct 2015 14:40:56 +0100 Subject: [PATCH 2/2] poke template: make use of global.css --- view/global.css | 17 +++++++++++++++++ view/theme/duepuntozero/style.css | 17 +---------------- view/theme/frost-mobile/style.css | 2 +- view/theme/quattro/dark/style.css | 14 -------------- view/theme/quattro/green/style.css | 14 -------------- view/theme/quattro/lilac/style.css | 14 -------------- view/theme/quattro/quattro.less | 12 ------------ view/theme/smoothly/style.css | 14 +------------- view/theme/vier/style.css | 15 --------------- 9 files changed, 20 insertions(+), 99 deletions(-) diff --git a/view/global.css b/view/global.css index c2f5840039..55f44ee51b 100644 --- a/view/global.css +++ b/view/global.css @@ -212,3 +212,20 @@ a { clip: rect(0,0,0,0); border: 0; } + +/* poke */ +#poke-desc { + margin: 5px 0 10px; +} + +#poke-wrapper { + padding: 10px 0 0px; +} + +#poke-recipient, #poke-action, #poke-privacy-settings { + margin: 10px 0 30px; +} + +#poke-recip-label, #poke-action-label, #prvmail-message-label { + margin: 10px 0 10px; +} diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 087104123a..16c01c6df4 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -959,7 +959,7 @@ input#dfrn-url { } .wall-item-content-wrapper.comment { -# margin-left: 50px; + /*margin-left: 50px;*/ background: #EEEEEE; } @@ -2022,21 +2022,6 @@ a.mail-list-link { .message-links-end { clear: both; } -#poke-desc { - margin: 5px 0 10px; -} - -#poke-wrapper { - padding: 10px 0 20px; -} - -#poke-recipient, #poke-action, #poke-privacy-settings { - margin: 10px 0 30px; -} - -#poke-recip-label, #poke-action-label, #prvmail-message-label { - margin: 10px 0 10px; -} #sidebar-group-list ul { list-style-type: none; diff --git a/view/theme/frost-mobile/style.css b/view/theme/frost-mobile/style.css index 22460b0590..5f78cfc4b7 100644 --- a/view/theme/frost-mobile/style.css +++ b/view/theme/frost-mobile/style.css @@ -4233,7 +4233,7 @@ ul.notifications-menu-popup { #recip { } -.autocomplete-w1 { background: #ffffff; no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; } +.autocomplete-w1 { background: #ffffff no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; } .autocomplete { color:#000; border:1px solid #999; background:#FFF; cursor:default; text-align:left; max-height:350px; overflow:auto; margin:-6px 6px 6px -6px; /* IE6 specific: */ _height:350px; _margin:0; _overflow-x:hidden; } .autocomplete .selected { background:#F0F0F0; } .autocomplete div { padding:2px 5px; white-space:nowrap; overflow:hidden; } diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index aaeb74e752..1eda67de13 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -2267,20 +2267,6 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } -/* poke */ -#poke-desc { - margin: 5px 0 25px; -} -#poke-recipient, -#poke-action, -#poke-privacy-settings { - margin: 10px 0 30px; -} -#poke-recip-label, -#poke-action-label, -#prvmail-message-label { - margin: 10px 0 10px; -} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index ef408b4cd2..71569971e5 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -2267,20 +2267,6 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } -/* poke */ -#poke-desc { - margin: 5px 0 25px; -} -#poke-recipient, -#poke-action, -#poke-privacy-settings { - margin: 10px 0 30px; -} -#poke-recip-label, -#poke-action-label, -#prvmail-message-label { - margin: 10px 0 10px; -} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index e31a427468..55b81e5daf 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -2267,20 +2267,6 @@ ul.tabs li .active { -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } -/* poke */ -#poke-desc { - margin: 5px 0 25px; -} -#poke-recipient, -#poke-action, -#poke-privacy-settings { - margin: 10px 0 30px; -} -#poke-recip-label, -#poke-action-label, -#prvmail-message-label { - margin: 10px 0 10px; -} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 19847ad2de..3c9915576f 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -1525,18 +1525,6 @@ ul.tabs { &:hover .mail-delete { .opaque(1); } } -/* poke */ -#poke-desc { - margin: 5px 0 25px; -} - -#poke-recipient, #poke-action, #poke-privacy-settings { - margin: 10px 0 30px; -} - -#poke-recip-label, #poke-action-label, #prvmail-message-label { - margin: 10px 0 10px; -} /* theme screenshot */ .screenshot, #theme-preview { diff --git a/view/theme/smoothly/style.css b/view/theme/smoothly/style.css index da180ae61e..bcb47367f9 100644 --- a/view/theme/smoothly/style.css +++ b/view/theme/smoothly/style.css @@ -291,7 +291,7 @@ section { margin: 10px 0 0 230px; } -.login-form, +.login-form { margin-top: 10px; } @@ -2696,18 +2696,6 @@ margin-left: 0px; /* ========== */ /* = Poke = */ /* ========== */ -#poke-desc { - margin: 5px 0 20px; -} -#poke-wrapper { - margin: 40px 0 20px; -} -#poke-recipient, #poke-action, #poke-privacy-settings { - margin: 10px 0 30px; -} -#poke-recip-label, #poke-action-label, #prvmail-message-label { - margin: 10px 0 20px; -} #poke-recip { float: none; } diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index a6a27832f5..a35e6d21df 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -2496,21 +2496,6 @@ a.mail-list-link { border: none; } -/* ========== */ -/* = Poke = */ -/* ========== */ -#poke-desc { - margin: 10px 0 20px; -} -#poke-wrapper { - margin: 40px 0 20px; -} -#poke-recipient, #poke-action, #poke-privacy-settings { - margin: 10px 0 30px; -} -#poke-recip-label, #poke-action-label, #prvmail-message-label { - margin: 10px 0 20px; -} /* ========== */ /* = Events = */