From 82106632f00dd8dc08ed4d845a4b74be53d5f563 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 28 Mar 2012 10:43:52 +0200 Subject: [PATCH 1/6] template: field_combobox a text input plus a select wich updates text input value on change. html5 version commented out for poor browsers support. --- view/field_combobox.tpl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 view/field_combobox.tpl diff --git a/view/field_combobox.tpl b/view/field_combobox.tpl new file mode 100644 index 000000000..658133071 --- /dev/null +++ b/view/field_combobox.tpl @@ -0,0 +1,18 @@ + +
+ + {# html5 don't work on Chrome, Safari and IE9 + + + {{ for $field.4 as $opt=>$val }} #} + + + + + $field.3 +
+ From 7aec2fd68d6cec75d14c02b63a150d904aae817e Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 28 Mar 2012 10:45:16 +0200 Subject: [PATCH 2/6] filer: info() on item filed --- include/text.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/text.php b/include/text.php index 6f66cef65..5aaf04729 100644 --- a/include/text.php +++ b/include/text.php @@ -1300,6 +1300,7 @@ function file_tag_save_file($uid,$item,$file) { $saved = get_pconfig($uid,'system','filetags'); if((! strlen($saved)) || (! stristr($saved,'[' . file_tag_encode($file) . ']'))) set_pconfig($uid,'system','filetags',$saved . '[' . file_tag_encode($file) . ']'); + info( t('Item filed') ); } return true; } From 0a2675d8b698302e50cb64ce5793ab9d22dee329 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 28 Mar 2012 10:49:34 +0200 Subject: [PATCH 3/6] filer: replace "file as" prompt with combobox opened in fancybox --- mod/filer.php | 16 +++++++++-- view/filer_dialog.tpl | 4 +++ view/jot-header.tpl | 39 ++++++++++++++++++++------- view/theme/dispy-dark/jot-header.tpl | 40 +++++++++++++++++++++------- view/theme/dispy/jot-header.tpl | 40 +++++++++++++++++++++------- view/theme/testbubble/jot-header.tpl | 35 ++++++++++++++++++++++++ 6 files changed, 145 insertions(+), 29 deletions(-) create mode 100644 view/filer_dialog.tpl diff --git a/mod/filer.php b/mod/filer.php index a9e213536..82537848b 100755 --- a/mod/filer.php +++ b/mod/filer.php @@ -16,8 +16,20 @@ function filer_content(&$a) { logger('filer: tag ' . $term . ' item ' . $item_id); - if($item_id && strlen($term)) + if($item_id && strlen($term)){ + // file item file_tag_save_file(local_user(),$item_id,$term); - + } else { + // return filer dialog + $filetags = get_pconfig(local_user(),'system','filetags'); + $filetags = explode("][", trim($filetags,"[]")); + $tpl = get_markup_template("filer_dialog.tpl"); + $o = replace_macros($tpl, array( + '$field' => array('term', t("File as:"), '', '', $filetags, t('- select -')), + '$submit' => t('Save'), + )); + + echo $o; + } killme(); } diff --git a/view/filer_dialog.tpl b/view/filer_dialog.tpl new file mode 100644 index 000000000..ae837d6b7 --- /dev/null +++ b/view/filer_dialog.tpl @@ -0,0 +1,4 @@ +{{ inc field_combobox.tpl }}{{ endinc }} +
+ +
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 99e3aa0ec..67e5eb681 100755 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -264,15 +264,36 @@ function enableOnUser(){ } function itemFiler(id) { - reply = prompt("$fileas"); - if(reply && reply.length) { - commentBusy = true; - $('body').css('cursor', 'wait'); - $.get('filer/' + id + '?term=' + reply); - if(timer) clearTimeout(timer); - timer = setTimeout(NavUpdate,3000); - liking = 1; - } + + var bordercolor = $("input").css("border-color"); + + $.get('filer/', function(data){ + $.fancybox(data); + $("#id_term").keypress(function(){ + $(this).css("border-color",bordercolor); + }) + $("#select_term").change(function(){ + $("#id_term").css("border-color",bordercolor); + }) + + $("#filer_save").click(function(e){ + e.preventDefault(); + reply = $("#id_term").val(); + if(reply && reply.length) { + commentBusy = true; + $('body').css('cursor', 'wait'); + $.get('filer/' + id + '?term=' + reply); + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,3000); + liking = 1; + $.fancybox.close(); + } else { + $("#id_term").css("border-color","#FF0000"); + } + return false; + }); + }); + } function jotClearLocation() { diff --git a/view/theme/dispy-dark/jot-header.tpl b/view/theme/dispy-dark/jot-header.tpl index 4c8f59d79..92eccf740 100644 --- a/view/theme/dispy-dark/jot-header.tpl +++ b/view/theme/dispy-dark/jot-header.tpl @@ -264,17 +264,39 @@ function enableOnUser(){ } function itemFiler(id) { - reply = prompt("$fileas"); - if(reply && reply.length) { - commentBusy = true; - $('body').css('cursor', 'wait'); - $.get('filer/' + id + '?term=' + reply); - if(timer) clearTimeout(timer); - timer = setTimeout(NavUpdate,3000); - liking = 1; - } + + var bordercolor = $("input").css("border-color"); + + $.get('filer/', function(data){ + $.fancybox(data); + $("#id_term").keypress(function(){ + $(this).css("border-color",bordercolor); + }) + $("#select_term").change(function(){ + $("#id_term").css("border-color",bordercolor); + }) + + $("#filer_save").click(function(e){ + e.preventDefault(); + reply = $("#id_term").val(); + if(reply && reply.length) { + commentBusy = true; + $('body').css('cursor', 'wait'); + $.get('filer/' + id + '?term=' + reply); + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,3000); + liking = 1; + $.fancybox.close(); + } else { + $("#id_term").css("border-color","#FF0000"); + } + return false; + }); + }); + } + function jotClearLocation() { $('#jot-coord').val(''); $('#profile-nolocation-wrapper').hide(); diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl index 4c8f59d79..92eccf740 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -264,17 +264,39 @@ function enableOnUser(){ } function itemFiler(id) { - reply = prompt("$fileas"); - if(reply && reply.length) { - commentBusy = true; - $('body').css('cursor', 'wait'); - $.get('filer/' + id + '?term=' + reply); - if(timer) clearTimeout(timer); - timer = setTimeout(NavUpdate,3000); - liking = 1; - } + + var bordercolor = $("input").css("border-color"); + + $.get('filer/', function(data){ + $.fancybox(data); + $("#id_term").keypress(function(){ + $(this).css("border-color",bordercolor); + }) + $("#select_term").change(function(){ + $("#id_term").css("border-color",bordercolor); + }) + + $("#filer_save").click(function(e){ + e.preventDefault(); + reply = $("#id_term").val(); + if(reply && reply.length) { + commentBusy = true; + $('body').css('cursor', 'wait'); + $.get('filer/' + id + '?term=' + reply); + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,3000); + liking = 1; + $.fancybox.close(); + } else { + $("#id_term").css("border-color","#FF0000"); + } + return false; + }); + }); + } + function jotClearLocation() { $('#jot-coord').val(''); $('#profile-nolocation-wrapper').hide(); diff --git a/view/theme/testbubble/jot-header.tpl b/view/theme/testbubble/jot-header.tpl index b44ea78fd..0d11da271 100755 --- a/view/theme/testbubble/jot-header.tpl +++ b/view/theme/testbubble/jot-header.tpl @@ -304,6 +304,41 @@ function initEditor(cb) { } } } + + function itemFiler(id) { + + var bordercolor = $("input").css("border-color"); + + $.get('filer/', function(data){ + $.fancybox(data); + $("#id_term").keypress(function(){ + $(this).css("border-color",bordercolor); + }) + $("#select_term").change(function(){ + $("#id_term").css("border-color",bordercolor); + }) + + $("#filer_save").click(function(e){ + e.preventDefault(); + reply = $("#id_term").val(); + if(reply && reply.length) { + commentBusy = true; + $('body').css('cursor', 'wait'); + $.get('filer/' + id + '?term=' + reply); + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,3000); + liking = 1; + $.fancybox.close(); + } else { + $("#id_term").css("border-color","#FF0000"); + } + return false; + }); + }); + + } + + function jotClearLocation() { $('#jot-coord').val(''); From 6bb8d42865fcd19d17e36252e1d668b1467c1d46 Mon Sep 17 00:00:00 2001 From: Simon L'nu Date: Wed, 28 Mar 2012 05:42:47 -0400 Subject: [PATCH 4/6] Merge branch 'master', remote-tracking branch 'remotes/upstream/master' * remotes/upstream/master: support autocomplete @-tags in plaintext mode vier navbar messed up after default theme template move profile_tabs hook use theme directory for page templates, not language directory turn on gecko spellcheck in tinymce small fix in diabook fixes in diabook provide a close-option for boxes in right_aside and store info via js and cookies provide a close-option for boxes in right_aside and store info via js and cookies form security error when using existing photo * master: From bcf8a571f96f1f93ee3d2f8c6a6da7f9d6bd5da8 Mon Sep 17 00:00:00 2001 From: Simon L'nu Date: Wed, 28 Mar 2012 05:52:28 -0400 Subject: [PATCH 5/6] add some icons for the newbie stuff (diabook but 24px not 32); fixes for dispy (broken last push) Signed-off-by: Simon L'nu --- view/theme/dispy-dark/communityhome.tpl | 41 ++++++++++++- view/theme/dispy-dark/default.php | 20 +++++++ view/theme/dispy-dark/nav.tpl | 14 ++--- view/theme/dispy-dark/style.css | 62 +++++++++++++++----- view/theme/dispy-dark/theme.php | 11 +++- view/theme/dispy-dark/wall_item.tpl | 73 ++++++++++++------------ view/theme/dispy/communityhome.tpl | 41 ++++++++++++- view/theme/dispy/default.php | 20 +++++++ view/theme/dispy/icons/StatusNet.png | Bin 0 -> 1048 bytes view/theme/dispy/icons/email.png | Bin 0 -> 853 bytes view/theme/dispy/icons/facebook.png | Bin 0 -> 1097 bytes view/theme/dispy/icons/livejournal.png | Bin 0 -> 1571 bytes view/theme/dispy/icons/posterous.png | Bin 0 -> 1223 bytes view/theme/dispy/icons/tumblr.png | Bin 0 -> 843 bytes view/theme/dispy/icons/twitter.png | Bin 0 -> 967 bytes view/theme/dispy/icons/wordpress.png | Bin 0 -> 1346 bytes view/theme/dispy/nav.tpl | 14 ++--- view/theme/dispy/style.css | 64 ++++++++++++++++----- view/theme/dispy/theme.php | 18 +++--- view/theme/dispy/wall_item.tpl | 73 ++++++++++++------------ 20 files changed, 321 insertions(+), 130 deletions(-) create mode 100644 view/theme/dispy-dark/default.php create mode 100644 view/theme/dispy/default.php create mode 100644 view/theme/dispy/icons/StatusNet.png create mode 100644 view/theme/dispy/icons/email.png create mode 100644 view/theme/dispy/icons/facebook.png create mode 100644 view/theme/dispy/icons/livejournal.png create mode 100644 view/theme/dispy/icons/posterous.png create mode 100644 view/theme/dispy/icons/tumblr.png create mode 100644 view/theme/dispy/icons/twitter.png create mode 100644 view/theme/dispy/icons/wordpress.png diff --git a/view/theme/dispy-dark/communityhome.tpl b/view/theme/dispy-dark/communityhome.tpl index dfc0467f7..2876f936e 100644 --- a/view/theme/dispy-dark/communityhome.tpl +++ b/view/theme/dispy-dark/communityhome.tpl @@ -2,8 +2,43 @@
$page
{{ endif }} -

PostIt to Friendica

-
-Post to Friendica from anywhere by bookmarking this Link. +{{ if $lastusers_title }} +

Help or '@NewHere'?

+ {{ endif }} + +{{ if $lastusers_title }} +

Connectable Services

+
+Facebook +StatusNet +LiveJournal +Posterous
+Tumblr +Twitter +WordPress +E-Mail +
+{{ endif }} + +

PostIt to Friendica

+
+Post to Friendica from anywhere by bookmarking this link. +
+ diff --git a/view/theme/dispy-dark/default.php b/view/theme/dispy-dark/default.php new file mode 100644 index 000000000..e74ec1a4f --- /dev/null +++ b/view/theme/dispy-dark/default.php @@ -0,0 +1,20 @@ + + + + <?php if(x($page,'title')) echo $page['title'] ?> + + + + + + +
+ +
+
+ + + diff --git a/view/theme/dispy-dark/nav.tpl b/view/theme/dispy-dark/nav.tpl index 589d68352..e38b2bbe2 100644 --- a/view/theme/dispy-dark/nav.tpl +++ b/view/theme/dispy-dark/nav.tpl @@ -45,13 +45,7 @@ works --> {{ endif }}
- - -
+
$sitelocation
    $langselector
+ + diff --git a/view/theme/dispy-dark/style.css b/view/theme/dispy-dark/style.css index 8be441c8b..361648999 100644 --- a/view/theme/dispy-dark/style.css +++ b/view/theme/dispy-dark/style.css @@ -251,7 +251,7 @@ input[type=submit] { * nav */ nav { - height: 85px; + height: 60px; display: block; background-color: #1d1f1d; color: #eeeeec; @@ -469,7 +469,7 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link width: 170px; position: absolute; top: -19px; - left: 15px; + left: 7px; } #nav-floater { position: fixed; @@ -480,13 +480,14 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link color: transparent; border-radius: 5px; z-index: 100; - width: 28%; - height: 80px; + width: 300px; + height: 60px; } #nav-buttons { clear: both; list-style: none; padding: 0px; + margin: 0 7px 0 0; height: 25px; } #nav-buttons li { @@ -506,18 +507,24 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link } .search-box { display: inline-block; - height: 20px; - margin: 0; - position: relative; - left: 7px; - top: 5px; - /*width: 210px;*/ + margin: 5px; + position: fixed; + right: 0px; + bottom: 0px; + z-index: 100; + background: #1d1f1d; + border-radius: 5px; } #search-text { border: 1px #eec solid; background: #2e2f2e; color: #eec; } +.search-box #search-text { + margin: 8px; + width: 10em; + color: #eec; +} nav #user-menu { display: block; width: 75%; @@ -529,8 +536,8 @@ nav #user-menu { border-radius: 5px; background: #555753 url("menu-user-pin.jpg") 98% center no-repeat; clear: both; - top: 12px; - left: 7px; + top: 4px; + left: 10px; } nav #user-menu-label { font-size: 12px; @@ -641,6 +648,7 @@ nav #user-menu-label { background: #ddd; } + /** sysmsg **/ #sysmsg_info { position: fixed; @@ -752,6 +760,7 @@ aside #viewcontacts { margin: 0px 0px 0px 0px; } + /** * contacts block */ @@ -1018,7 +1027,7 @@ aside #viewcontacts { * section */ section { - margin: 20px 8% 0 4%; + margin: 20px 9% 0 4%; font-size: 0.8em; padding-right: 230px; min-width: 475px; @@ -1057,6 +1066,7 @@ section { text-decoration: none; } + /** * items */ @@ -1129,7 +1139,7 @@ section { border-radius: 5px; } [class^="wall-item-tools"] > *, [class^="wall-item-tools"] > * > * { - margin: 0 0 5px 0; + /*margin: 0 0 5px 0;*/ } .wall-item-tools { float: right; @@ -1150,6 +1160,12 @@ section { -ms-transition: all 1s ease-in-out; transition: all 1s ease-in-out; } +.wall-item-subtools1 { + list-style: none; +} +.wall-item-subtools2 { + list-style: none; +} .wall-item-title { font-size: 1.2em; font-weight: bold; @@ -1260,6 +1276,24 @@ section { overflow: auto; width: 100%; } +#connect-services-header { + +} +#connect-services { + margin: 5px 0 0 0; +} +#extra-help-header { + +} +#extra-help { + margin: 5px 0 0 0; +} +#postit-header { + +} +#postit { + margin: 5px 0 0 0; +} /** diff --git a/view/theme/dispy-dark/theme.php b/view/theme/dispy-dark/theme.php index 4c938997b..84cbc05cd 100644 --- a/view/theme/dispy-dark/theme.php +++ b/view/theme/dispy-dark/theme.php @@ -91,11 +91,13 @@ $(document).ready(function() { $('.floaterflip').css({ backgroundPosition: '-210px -60px' }); + $('.search-box').slideDown('fast'); } else { $('#nav-floater').slideDown('fast'); $('.floaterflip').css({ backgroundPosition: '-190px -60px' }); + $('.search-box').slideUp('fast'); } }; // our trigger for the toolbar button @@ -151,6 +153,13 @@ function dispydark_community_info() { $aside['$url'] = $url; $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl'); - $a->page['aside'] = replace_macros($tpl, $aside); + $a->page['aside_bottom'] = replace_macros($tpl, $aside); } +// use our 'default.php' instead of the system-wide one +$a->page['template'] = "theme/dispy-dark/default"; + +// aside on profile page +if ($a->argv[0] === "profile") { + dispydark_community_info(); +} diff --git a/view/theme/dispy-dark/wall_item.tpl b/view/theme/dispy-dark/wall_item.tpl index c9ac20c89..4b973bf93 100644 --- a/view/theme/dispy-dark/wall_item.tpl +++ b/view/theme/dispy-dark/wall_item.tpl @@ -15,44 +15,45 @@
{{ if $item.location }}$item.location {{ endif }}
-
- {{ if $item.lock }}
$item.lock
- {{ else }}
{{ endif }} -
- {{ if $item.star }} - - - {{ endif }} - - {{ if $item.vote }} - - {{ endif }} - - {{ if $item.filer }} - - {{ endif }} - - {{ if $item.plink }} - - {{ endif }} - {{ if $item.edpost }} - - {{ endif }} - -
- {{ if $item.drop.dropping }}{{ endif }} -
- {{ if $item.drop.dropping }}{{ endif }} +
    +
  • + {{ if $item.lock }}
    $item.lock
    + {{ else }}
    {{ endif }} +
  • + {{ if $item.star }} +
  • + + +
  • + {{ endif }} + {{ if $item.vote }} + + {{ endif }} +
+
    + {{ if $item.filer }} +
  • + {{ endif }} + {{ if $item.plink }} + + {{ endif }} + {{ if $item.edpost }} +
  • + {{ endif }} +
  • + {{ if $item.drop.dropping }}
    {{ endif }} + {{ if $item.drop.dropping }}
    {{ endif }} +
  • +
-
$item.title
diff --git a/view/theme/dispy/communityhome.tpl b/view/theme/dispy/communityhome.tpl index dfc0467f7..2876f936e 100644 --- a/view/theme/dispy/communityhome.tpl +++ b/view/theme/dispy/communityhome.tpl @@ -2,8 +2,43 @@
$page
{{ endif }} -

PostIt to Friendica

-
-Post to Friendica from anywhere by bookmarking this Link. +{{ if $lastusers_title }} +

Help or '@NewHere'?

+ {{ endif }} + +{{ if $lastusers_title }} +

Connectable Services

+
+Facebook +StatusNet +LiveJournal +Posterous
+Tumblr +Twitter +WordPress +E-Mail +
+{{ endif }} + +

PostIt to Friendica

+
+Post to Friendica from anywhere by bookmarking this link. +
+ diff --git a/view/theme/dispy/default.php b/view/theme/dispy/default.php new file mode 100644 index 000000000..e74ec1a4f --- /dev/null +++ b/view/theme/dispy/default.php @@ -0,0 +1,20 @@ + + + + <?php if(x($page,'title')) echo $page['title'] ?> + + + + + + +
+ +
+
+ + + diff --git a/view/theme/dispy/icons/StatusNet.png b/view/theme/dispy/icons/StatusNet.png new file mode 100644 index 0000000000000000000000000000000000000000..1b5f9a677d324eef9da61e99d6cd2547d818b6bd GIT binary patch literal 1048 zcmV+z1n2vSP)Px#24YJ`L;wK*0RREA=E!aU000SaNLh0L01FZT01FZU(%pXi00007bV*G`2iyZ3 z2qrI*TMNbj00WpwL_t(Y$E}u4NE~Mv$A8bvJF{P|Sv4O@V8K#?5)ex+DaoY}gi2|^ zLm>vq!Fy10%B@F*(1euULux987V(fv5<#J@R9Zqvtk6hHOdIl1kw#f}XJ_80hn=17 z8V!{Czyrg~^Z9@O@AHgIrc&*`$Td&ooPc2;L?NuIP6w)ECNJ{&A=e#l5y7o}{9htK z1ZGQhk#tn%2HP(p_By>+5Vie$4vZ9FDb!=b@@izHuy3z*s;<&>i@zwV1<)dGE#z z3MWqBW->U&BuUH9o^k)e1vZzKaMS5s&(5kMUuUzL7eTez#B_FY^7d_7dwTZ9Ig0pk zXo!t__uhm^giTdsI-Av&7|%LPL8-+1cka-2=1i@95mshr`Rn0BT8l;A9ULTg@E`zN zYilf=I)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AGD&{fr>DDz zP*8F3(AOB7zDeEsRTK(^J6Pip2`V~29AJEU7FK4Dh((Nlr+klCILNLC8aVgXai+5~ zY}`~!ch5zJhsQ`HO8L>@pV8er#OCVqyRaA^-z%`V?A|#*i6Fj*_#W2x2x@q!CBv!r z`}xWjALRHe9V{;8Xl`!i?Ke+x_CzO3*-7@d)see7OHlm>-YbxZMTi80C?0hHy|blbvOMTMHKk zMlimI7@x6;X_7JF%FPfvU%13euMEt>sT28lL!hFWvqBA`}YHQojM;^LVeT zkG9r&S{gFQiUO?wPC~LSndX3@10ZLXGQi&jK ztqlYN@Y=Dne0EEQ$M@XN8>jw(RtjfDhBXFNYzE;_fYOo(zVD%wLVZg9Ai~u38I)2S zdwZ6}T%M-7G~Yk;1kb;CglJhMMe+)(HMdxLC^1Y;&5$UMkt{2@^}0X3km3Z$?GY#Q#$UuaHy4*tH_kVf?~({|zf! V_U*7lOuzsD002ovPDHLkV1mFV?IQpH literal 0 HcmV?d00001 diff --git a/view/theme/dispy/icons/posterous.png b/view/theme/dispy/icons/posterous.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ae6face9fa03401ecba64aa26a2a35bc947ceb GIT binary patch literal 1223 zcmV;&1UUPNP)Px#24YJ`L;wK*0RREA=E!aU000SaNLh0L01FZT01FZU(%pXi00007bV*G`2iyZ3 z2q!EONozd-00c)#L_t(Y$90y$t5sDL#(!&{^L#2+>U(HpBtkamJ%mUsvWyfe6m8HT zA)-GZnlx)rL`{nVXAPo)W=8O8P&o)BFp)|tvqUEeiaxJCEuZ(Ev-kQM?0wF=79O~l zbIxY(wbu82>s!Z8AN^pH#FtP#Xog_`Ab}Ym`b#Xm>+V(7&A`e&Nkaa+1@_i*&8@rl z{+ZQl*MW_l)}L&*xgUSFTlPq13zsj=T)uF2t_IDlUb7Z&E@C)l)>j}zFzc&vsXuP~ z=>LZgteKi({`{Gl+Hivge1v)!443kuKK9%rC?p7Gj9)I5cLFtlTa6NULf%kWl{0W* zT`tQfAx22TC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-G#7|$V z>=u0xVA~#5dYG$qqkv6_R=;9vyWkG}>Gs>)#fu|EjPx#24YJ`L;wK*0RREA=E!aU000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyZ3 z2q-L-(RcCy00T!!L_t(Y$E}vlZd+9pg}-y|xrsxP=Ep(Bkfs%p0jXlZpTvYWKw=a{ zV!(h|c@LhUBc32bo`Dgn#E&dml_nLDpsI>!oaEZR_nf^L+#APE+$w|Ip?$p9T6=%{ z_`2_ZdAK(3{e55u@LbPhz~0F0UYPU#{XFrI9Oa`|KtVl zE`XXduYbhAgama0GolH`Q*b!%QH%&-7$t!+MrQf<-Z$pXza5%22@pjRr5JmYz>*;~ z0!r*39Psbs)5~53H(D9pPd>wv#xg|`LIe{G%%~=;nIKuh6!C}>_^GuGc6rEh5Jm-G zKYGa9-4C$l%)ks21kuc3f)L>wG$Yo;F3G@WGdn(Nt?|1VZ(-v)19ON*U}z#vw8%_Y zipWaT2$)_+3~Y5)7^d2_ni@KzXk?ly5Ckb1O7#pJ(4KS5hiv9jebmm`TFn`njY&*r z6bUFLG|^vk9;JxI5(msV@l|J@?VC$8DLSf*cWzG=eT=&o#*|6{;)#u%4;r~SYB;YCSgtGIBt>Z1W}hSnT6#RUw(R< zr+>fXpO*vr!;;*4f_LMQ3Rr37Y`(Km?|~*3Qw^q3P|fgH#f0}6H@Di{*>dE7Ii~*I z98luuH;Z+aGfIR8Q*$yO&Ap-tVq~H}a|6yr+|+M{a{{nnxV=TIcHi^?yQWtP4=h@w p!0iP|_ln|_{F+}|3fPnQ?tfM55kKXOL)QQR002ovPDHLkV1nQ~x1#_6 literal 0 HcmV?d00001 diff --git a/view/theme/dispy/icons/wordpress.png b/view/theme/dispy/icons/wordpress.png new file mode 100644 index 0000000000000000000000000000000000000000..6a4e36d458d25b375c877ff77b0e832fed8355ee GIT binary patch literal 1346 zcmV-I1-<%-P)Px#24YJ`L;wK*0RREA=E!aU000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyZ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z8X*Lp=OKh(_wL=qVlfu8S!~BCE}yb^oLoN7qeqXBQW6LRioRNFVzC&1zkG@1i{W>& zUs3+pc>MVBhTF?93@ppSG|ggK{Ih=XSO}pE(=;{$F-`Nc8*44tXUR {{ endif }}
- - -
+
$sitelocation
    $langselector
+ + diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css index 74a7809a1..c2c746767 100644 --- a/view/theme/dispy/style.css +++ b/view/theme/dispy/style.css @@ -251,7 +251,7 @@ input[type=submit] { * nav */ nav { - height: 85px; + height: 60px; display: block; background-color: #2e3436; color: #eeeeec; @@ -469,7 +469,7 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link width: 170px; position: absolute; top: -19px; - left: 15px; + left: 7px; } #nav-floater { position: fixed; @@ -480,13 +480,14 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link color: transparent; border-radius: 5px; z-index: 100; - width: 28%; - height: 80px; + width: 300px; + height: 60px; } #nav-buttons { clear: both; list-style: none; padding: 0px; + margin: 0 7px 0 0; height: 25px; } #nav-buttons li { @@ -506,18 +507,24 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link } .search-box { display: inline-block; - height: 20px; - margin: 0; - position: relative; - left: 7px; - top: 5px; - /*width: 210px;*/ + margin: 5px; + position: fixed; + right: 0px; + bottom: 0px; + z-index: 100; + background: #1d1f1d; + border-radius: 5px; } #search-text { border: 1px #eec solid; background: #2e3436; color: #eec; } +.search-box #search-text { + margin: 8px; + width: 10em; + color: #eec; +} nav #user-menu { display: block; width: 75%; @@ -529,8 +536,8 @@ nav #user-menu { border-radius: 5px; background: #555753 url("menu-user-pin.jpg") 98% center no-repeat; clear: both; - top: 12px; - left: 7px; + top: 4px; + left: 10px; } nav #user-menu-label { font-size: 12px; @@ -641,6 +648,7 @@ nav #user-menu-label { background: #ddd; } + /** sysmsg **/ #sysmsg_info { position: fixed; @@ -752,6 +760,7 @@ aside #viewcontacts { margin: 0px 0px 0px 0px; } + /** * contacts block */ @@ -1018,7 +1027,7 @@ aside #viewcontacts { * section */ section { - margin: 20px 8% 0 4%; + margin: 20px 9% 0 4%; font-size: 0.8em; padding-right: 230px; min-width: 475px; @@ -1057,6 +1066,7 @@ section { text-decoration: none; } + /** * items */ @@ -1129,7 +1139,7 @@ section { border-radius: 5px; } [class^="wall-item-tools"] > *, [class^="wall-item-tools"] > * > * { - margin: 0 0 5px 0; + /*margin: 0 0 5px 0;*/ } .wall-item-tools { float: right; @@ -1150,6 +1160,12 @@ section { -ms-transition: all 1s ease-in-out; transition: all 1s ease-in-out; } +.wall-item-subtools1 { + list-style: none; +} +.wall-item-subtools2 { + list-style: none; +} .wall-item-title { font-size: 1.2em; font-weight: bold; @@ -1260,6 +1276,24 @@ section { overflow: auto; width: 100%; } +#connect-services-header { + +} +#connect-services { + margin: 5px 0 0 0; +} +#extra-help-header { + +} +#extra-help { + margin: 5px 0 0 0; +} +#postit-header { + +} +#postit { + margin: 5px 0 0 0; +} /** @@ -2328,7 +2362,7 @@ div[id$="wrapper"] br { .field { /*margin-bottom: 10px;*/ /*padding-bottom: 10px;*/ - /*overflow: auto;*/ + overflow: auto; width: 100%; } .field label, label { diff --git a/view/theme/dispy/theme.php b/view/theme/dispy/theme.php index db8cf5ccd..d451a6b93 100644 --- a/view/theme/dispy/theme.php +++ b/view/theme/dispy/theme.php @@ -132,11 +132,13 @@ function dispy_community_info() { $fostitJS = "javascript: (function() { the_url = '".$a->get_baseurl($ssl_state)."/view/theme/dispy/fpostit/fpostit.php?url=' + - encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + - encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ? - document.getSelection() : document.selection.createRange().text)); + encodeURIComponent(window.location.href) + '&title=' + + encodeURIComponent(document.title) + '&text=' + + encodeURIComponent('' + (window.getSelection + ? window.getSelection() : document.getSelection + ? document.getSelection() : document.selection.createRange().text)); a_funct = function() { - if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) { + if ( !window.open(the_url, 'fpostit', 'location=yes, links=no, scrollbars=no, toolbar=no, width=600, height=300') ) { location.href = the_url; } if (/Firefox/.test(navigator.userAgent)) { @@ -144,18 +146,18 @@ function dispy_community_info() { } else { a_funct(); } - })();" ; + })();"; $aside['$fostitJS'] = $fostitJS; $url = $a->get_baseurl($ssl_state); $aside['$url'] = $url; $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl'); - $a->page['aside'] = replace_macros($tpl, $aside); + $a->page['aside'] .= replace_macros($tpl, $aside); } -//right_aside at profile pages +//aside at profile pages if ($a->argv[0] === "profile") { - // COMMUNITY dispy_community_info(); } + diff --git a/view/theme/dispy/wall_item.tpl b/view/theme/dispy/wall_item.tpl index c9ac20c89..4b973bf93 100644 --- a/view/theme/dispy/wall_item.tpl +++ b/view/theme/dispy/wall_item.tpl @@ -15,44 +15,45 @@
{{ if $item.location }}$item.location {{ endif }}
-
- {{ if $item.lock }}
$item.lock
- {{ else }}
{{ endif }} -
- {{ if $item.star }} - - - {{ endif }} - - {{ if $item.vote }} - - {{ endif }} - - {{ if $item.filer }} - - {{ endif }} - - {{ if $item.plink }} - - {{ endif }} - {{ if $item.edpost }} - - {{ endif }} - -
- {{ if $item.drop.dropping }}{{ endif }} -
- {{ if $item.drop.dropping }}{{ endif }} +
    +
  • + {{ if $item.lock }}
    $item.lock
    + {{ else }}
    {{ endif }} +
  • + {{ if $item.star }} +
  • + + +
  • + {{ endif }} + {{ if $item.vote }} + + {{ endif }} +
+
    + {{ if $item.filer }} +
  • + {{ endif }} + {{ if $item.plink }} + + {{ endif }} + {{ if $item.edpost }} +
  • + {{ endif }} +
  • + {{ if $item.drop.dropping }}
    {{ endif }} + {{ if $item.drop.dropping }}
    {{ endif }} +
  • +
-
$item.title
From 356e654521a3d93e4ba14c4d243df259b0d21c4f Mon Sep 17 00:00:00 2001 From: Simon L'nu Date: Wed, 28 Mar 2012 06:03:04 -0400 Subject: [PATCH 6/6] doh fix Signed-off-by: Simon L'nu --- view/theme/dispy-dark/theme.php | 2 +- view/theme/dispy/theme.php | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/view/theme/dispy-dark/theme.php b/view/theme/dispy-dark/theme.php index 84cbc05cd..372757752 100644 --- a/view/theme/dispy-dark/theme.php +++ b/view/theme/dispy-dark/theme.php @@ -146,7 +146,7 @@ function dispydark_community_info() { } else { a_funct(); } - })();" ; + })();"; $aside['$fostitJS'] = $fostitJS; $url = $a->get_baseurl($ssl_state); diff --git a/view/theme/dispy/theme.php b/view/theme/dispy/theme.php index d451a6b93..190872d01 100644 --- a/view/theme/dispy/theme.php +++ b/view/theme/dispy/theme.php @@ -91,11 +91,13 @@ $(document).ready(function() { $('.floaterflip').css({ backgroundPosition: '-210px -60px' }); + $('.search-box').slideDown('fast'); } else { $('#nav-floater').slideDown('fast'); $('.floaterflip').css({ backgroundPosition: '-190px -60px' }); + $('.search-box').slideUp('fast'); } }; // our trigger for the toolbar button @@ -131,14 +133,12 @@ function dispy_community_info() { $a = get_app(); $fostitJS = "javascript: (function() { - the_url = '".$a->get_baseurl($ssl_state)."/view/theme/dispy/fpostit/fpostit.php?url=' + - encodeURIComponent(window.location.href) + '&title=' - + encodeURIComponent(document.title) + '&text=' - + encodeURIComponent('' + (window.getSelection - ? window.getSelection() : document.getSelection - ? document.getSelection() : document.selection.createRange().text)); + the_url = '".$a->get_baseurl($ssl_state)."/view/theme/dispy-dark/fpostit/fpostit.php?url=' + + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + + encodeURIComponent(''+(window.getSelection ? window.getSelection() : document.getSelection ? + document.getSelection() : document.selection.createRange().text)); a_funct = function() { - if ( !window.open(the_url, 'fpostit', 'location=yes, links=no, scrollbars=no, toolbar=no, width=600, height=300') ) { + if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) { location.href = the_url; } if (/Firefox/.test(navigator.userAgent)) { @@ -153,11 +153,13 @@ function dispy_community_info() { $aside['$url'] = $url; $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl'); - $a->page['aside'] .= replace_macros($tpl, $aside); + $a->page['aside_bottom'] = replace_macros($tpl, $aside); } -//aside at profile pages +// use our 'default.php' instead of the system-wide one +$a->page['template'] = "theme/dispy-dark/default"; + +// aside on profile page if ($a->argv[0] === "profile") { dispy_community_info(); } -