2008-11-05 05:35:47 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.");
|
|
|
|
|
/**
|
|
|
|
|
* Gallery - a web based photo album viewer and editor
|
2013-01-21 01:22:01 -05:00
|
|
|
* Copyright (C) 2000-2013 Bharat Mediratta
|
2008-11-05 05:35:47 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or (at
|
|
|
|
|
* your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
2009-01-18 05:01:00 +00:00
|
|
|
class info_theme_Core {
|
2009-01-14 04:12:02 +00:00
|
|
|
static function thumb_info($theme, $item) {
|
2008-12-20 20:04:57 +00:00
|
|
|
$results = "";
|
|
|
|
|
if ($item->view_count) {
|
|
|
|
|
$results .= "<li>";
|
2009-01-15 10:02:41 +00:00
|
|
|
$results .= t("Views: %view_count", array("view_count" => $item->view_count));
|
2008-12-20 20:04:57 +00:00
|
|
|
$results .= "</li>";
|
|
|
|
|
}
|
2008-11-22 21:59:41 +00:00
|
|
|
if ($item->owner) {
|
2008-11-25 01:35:42 +00:00
|
|
|
$results .= "<li>";
|
2009-07-12 22:53:47 -06:00
|
|
|
if ($item->owner->url) {
|
2009-09-12 10:02:27 -07:00
|
|
|
$results .= t("By: <a href=\"%owner_url\">%owner_name</a>",
|
|
|
|
|
array("owner_name" => $item->owner->display_name(),
|
|
|
|
|
"owner_url" => $item->owner->url));
|
2009-07-12 22:53:47 -06:00
|
|
|
} else {
|
2009-09-12 10:06:24 -07:00
|
|
|
$results .= t("By: %owner_name", array("owner_name" => $item->owner->display_name()));
|
2009-07-12 22:53:47 -06:00
|
|
|
}
|
2008-11-25 01:35:42 +00:00
|
|
|
$results .= "</li>";
|
2008-11-22 21:59:41 +00:00
|
|
|
}
|
2008-11-25 01:35:42 +00:00
|
|
|
return $results;
|
2008-11-22 21:59:41 +00:00
|
|
|
}
|
2008-11-05 05:35:47 +00:00
|
|
|
}
|