width; $height = $item->height; }else{ $width = $item->resize_width; $height = $item->resize_height; } $desriptionMode = module::get_var("theme_3nids", "description"); $description = ""; $tags = tag::item_tags($item); if(count($tags) && $desriptionMode == "tags"){ $description = " || " . implode(", ", $tags); }elseif($desriptionMode == "item" && $item->description != ""){ $description = " || " . str_replace("\"",""",$item->description); }elseif (($desriptionMode == "parent" || $desriptionMode == "item") && $item->parent()->description != ""){ $description = " || " . str_replace("\"",""",$item->parent()->description); } $titleMode = module::get_var("theme_3nids", "title"); if ($titleMode == "parent"){ $title = html::clean($item->parent()->title); }else{ $title = html::clean($item->title); } $rel = ""; if ($groupImg == true) {$rel = " rel=\"fancygroup\" ";} if ($item->is_photo() || ($item->is_movie()) && module::is_active("theme_3nids")){ $fancymodule = ""; if (module::is_active("exif")){ $fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;";} 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 .= "id}") ."/?w=" . $width . "xewx&h=" . $height . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $title . $description ."\" name=\"" . $fancymodule . " \">"; }else{ $link .= "id}") . "/?w=" . strval(20+($width)) . "xewx&h=" . strval(50+($height)) . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . $item->parent()->title . $description ."\" name=\"" . $fancymodule . " \">"; } } elseif( $item->is_album() && $viewtype != "header"){ $link .= "url() . "\">"; } if($viewtype != "header"){ $link .= $item->thumb_img(array("class" => "g-thumbnail")) . ""; if( $item->is_album() && $viewtype == "album" ){ $link .= "url() . "?show=" . $item->id . "\"><$parentTitleClass>" . html::clean($item->title) . ""; } elseif ( !($item->is_album()) && $viewtype == "dynamic") { $link .= "parent()->url() . "?show=" . $item->id . "\" class=\"g-parent-album\"><$parentTitleClass>" . html::clean($item->parent()->title) . ""; } if (($item->is_photo() || $item->is_movie()) && $displayComment==true && module::is_active("comment") && module::is_active("theme_3nids")) { $link .= ""; } }else{ $link .= ""; } return $link; } } ?>