aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-red
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-16 22:59:09 -0700
committerfriendica <info@friendica.com>2012-04-16 22:59:09 -0700
commita7421990350e2409ee90957dab37e1ff1fc272df (patch)
tree0cf7b9ff52b3344d8e2b8540a3bb4cfe3f1f59e0 /view/theme/diabook-red
parent7ebca2b37d98f5865f6d006300c894ec9c44f165 (diff)
parent621bf6bab4680da3f92da56ecb12c16e194ebbbb (diff)
downloadvolse-hubzilla-a7421990350e2409ee90957dab37e1ff1fc272df.tar.gz
volse-hubzilla-a7421990350e2409ee90957dab37e1ff1fc272df.tar.bz2
volse-hubzilla-a7421990350e2409ee90957dab37e1ff1fc272df.zip
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'view/theme/diabook-red')
-rw-r--r--view/theme/diabook-red/admin_users.tpl88
-rwxr-xr-xview/theme/diabook-red/ch_directory_item.tpl10
-rw-r--r--view/theme/diabook-red/comment_item.tpl14
-rwxr-xr-x[-rw-r--r--]view/theme/diabook-red/directory_item.tpl1
-rwxr-xr-x[-rw-r--r--]view/theme/diabook-red/group_side.tpl5
-rwxr-xr-xview/theme/diabook-red/icons/block.pngbin0 -> 335 bytes
-rw-r--r--view/theme/diabook-red/nav.tpl18
-rw-r--r--view/theme/diabook-red/nets.tpl16
-rw-r--r--view/theme/diabook-red/style-network.css4
-rw-r--r--view/theme/diabook-red/style.css8
-rw-r--r--view/theme/diabook-red/theme.php8
11 files changed, 146 insertions, 26 deletions
diff --git a/view/theme/diabook-red/admin_users.tpl b/view/theme/diabook-red/admin_users.tpl
new file mode 100644
index 000000000..40f94f5fe
--- /dev/null
+++ b/view/theme/diabook-red/admin_users.tpl
@@ -0,0 +1,88 @@
+<script>
+ function confirm_delete(uname){
+ return confirm( "$confirm_delete".format(uname));
+ }
+ function confirm_delete_multi(){
+ return confirm("$confirm_delete_multi");
+ }
+ function selectall(cls){
+ $("."+cls).attr('checked','checked');
+ return false;
+ }
+</script>
+<div id='adminpage'>
+ <h1>$title - $page</h1>
+
+ <form action="$baseurl/admin/users" method="post">
+
+ <h3>$h_pending</h3>
+ {{ if $pending }}
+ <table id='pending'>
+ <thead>
+ <tr>
+ {{ for $th_pending as $th }}<th>$th</th>{{ endfor }}
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ for $pending as $u }}
+ <tr>
+ <td class="created">$u.created</td>
+ <td class="name">$u.name</td>
+ <td class="email">$u.email</td>
+ <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_$u.hash" name="pending[]" value="$u.hash" /></td>
+ <td class="tools">
+ <a href="$baseurl/regmod/allow/$u.hash" title='$approve'><span class='icon like'></span></a>
+ <a href="$baseurl/regmod/deny/$u.hash" title='$deny'><span class='icon dislike'></span></a>
+ </td>
+ </tr>
+ {{ endfor }}
+ </tbody>
+ </table>
+ <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">$select_all</a></div>
+ <div class="submit"><input type="submit" name="page_users_deny" value="$deny"/> <input type="submit" name="page_users_approve" value="$approve" /></div>
+ {{ else }}
+ <p>$no_pending</p>
+ {{ endif }}
+
+
+
+
+ <h3>$h_users</h3>
+ {{ if $users }}
+ <table id='users'>
+ <thead>
+ <tr>
+ <th></th>
+ {{ for $th_users as $th }}<th>$th</th>{{ endfor }}
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ for $users as $u }}
+ <tr>
+ <td><img src="$u.micro" alt="$u.nickname" title="$u.nickname"></td>
+ <td class='name'><a href="$u.url" title="$u.nickname" >$u.name</a></td>
+ <td class='email'>$u.email</td>
+ <td class='register_date'>$u.register_date</td>
+ <td class='login_date'>$u.login_date</td>
+ <td class='lastitem_date'>$u.lastitem_date</td>
+ <td class='login_date'>$u.page-flags</td>
+ <td class="checkbox"><input type="checkbox" class="users_ckbx" id="id_user_$u.uid" name="user[]" value="$u.uid"/></td>
+ <td class="tools" style="width:60px;">
+ <a href="$baseurl/admin/users/block/$u.uid" title='{{ if $u.blocked }}$unblock{{ else }}$block{{ endif }}'><span class='icon block {{ if $u.blocked==0 }}dim{{ endif }}'></span></a>
+ <a href="$baseurl/admin/users/delete/$u.uid" title='$delete' onclick="return confirm_delete('$u.name')"><span class='icon ad_drop'></span></a>
+ </td>
+ </tr>
+ {{ endfor }}
+ </tbody>
+ </table>
+ <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">$select_all</a></div>
+ <div class="submit"><input type="submit" name="page_users_block" value="$block/$unblock" /> <input type="submit" name="page_users_delete" value="$delete" onclick="return confirm_delete_multi()" /></div>
+ {{ else }}
+ NO USERS?!?
+ {{ endif }}
+ </form>
+</div>
diff --git a/view/theme/diabook-red/ch_directory_item.tpl b/view/theme/diabook-red/ch_directory_item.tpl
new file mode 100755
index 000000000..db1936e4b
--- /dev/null
+++ b/view/theme/diabook-red/ch_directory_item.tpl
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-$id" >
+ <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" >
+ <div class="directory-photo" id="directory-photo-$id" >
+ <a href="$profile-link" class="directory-profile-link" id="directory-profile-link-$id" >
+ <img class="directory-photo-img" src="$photo" alt="$alt-text" title="$alt-text" />
+ </a>
+ </div>
+ </div>
+</div>
diff --git a/view/theme/diabook-red/comment_item.tpl b/view/theme/diabook-red/comment_item.tpl
index 47046c371..ee4dfba45 100644
--- a/view/theme/diabook-red/comment_item.tpl
+++ b/view/theme/diabook-red/comment_item.tpl
@@ -12,13 +12,13 @@
</div>
<div class="comment-edit-photo-end"></div>
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id)" onBlur="commentClose(this,$id);" >$comment</textarea>
- <a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
- <a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
- <a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
- <a class="icon underline" onclick="insertFormatting('$comment','u',$id);">u</a>
- <a class="icon italic" onclick="insertFormatting('$comment','i',$id);">i</a>
- <a class="icon bold" onclick="insertFormatting('$comment','b',$id);">b</a>
- <a class="icon quote" onclick="insertFormatting('$comment','quote',$id);">quote</a>
+ <a class="icon bb-image" style="cursor: pointer;" onclick="insertFormatting('$comment','img',$id);">img</a>
+ <a class="icon bb-url" style="cursor: pointer;" onclick="insertFormatting('$comment','url',$id);">url</a>
+ <a class="icon bb-video" style="cursor: pointer;" onclick="insertFormatting('$comment','video',$id);">video</a>
+ <a class="icon underline" style="cursor: pointer;" onclick="insertFormatting('$comment','u',$id);">u</a>
+ <a class="icon italic" style="cursor: pointer;" onclick="insertFormatting('$comment','i',$id);">i</a>
+ <a class="icon bold" style="cursor: pointer;" onclick="insertFormatting('$comment','b',$id);">b</a>
+ <a class="icon quote" style="cursor: pointer;" onclick="insertFormatting('$comment','quote',$id);">quote</a>
{{ if $qcomment }}
<select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" >
<option value=""></option>
diff --git a/view/theme/diabook-red/directory_item.tpl b/view/theme/diabook-red/directory_item.tpl
index db1936e4b..bc2af16c2 100644..100755
--- a/view/theme/diabook-red/directory_item.tpl
+++ b/view/theme/diabook-red/directory_item.tpl
@@ -7,4 +7,5 @@
</a>
</div>
</div>
+ <div class="contact-name" id="directory-name-$id">$name</div>
</div>
diff --git a/view/theme/diabook-red/group_side.tpl b/view/theme/diabook-red/group_side.tpl
index 642019049..8600402f2 100644..100755
--- a/view/theme/diabook-red/group_side.tpl
+++ b/view/theme/diabook-red/group_side.tpl
@@ -25,5 +25,10 @@
{{ endfor }}
</ul>
</div>
+ {{ if $ungrouped }}
+ <div id="sidebar-ungrouped">
+ <a href="nogroup">$ungrouped</a>
+ </div>
+ {{ endif }}
</div>
diff --git a/view/theme/diabook-red/icons/block.png b/view/theme/diabook-red/icons/block.png
new file mode 100755
index 000000000..a0b1dffe9
--- /dev/null
+++ b/view/theme/diabook-red/icons/block.png
Binary files differ
diff --git a/view/theme/diabook-red/nav.tpl b/view/theme/diabook-red/nav.tpl
index dc3fd0cde..0453ec7ee 100644
--- a/view/theme/diabook-red/nav.tpl
+++ b/view/theme/diabook-red/nav.tpl
@@ -26,6 +26,7 @@
<li id="nav-contacts-all"><a href="contacts">$nav.contacts.1</a></li>
</ul>
</li>
+
{{ endif }}
{{ if $nav.messages }}
@@ -63,16 +64,18 @@
</li>
{{ endif }}
+ <li style="width: 1%; height: 1px;float: right;"></li>
+
<li id="nav-site-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-site-menu"><span class="icon s22 gear">Site</span></a>
<ul id="nav-site-menu" class="menu-popup">
{{ if $nav.manage }}<li><a class="$nav.manage.2" href="$nav.manage.0" title="$nav.manage.3">$nav.manage.1</a></li>{{ endif }}
{{ if $nav.settings }} <li><a class="$nav.search.2" onClick="restore_boxes()" title="Restore right-hand column" style="cursor: pointer;">Restore right-hand column</a></li>{{ endif }}
-
- {{ if $nav.help }} <li><a class="$nav.help.2" target="friendika-help" href="$nav.help.0" title="$nav.help.3" >$nav.help.1</a></li>{{ endif }}
+
+ {{ if $nav.help }} <li><a class="$nav.help.2" target="friendika-help" href="$nav.help.0" title="$nav.help.3" >$nav.help.1</a></li>{{ endif }}
<li><a class="$nav.search.2" href="friendica" title="Site Info / Impressum" >Info/Impressum</a></li>
-
+
{{ if $nav.settings }}<li><a class="menu-sep $nav.settings.2" href="$nav.settings.0" title="$nav.settings.3">$nav.settings.1</a></li>{{ endif }}
{{ if $nav.admin }}<li><a class="$nav.admin.2" href="$nav.admin.0" title="$nav.admin.3" >$nav.admin.1</a></li>{{ endif }}
@@ -82,13 +85,13 @@
</ul>
</li>
+
{{ if $nav.directory }}
<li id="nav-directory-link" class="nav-menu $sel.directory">
<a class="$nav.directory.2" href="$nav.directory.0" title="$nav.directory.3" >$nav.directory.1</a>
</li>
{{ endif }}
-
{{ if $nav.apps }}
<li id="nav-apps-link" class="nav-menu $sel.apps">
<a class=" $nav.apps.2" href="#" rel="#nav-apps-menu" title="$nav.apps.3" >$nav.apps.1</a>
@@ -100,7 +103,7 @@
</li>
{{ endif }}
- {{ if $nav.settings }}
+ {{ if $nav.home }}
<li id="nav-home-link" class="nav-menu $sel.home">
<a class="$nav.home.2" href="$nav.home.0" title="$nav.home.3" >$nav.home.1
<span id="home-update" class="nav-notify"></span></a>
@@ -137,9 +140,10 @@
</nav>
-<div style="position: fixed; bottom: 5px; right: 10px;"><a href="javascript:scroll(0,0); "><img src="view/theme/diabook-red/icons/scroll_top.png" title="scroll to top"></a></div>
+<div style="position: fixed; bottom: 5px; right: 10px;"><a href="javascript:scroll(0,0); "><img src="view/theme/diabook/icons/scroll_top.png" title="scroll to top"></a></div>
<div style="position: fixed; bottom: 3px; left: 25px;">$langselector</div>
-<div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook-red/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>
+<div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>
+
diff --git a/view/theme/diabook-red/nets.tpl b/view/theme/diabook-red/nets.tpl
index 5addf38b1..be25ddee1 100644
--- a/view/theme/diabook-red/nets.tpl
+++ b/view/theme/diabook-red/nets.tpl
@@ -1,11 +1,15 @@
-<div id="nets-sidebar" class="widget">
- <h3>$title</h3>
+<div id="profile_side">
+ <h3 style="margin-left: 2px;">$title</h3>
<div id="nets-desc">$desc</div>
-
- <ul class="nets-ul">
- <li class="tool"><a style="text-decoration: none;" href="$base" class="nets-link{{ if $sel_all }} nets-selected{{ endif }} nets-all">$all</a></li>
+
+ <ul class="menu-profile-side">
+ <li class="menu-profile-list">
+ <span class="menu-profile-icon {{ if $sel_all }}group_selected{{else}}group_unselected{{ endif }}"></span>
+ <a style="text-decoration: none;" href="$base" class="menu-profile-list-item">$all</a></li>
{{ for $nets as $net }}
- <li class="tool"><a href="$base?nets=$net.ref" class="nets-link{{ if $net.selected }} nets-selected{{ endif }}">$net.name</a></li>
+ <li class="menu-profile-list">
+ <span class="menu-profile-icon {{ if $net.selected }}group_selected{{else}}group_unselected{{ endif }}"></span>
+ <a href="$base?nets=$net.ref" class="menu-profile-list-item">$net.name</a></li>
{{ endfor }}
</ul>
</div>
diff --git a/view/theme/diabook-red/style-network.css b/view/theme/diabook-red/style-network.css
index 03357f766..115868711 100644
--- a/view/theme/diabook-red/style-network.css
+++ b/view/theme/diabook-red/style-network.css
@@ -1064,6 +1064,10 @@ aside #search-text {
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
+-moz-border-bottom-colors: #dbdbdb;
+ -moz-border-top-colors: #999;
+ -moz-border-left-colors: #999;
+ -moz-border-right-colors: #dbdbdb;
}
aside #side-follow-url {
width: 150px;
diff --git a/view/theme/diabook-red/style.css b/view/theme/diabook-red/style.css
index 6ca2370de..122096213 100644
--- a/view/theme/diabook-red/style.css
+++ b/view/theme/diabook-red/style.css
@@ -168,13 +168,17 @@
}
.edit {background-image: url("../../../view/theme/diabook-red/icons/pencil2.png");
display: block; width: 28px; height: 28px; background-repeat: no-repeat;}
-
+.icon.block {background-image: url("../../../view/theme/diabook/icons/block.png");
+ display: block; width: 16px; height: 16px; background-repeat: no-repeat;}
+.icon.block.dim {background-image: url("../../../view/theme/diabook/icons/block.png");
+ display: block; width: 16px; height: 16px; background-repeat: no-repeat; opacity: 0.3;}
+.icon.ad_drop { background-image: url("../../../view/theme/diabook/icons/drop.png");
+ display: block; margin-left:5px; width: 16px; height: 16px; background-repeat: no-repeat;}
.article { background-position: -50px 0px;}
/*.audio { background-position: -70px 0px;}*/
-.block { background-position: -90px 0px;}
/*.drop { background-position: -110px 0px;}*/
/*.drophide { background-position: -130px 0px;}*/
/*.edit { background-position: -150px 0px;}*/
diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php
index 479a0130a..1ef65d83e 100644
--- a/view/theme/diabook-red/theme.php
+++ b/view/theme/diabook-red/theme.php
@@ -3,13 +3,13 @@
/*
* Name: Diabook-red
* Description: Diabook-red: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
- * Version: (Version: 1.018)
+ * Version: (Version: 1.019)
* Author:
*/
//print diabook-version for debugging
-$diabook_version = "Diabook-red (Version: 1.018)";
+$diabook_version = "Diabook-red (Version: 1.019)";
$a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages
@@ -35,7 +35,7 @@ function diabook_red_community_info(){
0,
9
);
- $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+ $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
if(count($r)) {
$photo = 'thumb';
foreach($r as $rr) {
@@ -114,7 +114,7 @@ function diabook_red_community_info(){
dbesc(t('Profile Photos'))
);
if(count($r)) {
- $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
+ $tpl = file_get_contents( dirname(__file__).'/ch_directory_item.tpl');
foreach($r as $rr) {
$photo_page = $a->get_baseurl() . '/photos/' . $rr['nickname'] . '/image/' . $rr['resource-id'];
$photo_url = $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . $rr['scale'] .'.jpg';