/**
* Добавляет префикс к урлу
*
* @param string $prefix Префикс ссылки
*/
public function updateBaseUrl($prefix)
{
$this->baseUrl = DIRECTORY_SEPARATOR . $prefix . $this->baseUrl;
}
$bundle = test\components\SomeAssetBundle ::register($this);
$bundle->updateBaseUrl('test');
function getParameterByName(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var id= getParameterByName('r');
if ($Shop_Controller_Show->group == 623) {
$hour = date('H');
$minute = date('i');
$day = date('w');
if ( (($hour >= 14 && $minute >= 30) && $hour < 17 ) && ( $day >= 1 && $day <= 5) ) {
$oLunchOn = Core::factory('Core_Xml_Entity')->name('lunchon')->value(1);
$Shop_Controller_Show->addEntity($oLunchOn);
}
}
div.block:last-child:nth-child(odd) {
clear: both;
margin:auto;
float:none;
}