mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Gallery Portfolio Thumbnails added.
This commit is contained in:
@@ -1906,6 +1906,43 @@ class e_parse extends e_parser
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Set or Get the value of the thumbNail Width.
|
||||
* @param $width (optional)
|
||||
*/
|
||||
public function thumbWidth($width=null)
|
||||
{
|
||||
if($val !== null)
|
||||
{
|
||||
$this->thumbWidth = intval($width);
|
||||
}
|
||||
|
||||
return $this->thumbWidth;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Set or Get the value of the thumbNail height.
|
||||
* @param $height (optional)
|
||||
*/
|
||||
public function thumbHeight($height= null)
|
||||
{
|
||||
if($val !== null)
|
||||
{
|
||||
$this->thumbHeight = intval($height);
|
||||
}
|
||||
|
||||
return $this->thumbHeight;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generate an auto-sized Image URL.
|
||||
* @param $url - path to image or leave blank for a placeholder.
|
||||
|
Reference in New Issue
Block a user