Display item description if available
This commit is contained in:
parent
fd2a5f5d4b
commit
3bda176b0d
@ -1 +1 @@
|
||||
Removed padding from fancybox
|
||||
Display item description if available
|
@ -30,6 +30,12 @@ class theme_3nids_Core {
|
||||
$link = "";
|
||||
access::required("view", $item);
|
||||
|
||||
if($item->description != ""){
|
||||
$description = ", " . $item->description;
|
||||
}else{
|
||||
$description = ", " . $item->parent()->description;
|
||||
}
|
||||
|
||||
$rel = "";
|
||||
if ($groupImg == true) {$rel = " rel=\"fancygroup\" ";}
|
||||
|
||||
@ -40,9 +46,9 @@ class theme_3nids_Core {
|
||||
if (module::is_active("comment") && module::is_active("theme_3nids")){
|
||||
$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") . ";;comment_count::" . comment_3nids::count($item) . ";;" ;}
|
||||
if ($item->is_photo()){
|
||||
$link .= "<a href=\"" . url::site("photo_3nids/show/{$item->id}") ."/?w=" . $item->width . "xewx&h=" . $item->height . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $item->parent()->title .", " . $item->parent()->description ."\" name=\"" . $fancymodule . " \">";
|
||||
$link .= "<a href=\"" . url::site("photo_3nids/show/{$item->id}") ."/?w=" . $item->width . "xewx&h=" . $item->height . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $item->parent()->title . $description ."\" name=\"" . $fancymodule . " \">";
|
||||
}else{
|
||||
$link .= "<a href=\"" . url::site("movie_3nids/show/{$item->id}") . "/?w=" . strval(20+($item->width)) . "xewx&h=" . strval(50+($item->height)) . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $item->parent()->title .", " . $item->parent()->description ."\" name=\"" . $fancymodule . " \">";
|
||||
$link .= "<a href=\"" . url::site("movie_3nids/show/{$item->id}") . "/?w=" . strval(20+($item->width)) . "xewx&h=" . strval(50+($item->height)) . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $item->parent()->title . $description ."\" name=\"" . $fancymodule . " \">";
|
||||
}
|
||||
} elseif( $item->is_album() && $viewtype != "header"){
|
||||
$link .= "<a href=\"" . $item->url() . "\">";
|
||||
|
Reference in New Issue
Block a user