Commit 783ccb56 authored by Zot's avatar Zot

openclipatar: we really don't need all the extra detail for each image. Just...

openclipatar: we really don't need all the extra detail for each image. Just the photo and 'use this'. Leaving the name since that can be searched.
parent a8571937
......@@ -179,7 +179,7 @@ function openclipatar_profile_photo_content_end(&$a, &$o) {
if($_REQUEST['aj']) {
if($entries) {
$o = replace_macros(get_markup_template('avatar-ajax.tpl', 'addon/openclipatar/'), array(
'$use' => t('Use'),
'$use' => t('Use this image'),
'$entries' => $entries,
} else {
......@@ -191,7 +191,7 @@ function openclipatar_profile_photo_content_end(&$a, &$o) {
$o .= replace_macros( $t, array(
'$selectmsg' => t('Or select from a free image:'),
'$prefmsg' => $haveprefclips ? ('<div class="openclipatar-prefclipmsg">' . $prefclipmsg . '</div>') : '',
'$use' => t('Use'),
'$use' => t('Use this image'),
'$defsearch' => array('search', t('Search Term'), $search),
//'$form_security_token' => get_form_security_token('profile_photo'),
'$entries' => $entries,
<div class="openclipatar-ent{{if $entry.extraclass}} {{$entry.extraclass}}{{/if}}" id="openclipatar-ent-{{$}}" >
<div class="openclipatar-img contact-entry-wrapper"><img src="{{$entry.thumb}}" title="{{$entry.dbtext}}" />
<div class="openclipatar-title">{{$entry.title}}</div>
<div class="openclipatar-created">{{$entry.created}}</div>
<!--div class="openclipatar-created">{{$entry.created}}</div>
<div class="openclipatar-ndownloads"><i class="fa fa-arrow-circle-o-down download-icon"></i> {{$entry.ndownloads}}</div>
<div class="openclipatar-nfaves"><i class="fa fa-heart heart-icon"></i> {{$entry.nfaves}}</div>
<div class="openclipatar-nfaves"><i class="fa fa-heart heart-icon"></i> {{$entry.nfaves}}</div-->
<div class="clear"></div>
<div class="openclipatar-use btn btn-default"><a href="{{$entry.uselink}}" onclick="grabProfile(this)"><i class="fa fa-check-square-o use-icon"></i> {{$use}}</a></div>
<div class="openclipatar-use btn btn-default"><a href="{{$entry.uselink}}" onclick="grabProfile(this)">{{$use}}</a></div>
<div class="clear"></div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment