@ -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"> | |||
<input type='hidden' name='form_security_token' value='$form_security_token'> | |||
<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?t=$form_security_token" 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?t=$form_security_token" 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> |
@ -0,0 +1,25 @@ | |||
<div class="contact-entry-wrapper" id="contact-entry-wrapper-$contact.id" > | |||
<div class="contact-entry-photo-wrapper" > | |||
<div class="contact-entry-photo mframe" id="contact-entry-photo-$contact.id" | |||
onmouseover="if (typeof t$contact.id != 'undefined') clearTimeout(t$contact.id); openMenu('contact-photo-menu-button-$contact.id')" | |||
onmouseout="t$contact.id=setTimeout('closeMenu(\'contact-photo-menu-button-$contact.id\'); closeMenu(\'contact-photo-menu-$contact.id\');',200)" > | |||
<a href="$contact.url" title="$contact.img_hover" /><img src="$contact.thumb" $contact.sparkle alt="$contact.name" /></a> | |||
{{ if $contact.photo_menu }} | |||
<span onclick="openClose('contact-photo-menu-$contact.id');" class="fakelink contact-photo-menu-button" id="contact-photo-menu-button-$contact.id">menu</span> | |||
<div class="contact-photo-menu" id="contact-photo-menu-$contact.id"> | |||
<ul> | |||
$contact.photo_menu | |||
</ul> | |||
</div> | |||
{{ endif }} | |||
</div> | |||
</div> | |||
<div class="contact-entry-photo-end" ></div> | |||
<div class="contact-entry-name" id="contact-entry-name-$contact.id" >$contact.name</div> | |||
<div class="contact-entry-end" ></div> | |||
</div> |
@ -0,0 +1,84 @@ | |||
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) | |||
* Licensed under the MIT License (LICENSE.txt). | |||
* | |||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. | |||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. | |||
* Thanks to: Seamus Leahy for adding deltaX and deltaY | |||
* | |||
* Version: 3.0.6 | |||
* | |||
* Requires: 1.2.2+ | |||
*/ | |||
(function($) { | |||
var types = ['DOMMouseScroll', 'mousewheel']; | |||
if ($.event.fixHooks) { | |||
for ( var i=types.length; i; ) { | |||
$.event.fixHooks[ types[--i] ] = $.event.mouseHooks; | |||
} | |||
} | |||
$.event.special.mousewheel = { | |||
setup: function() { | |||
if ( this.addEventListener ) { | |||
for ( var i=types.length; i; ) { | |||
this.addEventListener( types[--i], handler, false ); | |||
} | |||
} else { | |||
this.onmousewheel = handler; | |||
} | |||
}, | |||
teardown: function() { | |||
if ( this.removeEventListener ) { | |||
for ( var i=types.length; i; ) { | |||
this.removeEventListener( types[--i], handler, false ); | |||
} | |||
} else { | |||
this.onmousewheel = null; | |||
} | |||
} | |||
}; | |||
$.fn.extend({ | |||
mousewheel: function(fn) { | |||
return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel"); | |||
}, | |||
unmousewheel: function(fn) { | |||
return this.unbind("mousewheel", fn); | |||
} | |||
}); | |||
function handler(event) { | |||
var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0; | |||
event = $.event.fix(orgEvent); | |||
event.type = "mousewheel"; | |||
// Old school scrollwheel delta | |||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; } | |||
if ( orgEvent.detail ) { delta = -orgEvent.detail/3; } | |||
// New school multidimensional scroll (touchpads) deltas | |||
deltaY = delta; | |||
// Gecko | |||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) { | |||
deltaY = 0; | |||
deltaX = -1*delta; | |||
} | |||
// Webkit | |||
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; } | |||
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; } | |||
// Add event and delta to the front of the arguments | |||
args.unshift(event, delta, deltaX, deltaY); | |||
return ($.event.dispatch || $.event.handle).apply(this, args); | |||
} | |||
})(jQuery); |
@ -0,0 +1,10 @@ | |||
<div id="message-sidebar" class="widget"> | |||
<div id="message-new" class="{{ if $new.sel }}selected{{ endif }}"><a href="$new.url">$new.label</a> </div> | |||
<ul class="message-ul"> | |||
{{ for $tabs as $t }} | |||
<li class="tool {{ if $t.sel }}selected{{ endif }}"><a href="$t.url" class="message-link">$t.label</a></li> | |||
{{ endfor }} | |||
</ul> | |||
</div> |
@ -1,8 +0,0 @@ | |||
- Wall item tools in slightly the wrong place. | |||
- Such and suck likes this in slightly the wrong place. | |||
- Need to remove about 2 pixels from somewhere for 1024 resolution | |||
- Quick and dirty hack to make people with wide already configured use the normal CSS needs to be done properly. | |||
- Community profiles needs to be removed/pluginised or improved. Most profiles are from Facebook. That's unsupported. | |||
- Earth layers needs to be pluginised. | |||
- Twatter needs to be pluginised. | |||
- There's still a LOT of CSS clean up to be done |
@ -0,0 +1,136 @@ | |||
{{if $item.comment_firstcollapsed}} | |||
<div class="hide-comments-outer"> | |||
<span id="hide-comments-total-$item.id" class="hide-comments-total">$item.num_comments</span> <span id="hide-comments-$item.id" class="hide-comments fakelink" onclick="showHideComments($item.id);">$item.hide_text</span> | |||
</div> | |||
<div id="collapsed-comments-$item.id" class="collapsed-comments" style="display: none;"> | |||
{{endif}} | |||
<div id="tread-wrapper-$item.id" class="tread-wrapper $item.toplevel"> | |||
{{ if $item.indent }}{{ else }} | |||
<div class="wall-item-decor"> | |||
<img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" /> | |||
</div> | |||
{{ endif }} | |||
<div class="wall-item-container $item.indent"> | |||
<div class="wall-item-item"> | |||
<div class="wall-item-info"> | |||
<div class="contact-photo-wrapper" | |||
onmouseover="if (typeof t$item.id != 'undefined') clearTimeout(t$item.id); openMenu('wall-item-photo-menu-button-$item.id')" | |||
onmouseout="t$item.id=setTimeout('closeMenu(\'wall-item-photo-menu-button-$item.id\'); closeMenu(\'wall-item-photo-menu-$item.id\');',200)"> | |||
<a href="$item.profile_url" target="redir" title="$item.linktitle" class="contact-photo-link" id="wall-item-photo-link-$item.id"> | |||
<img src="$item.thumb" class="contact-photo$item.sparkle" id="wall-item-photo-$item.id" alt="$item.name" /> | |||
</a> | |||
<a href="#" rel="#wall-item-photo-menu-$item.id" class="contact-photo-menu-button icon s16 menu" id="wall-item-photo-menu-button-$item.id">menu</a> | |||
<ul class="contact-menu menu-popup" id="wall-item-photo-menu-$item.id"> | |||
$item.item_photo_menu | |||
</ul> | |||
</div> | |||
</div> | |||
<div class="wall-item-actions-author"> | |||
<a href="$item.profile_url" target="redir" title="$item.linktitle" class="wall-item-name-link"><span class="wall-item-name$item.sparkle">$item.name</span></a> | |||
<span class="wall-item-ago">- | |||
{{ if $item.plink }}<a class="link$item.sparkle" title="$item.plink.title" href="$item.plink.href" style="color: #999">$item.ago</a>{{ else }} $item.ago {{ endif }} | |||
{{ if $item.lock }} - <span class="fakelink" style="color: #999" onclick="lockview(event,$item.id);">$item.lock</span> {{ endif }} | |||
</span> | |||
</div> | |||
<div class="wall-item-content"> | |||
{{ if $item.title }}<h2><a href="$item.plink.href">$item.title</a></h2>{{ endif }} | |||
$item.body | |||
{{ if $item.has_cats }} | |||
<div class="categorytags"><span>$item.txt_cats {{ for $item.categories as $cat }}$cat.name <a href="$cat.removeurl" title="$remove">[$remove]</a> {{ if $cat.last }}{{ else }}, {{ endif }}{{ endfor }} | |||
</div> | |||
{{ endif }} | |||
{{ if $item.has_folders }} | |||
<div class="filesavetags"><span>$item.txt_folders {{ for $item.folders as $cat }}$cat.name <a href="$cat.removeurl" title="$remove">[$remove]</a> {{ if $cat.last }}{{ else }}, {{ endif }}{{ endfor }} | |||
</div> | |||
{{ endif }} | |||
</div> | |||
</div> | |||
<div class="wall-item-bottom"> | |||
<div class="wall-item-links"> | |||
</div> | |||
<div class="wall-item-tags"> | |||
{{ for $item.tags as $tag }} | |||
<span class='tag'>$tag</span> | |||
{{ endfor }} | |||
</div> | |||
</div> | |||
<div class="wall-item-bottom"> | |||
<div class=""> | |||
</div> | |||
<div class="wall-item-actions"> | |||
<div class="wall-item-actions-social"> | |||
{{ if $item.vote }} | |||
<a href="#" id="like-$item.id" class="icon like" title="$item.vote.like.0" onclick="dolike($item.id,'like'); return false">$item.vote.like.1</a> | |||
<a href="#" id="dislike-$item.id" class="icon dislike" title="$item.vote.dislike.0" onclick="dolike($item.id,'dislike'); return false"></a> | |||
{{ endif }} | |||
{{ if $item.vote.share }} | |||
<a href="#" id="share-$item.id" class="icon recycle" title="$item.vote.share.0" onclick="jotShare($item.id); return false"></a> | |||
{{ endif }} | |||
{{ if $item.star }} | |||
<a href="#" id="starred-$item.id" onclick="dostar($item.id); return false;" class="star-item icon $item.isstarred" title="$item.star.toggle"> | |||
<img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a> | |||
<a href="#" id="tagger-$item.id" onclick="itemTag($item.id); return false;" class="tag-item icon tagged" title="$item.star.tagger"></a> | |||
{{ endif }} | |||
{{ if $item.filer }} | |||
<a href="#" id="filer-$item.id" onclick="itemFiler($item.id); return false;" class="filer-item icon file-as" title="$item.star.filer"></a> | |||
{{ endif }} | |||
{{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }} | |||
</div> | |||
<div class="wall-item-actions-tools"> | |||
{{ if $item.drop.pagedrop }} | |||
<input type="checkbox" title="$item.drop.select" name="itemselected[]" class="item-select" value="$item.id" /> | |||
{{ endif }} | |||
{{ if $item.drop.dropping }} | |||
<a href="item/drop/$item.id" onclick="return confirmDelete();" class="icon drop" title="$item.drop.delete">$item.drop.delete</a> | |||
{{ endif }} | |||
{{ if $item.edpost }} | |||
<a class="icon pencil" href="$item.edpost.0" title="$item.edpost.1"></a> | |||
{{ endif }} | |||
</div> | |||
<div class="wall-item-location">$item.location </div> | |||
</div> | |||
</div> | |||
<div class="wall-item-bottom"> | |||
<div class="wall-item-links"></div> | |||
<div class="wall-item-like" id="wall-item-like-$item.id">$item.like</div> | |||
<div class="wall-item-dislike" id="wall-item-dislike-$item.id">$item.dislike</div> | |||
</div> | |||
</div> | |||
{{ if $item.threaded }} | |||
{{ if $item.comment }} | |||
<div class="wall-item-comment-wrapper $item.indent" > | |||
$item.comment | |||
</div> | |||
{{ endif }} | |||
{{ endif }} | |||
{{ if $item.flatten }} | |||
<div class="wall-item-comment-wrapper" > | |||
$item.comment | |||
</div> | |||
{{ endif }} | |||
{{ for $item.children as $item }} | |||
{{ inc $item.template }}{{ endinc }} | |||
{{ endfor }} | |||
</div> | |||
{{if $item.comment_lastcollapsed}}</div>{{endif}} |