From 0d4fab4ee3cba6db669d6b7e608bfbbba8e8d3dc Mon Sep 17 00:00:00 2001 From: tommy tomson Date: Tue, 10 Apr 2012 00:55:39 +0200 Subject: bbcode toolbar attached to the comment text field minor css-fixes --- view/theme/diabook/comment_item.tpl | 39 +++++++++++++++++++++++++++++++++ view/theme/diabook/icons/bb-image.png | Bin 0 -> 697 bytes view/theme/diabook/icons/bb-video.png | Bin 0 -> 917 bytes view/theme/diabook/icons/bold.png | Bin 0 -> 699 bytes view/theme/diabook/icons/italic.png | Bin 0 -> 577 bytes view/theme/diabook/icons/underline.png | Bin 0 -> 604 bytes view/theme/diabook/style-network.css | 3 ++- view/theme/diabook/style-profile.css | 3 ++- view/theme/diabook/style.css | 24 +++++++++++++++++++- view/theme/diabook/theme.php | 33 +++++++++++++++++++++++++--- 10 files changed, 96 insertions(+), 6 deletions(-) create mode 100644 view/theme/diabook/comment_item.tpl create mode 100644 view/theme/diabook/icons/bb-image.png create mode 100644 view/theme/diabook/icons/bb-video.png create mode 100644 view/theme/diabook/icons/bold.png create mode 100644 view/theme/diabook/icons/italic.png create mode 100644 view/theme/diabook/icons/underline.png (limited to 'view/theme/diabook') diff --git a/view/theme/diabook/comment_item.tpl b/view/theme/diabook/comment_item.tpl new file mode 100644 index 000000000..4668b9ce3 --- /dev/null +++ b/view/theme/diabook/comment_item.tpl @@ -0,0 +1,39 @@ +
+
+ + + + + + + +
+ $mytitle +
+
+ + video + img + i + u + b + {{ if $qcomment }} + + {{ endif }} + +
+ + +
+
+ +
diff --git a/view/theme/diabook/icons/bb-image.png b/view/theme/diabook/icons/bb-image.png new file mode 100644 index 000000000..9a1b32113 Binary files /dev/null and b/view/theme/diabook/icons/bb-image.png differ diff --git a/view/theme/diabook/icons/bb-video.png b/view/theme/diabook/icons/bb-video.png new file mode 100644 index 000000000..bd323531e Binary files /dev/null and b/view/theme/diabook/icons/bb-video.png differ diff --git a/view/theme/diabook/icons/bold.png b/view/theme/diabook/icons/bold.png new file mode 100644 index 000000000..8fab2a10f Binary files /dev/null and b/view/theme/diabook/icons/bold.png differ diff --git a/view/theme/diabook/icons/italic.png b/view/theme/diabook/icons/italic.png new file mode 100644 index 000000000..bf4b2b81d Binary files /dev/null and b/view/theme/diabook/icons/italic.png differ diff --git a/view/theme/diabook/icons/underline.png b/view/theme/diabook/icons/underline.png new file mode 100644 index 000000000..b1b4d3574 Binary files /dev/null and b/view/theme/diabook/icons/underline.png differ diff --git a/view/theme/diabook/style-network.css b/view/theme/diabook/style-network.css index 9e57c17d2..ed7c76cbe 100644 --- a/view/theme/diabook/style-network.css +++ b/view/theme/diabook/style-network.css @@ -1241,6 +1241,7 @@ transition: all 0.2s ease-in-out; padding: 5px; margin-bottom: 0px; width: 575px; + padding-top: 10px; } .wall-item-decor { position: absolute; @@ -1385,7 +1386,7 @@ transition: all 0.2s ease-in-out; padding-left: 12px; } .wall-item-comment-wrapper { - margin: 1px 5px 1px 80px; + margin: 1px 5px 17px 80px; } .wall-item-comment-wrapper .comment-edit-photo { display: none; diff --git a/view/theme/diabook/style-profile.css b/view/theme/diabook/style-profile.css index 95e9061ba..51eb61253 100644 --- a/view/theme/diabook/style-profile.css +++ b/view/theme/diabook/style-profile.css @@ -1235,6 +1235,7 @@ transition: all 0.2s ease-in-out; padding: 5px; margin-bottom: 0px; width: 575px; + padding-top: 10px; } .wall-item-decor { position: absolute; @@ -1379,7 +1380,7 @@ transition: all 0.2s ease-in-out; padding-left: 12px; } .wall-item-comment-wrapper { - margin: 1px 5px 1px 80px; + margin: 1px 5px 17px 80px; } .wall-item-comment-wrapper .comment-edit-photo { display: none; diff --git a/view/theme/diabook/style.css b/view/theme/diabook/style.css index d11e3191a..229076484 100644 --- a/view/theme/diabook/style.css +++ b/view/theme/diabook/style.css @@ -83,6 +83,27 @@ #adminpage .selectall { text-align: right; } /* icons */ +.icon.bold{ + background-image: url("../../../view/theme/diabook/icons/bold.png"); + float: right; + margin-top: 2px;} +.icon.underline{ + background-image: url("../../../view/theme/diabook/icons/underline.png"); + float: right; + margin-top: 2px;} +.icon.italic{ + background-image: url("../../../view/theme/diabook/icons/italic.png"); + float: right; + margin-top: 2px;} +.icon.bb-image{ + background-image: url("../../../view/theme/diabook/icons/bb-image.png"); + float: right; + margin-top: 2px;} +.icon.bb-video{ + background-image: url("../../../view/theme/diabook/icons/bb-video.png"); + float: right; + margin-top: 2px;} + .icon.contacts { background-image: url("../../../view/theme/diabook/icons/contacts.png");} .icon.notifications { @@ -1269,6 +1290,7 @@ body .pageheader{ padding: 5px; margin-bottom: 0px; width: 775px; + padding-top: 10px; } .wall-item-decor { @@ -1516,7 +1538,7 @@ body .pageheader{ padding-left: 12px; } .wall-item-comment-wrapper { - margin: 1px 5px 1px 80px; + margin: 1px 5px 17px 80px; } .wall-item-comment-wrapper .comment-edit-photo { display: none; diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index 924639625..bf31c08eb 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -3,13 +3,13 @@ /* * Name: Diabook * Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu - * Version: (Version: 1.015) + * Version: (Version: 1.016) * Author: */ //print diabook-version for debugging -$diabook_version = "Diabook (Version: 1.015)"; +$diabook_version = "Diabook (Version: 1.016)"; $a->page['htmlhead'] .= sprintf('', $diabook_version); //change css on network and profilepages @@ -519,4 +519,31 @@ function restore_boxes(){ $.cookie("close_lastlikes","2", { expires: 365, path: "/" }); alert("Right-hand column was restored. Please refresh your browser"); } -';} \ No newline at end of file +';} + +$a->page['htmlhead'] .= ' + + '; \ No newline at end of file -- cgit v1.2.3