Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 13 of 13
Posted By: mikeYou should be able to just use the template function "plogger_get_picture_url()" in place of "plogger_get_picture_caption()". Take a look at the theme template files and you should be able to figure it out pretty easily.
basename($GLOBALS["current_picture"]["path"])
function plogger_get_picture_filename() {
return htmlspecialchars(SmartStripSlashes(basename($GLOBALS["current_picture"]["path"])));
}
Posted By: mikeYou just want the filename? Try replacing plogger_get_picture_caption() withbasename($GLOBALS["current_picture"]["path"])
If you want to be fancy, you could make your own template function... just add this to plog-functions.php
function plogger_get_picture_filename() {
return htmlspecialchars(SmartStripSlashes(basename($GLOBALS["current_picture"]["path"])));
}
And then in your template you would just need to use plogger_get_picture_filename()
.tag {
height:125px;
overflow:hidden; /* this will hide the overflowing captions */
text-align:center;
width:110px;
}
function truncate_str($str, $len, $dots = "...") {
if (strlen($str) > $len) {
$dotlen = strlen($dots);
$str = substr_replace($str, $dots, $len - $dotlen);
}
return $str;
}
function plogger_get_picture_filename_truncated() {
global $config;
$fname = htmlspecialchars(SmartStripSlashes(basename($GLOBALS["current_picture"]["path"])));
return truncate_str($fname, $config['truncate'], '...');
}
1 to 13 of 13