Взял тут:
http://modxcms.com/extras/package/220
После установки показывает вот что :
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: include(адресдодоменаassets/snippets/kalender/themes/gold/theme.php) [function.include]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /home/pspnews/public_html/buzschool2.org.ru/manager/includes/document.parser.class.inc.php(769) : eval()'d code
Line: 212
вот здесь:
адресдодоменаassets/snippets/kalender/themes/gold/theme.php
между адресдомена и ассетс нет кавычки!!!
участок кода на который ругается :
// snippet parameters
if($theme=="") $theme = "gold"; // default interface theme is ’gold’;
if($parent=="") $parent = -1; // default parent is ’-1’ (no document)
// config
$snippetsPath = "snippets/kalender";
$site_url = $modx->config["site_url"];
$slash = substr($site_url, (strlen($site_url)-1), 1);
if($slash=="/") $site_url = substr($site_url, 0, (strlen($site_url)-1));
$base_path = $modx->config["base_path"];
$slash = substr($base_path, (strlen($base_path)-1), 1);
if($slash=="/") $base_path = substr($base_path, 0, (strlen($base_path)-1));
$assets_path = $modx->config[’rb_base_url’];
$pathPrefix = $site_url.//$assets_path.$snippetsPath;
$themePath = $pathPrefix."/themes/".$theme."/";
$includePath = $base_path.$assets_path.$snippetsPath."/themes/".$theme."/";
$cssTheme = $themePath."theme.css";
$jsOverLib = $pathPrefix."/js/overlib.js";
$url_prefix = "?";
$dbase = $modx->dbConfig[’dbase’];
$tbl_prefix = $modx->dbConfig[’table_prefix’];
$dbase_tbl = $dbase.".".$tbl_prefix;
$site_content = $dbase_tbl."site_content";
// include theme settings
include($includePath."theme.php");
а точнее на последнюю строчку вышеприведенного кода.
Как исправить?