/** * Get current template info * * @return array */ protected function getCurrentTemplateInfo() { $tail = \XLite\View\AView::getTail(); $last = array_pop($tail); return explode(LC_DS, substr($last, strlen(LC_DIR_SKINS)), 3); }
/** * Get current template info * * @return array */ protected function getCurrentTemplateInfo() { $tail = \XLite\View\AView::getTail(); $last = array_pop($tail); return preg_match('/^(\\w+)\\W\\w+\\W(.+)$/Ss', substr($last, strlen(LC_DIR_SKINS)), $match) ? array($match[1], $match[2]) : array(null, null); }