Переглянути джерело

模板变量支持

develop
tianya 2 дні тому
джерело
коміт
b024bb13be
2 змінених файлів з 12 додано та 0 видалено
  1. +6
    -0
      src/system/taglib/channel.lib.php
  2. +6
    -0
      src/system/typelink/typelink.class.php

+ 6
- 0
src/system/taglib/channel.lib.php Переглянути файл

@@ -98,6 +98,12 @@ function lib_channel(&$ctag, &$refObj)
$linkOkstr = str_replace("~typelink~", $row['typelink'], $linkOkstr);
$linkOkstr = str_replace("~bigpic~", $row['bigpic'], $linkOkstr);
$linkOkstr = str_replace("~litimg~", $row['litimg'], $linkOkstr);
$linkOkstr = str_replace("~cfg_webname~", $GLOBALS['cfg_webname'], $linkOkstr);
$linkOkstr = str_replace("~cfg_basehost~", $GLOBALS['cfg_basehost'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexurl~", $GLOBALS['cfg_indexurl'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexname~", $GLOBALS['cfg_indexname'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexseotitle~", $GLOBALS['cfg_indexseotitle'], $linkOkstr);
$linkOkstr = str_replace("~cfg_arcdir~", $GLOBALS['cfg_arcdir'], $linkOkstr);
$likeType .= $linkOkstr;
} else {
$row['typelink'] = $row['typeurl'] = GetOneTypeUrlA($row);


+ 6
- 0
src/system/typelink/typelink.class.php Переглянути файл

@@ -314,6 +314,12 @@ class TypeLink
$row['typelink'] = $this->GetOneTypeUrl($row);
$linkOkstr = str_replace("~typelink~", $row['typelink'], $linkOkstr);
$linkOkstr = str_replace("~typename~", $row['typename'], $linkOkstr);
$linkOkstr = str_replace("~cfg_webname~", $GLOBALS['cfg_webname'], $linkOkstr);
$linkOkstr = str_replace("~cfg_basehost~", $GLOBALS['cfg_basehost'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexurl~", $GLOBALS['cfg_indexurl'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexname~", $GLOBALS['cfg_indexname'], $linkOkstr);
$linkOkstr = str_replace("~cfg_indexseotitle~", $GLOBALS['cfg_indexseotitle'], $linkOkstr);
$linkOkstr = str_replace("~cfg_arcdir~", $GLOBALS['cfg_arcdir'], $linkOkstr);
$likeType .= $linkOkstr;
} else {
//非当前栏目


Завантаження…
Відмінити
Зберегти