styling for the directory page when it comes to ratings
This commit is contained in:
parent
36b756e4cd
commit
c417a43338
@ -192,6 +192,8 @@ function directory_content(&$a) {
|
|||||||
|
|
||||||
if($rr['total_ratings'])
|
if($rr['total_ratings'])
|
||||||
$total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']);
|
$total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']);
|
||||||
|
else
|
||||||
|
$total_ratings = '';
|
||||||
|
|
||||||
$profile = $rr;
|
$profile = $rr;
|
||||||
|
|
||||||
|
@ -21,15 +21,6 @@ function dirsearch_content(&$a) {
|
|||||||
json_return_and_die($ret);
|
json_return_and_die($ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// If you've got a public directory server, you probably shouldn't block public access
|
|
||||||
|
|
||||||
if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
|
|
||||||
$ret['message'] = 'permission denied';
|
|
||||||
json_return_and_die($ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(argc() > 1 && argv(1) === 'sites') {
|
if(argc() > 1 && argv(1) === 'sites') {
|
||||||
$ret = list_public_sites();
|
$ret = list_public_sites();
|
||||||
json_return_and_die($ret);
|
json_return_and_die($ret);
|
||||||
|
@ -12,12 +12,6 @@ function ratingsearch_init(&$a) {
|
|||||||
json_return_and_die($ret);
|
json_return_and_die($ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
|
|
||||||
$ret['message'] = 'permission denied';
|
|
||||||
json_return_and_die($ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(argc() > 1)
|
if(argc() > 1)
|
||||||
$hash = argv(1);
|
$hash = argv(1);
|
||||||
|
|
||||||
|
@ -3,8 +3,15 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.directory-name {
|
.directory-name {
|
||||||
text-align: center;
|
/* text-align: center; */
|
||||||
|
float: left;
|
||||||
|
width: 250px;
|
||||||
}
|
}
|
||||||
|
.directory-rating {
|
||||||
|
float: right;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.directory-photo {
|
.directory-photo {
|
||||||
margin-left: 25px;
|
margin-left: 25px;
|
||||||
}
|
}
|
||||||
|
@ -9,4 +9,8 @@
|
|||||||
|
|
||||||
.directory-item {
|
.directory-item {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rating-value {
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
@ -16,16 +16,9 @@
|
|||||||
<div class="contact-name" id="directory-name-{{$entry.id}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div>
|
<div class="contact-name" id="directory-name-{{$entry.id}}" ><a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="icon-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</div>
|
||||||
|
|
||||||
{{*if $entry.rateme*}}
|
{{*if $entry.rateme*}}
|
||||||
<div id="dir-rating-wrapper-{{$entry.id}}" style="float:right; width: 20%;">{{if $entry.total_ratings}}<a href="prep/{{$entry.hash}}">
|
<div id="dir-rating-wrapper-{{$entry.id}}" class="directory-rating" >{{if $entry.total_ratings}}<a href="ratings/{{$entry.hash}}"><button class="btn btn-default">{{$entry.total_ratings}}</button></a>{{/if}}
|
||||||
{{$entry.total_ratings}}</a>{{/if}}<br />
|
<button class="btn btn-default"><i class="icon-pencil"></i></button>
|
||||||
<div id="dir-rating-slider-{{$entry.id}}" class="dir-slider" style="height: 32px; margin-right:10px;">
|
|
||||||
<input id="dir-rating-range-{{$entry.id}}" type="text" value="0" name="fake-rating-{{$entry.id}}" style="display: none;">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="clear"></div>
|
|
||||||
<script>
|
|
||||||
$("#dir-rating-range-{{$entry.id}}").jRange({ from: -10, to: 10, step: 1, width:'100%', showLabels: false, showScale: true, scale : [ '-10','-5','0','5','10' ], onstatechange: function(v) { $("#contact-rating-mirror").val(v); } });
|
|
||||||
</script>
|
|
||||||
{{*/if*}}
|
{{*/if*}}
|
||||||
{{if $entry.public_forum}}
|
{{if $entry.public_forum}}
|
||||||
<div class="contact-forum">
|
<div class="contact-forum">
|
||||||
|
@ -12,9 +12,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="prep-details">
|
<div class="prep-details">
|
||||||
<a href="{{$r.xchan_url}}" class="directory-profile-link" id="directory-profile-link-{{$r.xchan_hash}}" ><div class="contact-name">{{$r.xchan_name}}</div></a>
|
<a href="{{$r.xchan_url}}" class="directory-profile-link" id="directory-profile-link-{{$r.xchan_hash}}" ><div class="contact-name">{{$r.xchan_name}}</div></a>
|
||||||
{{$rating_lbl}} {{$r.xlink_rating}}
|
<div class="rating-value">{{$rating_lbl}} {{$r.xlink_rating}}</div>
|
||||||
{{if $r.xlink_rating_text}}
|
{{if $r.xlink_rating_text}}
|
||||||
{{$rating_text_label}} {{$r.xlink_rating_text}}
|
<div class="rating-text">{{$rating_text_label}} {{$r.xlink_rating_text}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
Reference in New Issue
Block a user