From 0e793dea9bfc21a7c1c369d1db727d7ff900c90a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 8 Oct 2013 21:17:11 -0700 Subject: replace a bunch of graphic icons with vector icons --- include/ItemObject.php | 4 ++-- include/conversation.php | 2 +- js/main.js | 4 ++++ view/theme/redbasic/css/style.css | 14 ++++++++++++-- view/tpl/comment_item.tpl | 32 ++++++++++++++++---------------- view/tpl/conv_item.tpl | 18 +++++++++--------- view/tpl/jot.tpl | 14 +++++++------- view/tpl/search_item.tpl | 4 +++- 8 files changed, 54 insertions(+), 38 deletions(-) diff --git a/include/ItemObject.php b/include/ItemObject.php index bf55b484a..df9386232 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -75,7 +75,7 @@ class Item extends BaseObject { $buttons = ''; $dropping = false; $star = false; - $isstarred = "unstarred"; + $isstarred = "unstarred icon-star-empty"; $indent = ''; $osparkle = ''; $total_children = $this->count_descendants(); @@ -147,7 +147,7 @@ class Item extends BaseObject { 'toggle' => t("toggle star status"), 'classdo' => (($item['item_flags'] & ITEM_STARRED) ? "hidden" : ""), 'classundo' => (($item['item_flags'] & ITEM_STARRED) ? "" : "hidden"), - 'isstarred' => (($item['item_flags'] & ITEM_STARRED) ? "starred" : "unstarred"), + 'isstarred' => (($item['item_flags'] & ITEM_STARRED) ? "starred icon-star" : "unstarred icon-star-empty"), 'starred' => t('starred'), ); diff --git a/include/conversation.php b/include/conversation.php index bcd9ae51a..1820a8568 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -632,7 +632,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') { ); $star = false; - $isstarred = "unstarred"; + $isstarred = "unstarred icon-star-empty"; $lock = false; $likebuttons = false; diff --git a/js/main.js b/js/main.js index cd5040064..0604b81fb 100644 --- a/js/main.js +++ b/js/main.js @@ -658,12 +658,16 @@ function updateConvItems(mode,data) { if(data.result == 1) { $('#starred-' + ident).addClass('starred'); $('#starred-' + ident).removeClass('unstarred'); + $('#starred-' + ident).addClass('icon-star-full'); + $('#starred-' + ident).removeClass('icon-star-empty'); $('#star-' + ident).addClass('hidden'); $('#unstar-' + ident).removeClass('hidden'); } else { $('#starred-' + ident).addClass('unstarred'); $('#starred-' + ident).removeClass('starred'); + $('#starred-' + ident).addClass('icon-star-empty'); + $('#starred-' + ident).removeClass('icon-star-full'); $('#star-' + ident).removeClass('hidden'); $('#unstar-' + ident).addClass('hidden'); } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 96ea90c95..45d480528 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -916,6 +916,7 @@ footer { } .wall-item-lock { + font-size: 1.4em; left: 105px; position: absolute; top: 1px; @@ -944,6 +945,8 @@ footer { .item-tool { float: left; margin-right: 8px; + font-size: 1.2em; + cursor: pointer; } .like-rotator { @@ -2694,11 +2697,14 @@ brain is weird like that */ .on { background-position: -144px -32px; } .off { background-position: 0px -48px; } -.starred { background-position: -16px -48px; } -.unstarred { background-position: -32px -48px; } +/*.starred { background-position: -16px -48px; } +.unstarred { background-position: -32px -48px; }*/ .tagged { background-position: -48px -48px; } .yellow { background-position: -64px -48px; } +.starred { + color: gold; +} .filer-icon { display: block; width: 16px; height: 16px; @@ -3404,3 +3410,7 @@ margin-right: 50px; .pmenu li { margin-left: -20px; } + +.comment-icon, .jot-icons { + font-size: 1.2em; +} \ No newline at end of file diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index f8add5d15..7b6113105 100755 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -16,30 +16,30 @@
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index b5fd9f3b7..09d0b5d57 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -31,7 +31,7 @@
- {{if $item.lock}}
{{$item.lock}}
+ {{if $item.lock}} {{else}}
{{/if}}
{{$item.location}}
{{if $item.verified}}{{/if}} @@ -64,28 +64,28 @@
{{if $item.like}} - + {{/if}} {{if $item.dislike}} - + {{/if}} {{if $item.share}} - + {{/if}} {{if $item.plink}} - + {{/if}} {{if $item.edpost}} - + {{/if}} {{if $item.star}} - + {{/if}} {{if $item.tagger}} - + {{/if}} {{if $item.filer}} - + {{/if}} diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 9a93e5291..12978038c 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -29,26 +29,26 @@
-
+
-
+
- +
- +
- +
diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl index bb796346d..c1c84fc41 100755 --- a/view/tpl/search_item.tpl +++ b/view/tpl/search_item.tpl @@ -17,9 +17,11 @@
- {{if $item.lock}}
{{$item.lock}}
+ {{if $item.lock}} {{else}}
{{/if}}
{{$item.location}}
+ {{if $item.verified}}{{/if}} + {{if $item.unverified}}{{$item.unverified}}{{/if}}
-- cgit v1.2.3