global $modx;
<a href="'.$modx->makeUrl($row[uparent]).'#'.$row[id].'" class="darkgrey xsmltxt">'.$row[content].'</a></div>';
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
Заменил
if ($this->snippetsParsed > $this->snippetsQuantity || ($this->snippetsQuantity==0) )
на
if (/*$this->snippetsParsed > $this->snippetsQuantity || */($this->snippetsQuantity==0) )
Вроде работает
if ($this->snippetsParsed > $this->snippetsQuantity || ($this->snippetsQuantity==0) )
if (/*$this->snippetsParsed > $this->snippetsQuantity || */($this->snippetsQuantity==0) )
[+phx:if=`[*id*]`:is=`81`:then=`
[[Ditto? &parents=`15` &startID=`15` &removeChunk=`Comments` &tpl=`ditto_portfolio` &paginate=`1` &extenders=`dateFilter,tagging` &paginateAlwaysShowLinks=`1` &dateSource=`pub_date` &tagData=`partnersTags` &tagDelimiter=`,` &dateFormat=`%d.%m.%Y` &sortBy=`pub_date` &id=`portfolio2`]]
`+]
[+phx:if=`[*id*]`:is=`81`:then=`
[!Ditto? &parents=`15` &startID=`15` &removeChunk=`Comments` &tpl=`ditto_portfolio` &paginate=`1` &extenders=`dateFilter,tagging` &paginateAlwaysShowLinks=`1` &dateSource=`pub_date` &tagData=`partnersTags` &tagDelimiter=`,` &dateFormat=`%d.%m.%Y` &sortBy=`pub_date` &id=`portfolio2`!]
`+]
if ($this->snippetsParsed >= $this->snippetsQuantity)
{
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
}
if ($this->snippetsParsed > $this->snippetsQuantity || ($this->snippetsQuantity==0) )
{
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?|)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
}
var $placeholders = array();
var $snippetsQuantity=0;
var $snippetsParsed=0;
$template = $modx->documentOutput;
preg_match_all('~\[(\[|\!)(.*?)(\]|\!)\]~s', $template, $matches);
$this->snippetsQuantity=count($matches[0]);
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}if ($this->snippetsParsed >= $this->snippetsQuantity)
{
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
}
$replace = $modx->evalSnippets("[[".$snippet."]]");
$this->LogSnippet($replace);
// Replace values
$var_search[] = $matches[0][$i];
$var_replace[] = $replace; $this->snippetsParsed++;preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
print_r ($matches[0]);
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches);
if ($matches[0]) {
print_r ($matches[0]);
$template = str_replace($matches[0], '', $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
Он вырезвет вообще плэйсхолдеры jot.
Кто-то знает, как починить?
Вот попробуйте вставить
И должно работать
Вообще старайтесь использовать:
kpoxas