本文整理匯總了PHP中Isotope\Isotope::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP Isotope::initialize方法的具體用法?PHP Isotope::initialize怎麽用?PHP Isotope::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Isotope\Isotope
的用法示例。
在下文中一共展示了Isotope::initialize方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Load libraries and scripts
* @param object
* @param string
* @return void
*/
public function __construct($objModule, $strColumn = 'main')
{
parent::__construct($objModule, $strColumn);
Isotope::initialize();
if (TL_MODE == 'FE') {
// Load Isotope javascript and css
$GLOBALS['TL_JAVASCRIPT'][] = \Haste\Util\Debug::uncompressedFile('system/modules/isotope/assets/js/isotope.min.js');
$GLOBALS['TL_CSS'][] = \Haste\Util\Debug::uncompressedFile('system/modules/isotope/assets/css/isotope.min.css');
// Disable caching for pages with certain modules (eg. Cart)
if ($this->blnDisableCache) {
try {
global $objPage;
$objPage->cache = 0;
} catch (\Exception $e) {
}
}
}
}
示例2: __construct
/**
* Load libraries and scripts
*
* @param \ModuleModel $objModule
* @param string $strColumn
*/
public function __construct($objModule, $strColumn = 'main')
{
parent::__construct($objModule, $strColumn);
if ($this->iso_list_where != '') {
$this->iso_list_where = Haste::getInstance()->call('replaceInsertTags', $this->iso_list_where);
}
$this->iso_buttons = deserialize($this->iso_buttons);
if (!is_array($this->iso_buttons)) {
$this->iso_buttons = array();
}
Isotope::initialize();
// Load Isotope JavaScript and style sheet
if (TL_MODE == 'FE') {
$version = RepositoryVersion::encode(Isotope::VERSION);
$GLOBALS['TL_JAVASCRIPT'][] = Debug::uncompressedFile('system/modules/isotope/assets/js/isotope.min.js|static|' . $version);
$GLOBALS['TL_CSS'][] = Debug::uncompressedFile('system/modules/isotope/assets/css/isotope.min.css|screen|static|' . $version);
// Disable caching for pages with certain modules (eg. Cart)
if ($this->blnDisableCache) {
global $objPage;
$objPage->cache = 0;
}
}
}