tag cloud feature (enable the feature, then it will show up on your channel page)
This commit is contained in:
parent
a4c77467a7
commit
08023eb099
@ -58,6 +58,7 @@ function get_features() {
|
||||
array('filing', t('Saved Folders'), t('Ability to file posts under folders')),
|
||||
array('dislike', t('Dislike Posts'), t('Ability to dislike posts/comments')),
|
||||
array('star_posts', t('Star Posts'), t('Ability to mark special posts with a star indicator')),
|
||||
array('tagadelic', t('Tag Cloud'), t('Provide a personal tag cloud on your channel page')),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -146,14 +146,16 @@ function tags_sort($a,$b) {
|
||||
|
||||
|
||||
function tagblock($link,$uid,$count = 0,$type = TERM_HASHTAG) {
|
||||
$o = '';
|
||||
$tab = 0;
|
||||
$r = tagadelic($uid,$count,$type);
|
||||
|
||||
if($r) {
|
||||
echo '<div class="tags" align="center">';
|
||||
$o = '<div class="tagblock widget"><h3>' . t('Tags') . '</h3><div class="tags" align="center">';
|
||||
foreach($r as $rr) {
|
||||
echo '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ';
|
||||
$o .= '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ' . "\r\n";
|
||||
}
|
||||
echo '</div>';
|
||||
$o .= '</div></div>';
|
||||
}
|
||||
return $o;
|
||||
}
|
||||
|
@ -47,6 +47,9 @@ function channel_aside(&$a) {
|
||||
$a->set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/channel/' . $a->profile['channel_address'],$a->profile['profile_uid'],true));
|
||||
$a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/channel/' . $a->profile['channel_address'],$cat));
|
||||
}
|
||||
if(feature_enabled($a->profile['profile_uid'],'tagadelic'))
|
||||
$a->set_widget('tagcloud',tagblock('search',$a->profile['profile_uid']));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -3833,3 +3833,51 @@ span.mail-date {
|
||||
float:left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
|
||||
.tag1 {
|
||||
font-size : 1.0em !important;
|
||||
}
|
||||
.tag2 {
|
||||
font-size : 1.2em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag3 {
|
||||
font-size : 1.4em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag4 {
|
||||
font-size : 1.6em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag5 {
|
||||
font-size : 1.8em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag6 {
|
||||
font-size : 2.0em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag7 {
|
||||
font-size : 2.2em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag8 {
|
||||
font-size : 2.4em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag9 {
|
||||
font-size : 2.6em !important;
|
||||
}
|
||||
|
||||
|
||||
.tag10 {
|
||||
font-size : 2.8em !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user