在 Magento 中创建子 CMS 页面

发布于 2024-09-14 18:59:40 字数 294 浏览 6 评论 0原文

我想在 Magento 中创建一组从属 CMS 页面,以便页面顶部的面包屑导航如下所示:

首页>父CMS页面>子CMS页面

即使我可以使用 URL key 字段指定层次关系,但似乎 Magento 中的所有 CMS 页面都列在根目录中默认目录:

首页>子CMS页面

有什么想法吗?

I would like to create a subordinate set of CMS pages in Magento so that the breadcrumb navigation at the top of the page looks like this:

Home > Parent CMS Page > Child CMS Page

Even though I can specify a hierarchical relationship with the URL key field, it seems to be that all CMS pages in Magento are listed in the root directory by default:

Home > Child CMS Page

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

绮烟 2024-09-21 18:59:40

你是对的,Magento 中没有 CMS 页面的层次结构。最好的解决方案是通过向 CMS 页面添加parent_id 并修改 CMS 模块以处理嵌套 URL 和面包屑来创建真正的层次结构。但这需要大量编码。

一个快速而肮脏的技巧是通过在布局更新 XML 中添加如下内容来手动修改每个子页面上的面包屑:

<reference name="root">
<action method="unsetChild"><alias>breadcrumbs</alias></action>
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
    <action method="addCrumb">
        <crumbName>home</crumbName>
        <crumbInfo><label>Home page</label><title>Home page</title><link>/</link></crumbInfo>
    </action>
    <action method="addCrumb">
        <crumbName>myparentpage</crumbName>
        <crumbInfo><label>My Parent Page</label><title>My Parent Page</title><link>/myparentpage/</link></crumbInfo>
    </action>
    <action method="addCrumb">
        <crumbName>mysubpage</crumbName>
        <crumbInfo><label>My Sub Page</label><title>My Sub Page</title></crumbInfo>
    </action>
</block>
</reference>

You are right, there is no hierarchy of CMS pages in Magento. The best solution would be to create a real hierarchy by adding a parent_id to CMS pages and modifying the CMS module to handle nested URLs and breadcrumbs. But that requires a lot of coding.

A quick-and-dirty hack is to modify the breadcrumbs manually on each subpage by adding something like this to the layout update XML:

<reference name="root">
<action method="unsetChild"><alias>breadcrumbs</alias></action>
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
    <action method="addCrumb">
        <crumbName>home</crumbName>
        <crumbInfo><label>Home page</label><title>Home page</title><link>/</link></crumbInfo>
    </action>
    <action method="addCrumb">
        <crumbName>myparentpage</crumbName>
        <crumbInfo><label>My Parent Page</label><title>My Parent Page</title><link>/myparentpage/</link></crumbInfo>
    </action>
    <action method="addCrumb">
        <crumbName>mysubpage</crumbName>
        <crumbInfo><label>My Sub Page</label><title>My Sub Page</title></crumbInfo>
    </action>
</block>
</reference>
晨曦÷微暖 2024-09-21 18:59:40

几天前,我在面包屑和 cms 页面上遇到了同样的问题检查此处 ->

与 Anders Rasmussen 帖子类似,我手动编辑了每个 cms 页面,

在 breadcrumbs.phtml 中,我添加了一些条件来定义页面是否为 CMS 页面(感谢 Alan Storm),并删除标准面包屑并通过 xmllayout 添加新面包屑。

<?php
        if($this->getRequest()->getModuleName() == 'cms'){
            unset($crumbs['cms_page']);
        }
?>

xml:

<reference name="breadcrumbs">

<action method="addCrumb">
     <crumbName>cms_page_1st_child</crumbName>
    <crumbInfo><label>1st child</label><title>1st child</title><link>/1st child/</link></crumbInfo>
</action>

<action method="addCrumb">
     <crumbName>cms_page_2nd_child</crumbName>
    <crumbInfo><label>2nd child</label><title>2nd child</title></crumbInfo>
</action>

</reference> 

希望有帮助,
里托

I had the same problem with breadcrumbs and cms pages a few days ago check here ->

Similar to Anders Rasmussen post I edited every cms page manually

In breadcrumbs.phtml I added a little condition to define if a Page is a CMS page (thanks to Alan Storm) and remove standard crumb(s) and added new crumbs via xmllayout.

<?php
        if($this->getRequest()->getModuleName() == 'cms'){
            unset($crumbs['cms_page']);
        }
?>

xml:

<reference name="breadcrumbs">

<action method="addCrumb">
     <crumbName>cms_page_1st_child</crumbName>
    <crumbInfo><label>1st child</label><title>1st child</title><link>/1st child/</link></crumbInfo>
</action>

<action method="addCrumb">
     <crumbName>cms_page_2nd_child</crumbName>
    <crumbInfo><label>2nd child</label><title>2nd child</title></crumbInfo>
</action>

</reference> 

hope that helps,
Rito

空宴 2024-09-21 18:59:40

对于企业版(版本 1.12),请在以下文件中使用此代码,位置为:
默认->模板->页面->html->breadcrumb.phtml。

<?php
$cms_id = Mage::getSingleton('cms/page')->getPageId();
if($cms_id):

    if($_SERVER['REQUEST_URI']) {
        $trim_data  =   substr($_SERVER['REQUEST_URI'],1); 
        $data   =   explode('/',$trim_data);        
    }
    $cms_collection =   array();
    $url_full   =   '';
    $cms_enterprise =   '';

    foreach($data as $identifier)   {
        $page_data  =   Mage::getModel('cms/page')->getCollection()
                        ->addFieldToFilter('identifier', $identifier);          
        if($page_data)  {
            foreach($page_data as $single)  {
                if($single->getContentHeading() != null)    {                       
                    if($single->getPageId())    {
                        $cms_enterprise = Mage::getModel('enterprise_cms/hierarchy_node')->getCollection()
                                                ->addFieldToFilter('page_id', $single->getPageId());    
                        foreach($cms_enterprise as $single_enterprise)  {
                            $url_full   =   $single_enterprise->getRequestUrl();
                        }                       
                    }
                    $cms_collection[]   =   array($single->getTitle(), $single->getContentHeading(), $url_full );
                }   else    {                                   
                    if($single->getPageId())    {
                        $cms_enterprise = Mage::getModel('enterprise_cms/hierarchy_node')->getCollection()
                                                ->addFieldToFilter('page_id', $single->getPageId());    
                        foreach($cms_enterprise as $single_enterprise)  {
                            $url_full   =   $single_enterprise->getRequestUrl();
                        }                       
                    }
                    $cms_collection[]   =   array($single->getTitle(), $single->getTitle(), $url_full );
                }                   
            }       
        }
    }
    $count  =   count($cms_collection);
    $i  =   1;  
?>

    <?php   if(count($cms_collection)): ?>
    <div class="breadcrumbs">
        <ul>
            <li>
                <a href="<?php echo $this->getUrl() /*Home*/ ?>" title="<?php echo $this->__('Home'); /*Home Title*/ ?>">
                    <?php   echo $this->__('Home'); /*Home Name*/ ?>
                </a>    
                 <span>> </span>
            </li>   
            <?php foreach($cms_collection as $key=>$value): ?>                      
                <?php   if($i == $count):   ?>
                    <li>
                        <strong>
                                <?php   echo $value[1]; /*Name*/ ?>
                        </strong>   
                    </li>           
                <?php else: ?>  
                    <li>
                        <a href="<?php echo $this->getUrl().$value[2] /*Identifier*/ ?>" title="<?php echo $value[0] /*Title*/ ?>">
                            <?php   echo $value[1]; /*Name*/ ?>
                        </a>    
                         <span>> </span>
                    </li>           
                <?php endif; ?>
                <?php   $i++;   ?>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php endif; ?>

<?php else: ?>
    <?php if($crumbs && is_array($crumbs)): ?>
    <div class="breadcrumbs">
        <ul>
            <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
                <li class="<?php echo $_crumbName ?>">
                <?php if($_crumbInfo['link']): ?>
                    <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
                <?php elseif($_crumbInfo['last']): ?>
                    <strong><?php echo $this->htmlEscape($_crumbInfo['label']) ?></strong>
                <?php else: ?>
                    <?php echo $this->htmlEscape($_crumbInfo['label']) ?>
                <?php endif; ?>
                <?php if(!$_crumbInfo['last']): ?>
                    <span>> </span>
                <?php endif; ?>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php endif; ?>

谢谢,

卡西夫

For enterprise (version 1.12) use this code at following file, location is:
default->template->page->html->breadcrumb.phtml.

<?php
$cms_id = Mage::getSingleton('cms/page')->getPageId();
if($cms_id):

    if($_SERVER['REQUEST_URI']) {
        $trim_data  =   substr($_SERVER['REQUEST_URI'],1); 
        $data   =   explode('/',$trim_data);        
    }
    $cms_collection =   array();
    $url_full   =   '';
    $cms_enterprise =   '';

    foreach($data as $identifier)   {
        $page_data  =   Mage::getModel('cms/page')->getCollection()
                        ->addFieldToFilter('identifier', $identifier);          
        if($page_data)  {
            foreach($page_data as $single)  {
                if($single->getContentHeading() != null)    {                       
                    if($single->getPageId())    {
                        $cms_enterprise = Mage::getModel('enterprise_cms/hierarchy_node')->getCollection()
                                                ->addFieldToFilter('page_id', $single->getPageId());    
                        foreach($cms_enterprise as $single_enterprise)  {
                            $url_full   =   $single_enterprise->getRequestUrl();
                        }                       
                    }
                    $cms_collection[]   =   array($single->getTitle(), $single->getContentHeading(), $url_full );
                }   else    {                                   
                    if($single->getPageId())    {
                        $cms_enterprise = Mage::getModel('enterprise_cms/hierarchy_node')->getCollection()
                                                ->addFieldToFilter('page_id', $single->getPageId());    
                        foreach($cms_enterprise as $single_enterprise)  {
                            $url_full   =   $single_enterprise->getRequestUrl();
                        }                       
                    }
                    $cms_collection[]   =   array($single->getTitle(), $single->getTitle(), $url_full );
                }                   
            }       
        }
    }
    $count  =   count($cms_collection);
    $i  =   1;  
?>

    <?php   if(count($cms_collection)): ?>
    <div class="breadcrumbs">
        <ul>
            <li>
                <a href="<?php echo $this->getUrl() /*Home*/ ?>" title="<?php echo $this->__('Home'); /*Home Title*/ ?>">
                    <?php   echo $this->__('Home'); /*Home Name*/ ?>
                </a>    
                 <span>> </span>
            </li>   
            <?php foreach($cms_collection as $key=>$value): ?>                      
                <?php   if($i == $count):   ?>
                    <li>
                        <strong>
                                <?php   echo $value[1]; /*Name*/ ?>
                        </strong>   
                    </li>           
                <?php else: ?>  
                    <li>
                        <a href="<?php echo $this->getUrl().$value[2] /*Identifier*/ ?>" title="<?php echo $value[0] /*Title*/ ?>">
                            <?php   echo $value[1]; /*Name*/ ?>
                        </a>    
                         <span>> </span>
                    </li>           
                <?php endif; ?>
                <?php   $i++;   ?>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php endif; ?>

<?php else: ?>
    <?php if($crumbs && is_array($crumbs)): ?>
    <div class="breadcrumbs">
        <ul>
            <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?>
                <li class="<?php echo $_crumbName ?>">
                <?php if($_crumbInfo['link']): ?>
                    <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
                <?php elseif($_crumbInfo['last']): ?>
                    <strong><?php echo $this->htmlEscape($_crumbInfo['label']) ?></strong>
                <?php else: ?>
                    <?php echo $this->htmlEscape($_crumbInfo['label']) ?>
                <?php endif; ?>
                <?php if(!$_crumbInfo['last']): ?>
                    <span>> </span>
                <?php endif; ?>
                </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php endif; ?>

Thanks,

Kashif

扬花落满肩 2024-09-21 18:59:40

这是我的问题的解决方案。我对大多数 CMS 页面(default/template/page/cmsLayout.phtml)使用自定义布局,因此我在布局文件中添加了以下代码:

<div class="col-main">
    <?php  
        $urlPart=str_replace(Mage::getUrl(),'',Mage::getUrl('', array('_current' => true,'_use_rewrite' => true)));
        $urlPart=explode('/',$urlPart);
        $string='';
        $return='<div class="breadcrumbs"><ul><li class="home"><a href="'.Mage::getBaseUrl().'" title="Go to Home Page">Home</a><span> / </span></li>';
        $count=count($urlPart);
        foreach($urlPart as $value)
        {
          $count--;
          $string.='/'.$value;
          $string=trim($string, '/');
          $pageTitle = Mage::getModel('cms/page')->load($string, 'identifier')->getTitle();
          if($count==0)
              $return.='<li><strong>'.$pageTitle.'</strong></li>';
          else
              $return.='<li><a href="'.Mage::getBaseUrl().$string.'" title="'.$pageTitle.'">'.$pageTitle.'</a><span> / </span></li>';
        }  
    echo $return.'</li></ul></div>';
    ?>
    <?php echo $this->getChildHtml('global_messages') ?>
    <?php echo $this->getChildHtml('content') ?>
</div>

This is my solution of the problem. I use custom layout for most of the CMS pages (default/template/page/cmsLayout.phtml) so I heve added following code into the layout file:

<div class="col-main">
    <?php  
        $urlPart=str_replace(Mage::getUrl(),'',Mage::getUrl('', array('_current' => true,'_use_rewrite' => true)));
        $urlPart=explode('/',$urlPart);
        $string='';
        $return='<div class="breadcrumbs"><ul><li class="home"><a href="'.Mage::getBaseUrl().'" title="Go to Home Page">Home</a><span> / </span></li>';
        $count=count($urlPart);
        foreach($urlPart as $value)
        {
          $count--;
          $string.='/'.$value;
          $string=trim($string, '/');
          $pageTitle = Mage::getModel('cms/page')->load($string, 'identifier')->getTitle();
          if($count==0)
              $return.='<li><strong>'.$pageTitle.'</strong></li>';
          else
              $return.='<li><a href="'.Mage::getBaseUrl().$string.'" title="'.$pageTitle.'">'.$pageTitle.'</a><span> / </span></li>';
        }  
    echo $return.'</li></ul></div>';
    ?>
    <?php echo $this->getChildHtml('global_messages') ?>
    <?php echo $this->getChildHtml('content') ?>
</div>
许你一世情深 2024-09-21 18:59:40

更新
-oops- 这可能只是一个企业功能


Magento 中有一个内置的 CMS 页面层次结构选项。

打开它:

系统>配置>一般>内容管理> CMS 页面层次结构 - 请参阅此处

组织层次结构树:

CMS >页数>管理层次结构

要管理页面在树中的位置,保存页面后,转到其“层次结构选项卡” - 请参阅屏幕截图:

在此处输入图像描述

在示例中,页面“我们的文化”是“工作”的子目录,而不是根目录的子目录

update
-oops- this might be an enterprise feature only


There is a built-in CMS page hierarchy option in Magento.

To turn it on:

System > Configuration > General > Content Management > CMS Page Hierarchy - see here

To organise the hierarchy tree:

CMS > Pages > Manage Hierarchy

To manage the position of a page in the tree, after saving a page, go to its "hierarchy tab" - see the screenshot:

enter image description here

In the example the page "Our culture" is a child of "jobs" and not of the root directory

笑梦风尘 2024-09-21 18:59:40

对于 Magento Enterprise,我创建了一个扩展来解决这个问题。它在后端使用内置的 CMS 层次结构。该模块称为 Demac/BananaBread,不需要任何修改或定制。

直接下载:此处

文章链接:http://www.demacmedia .com/magento-commerce/introducing-demac_bananabread-adding-cms-breadcrumbs-from-the-hierarchy-in-magento/

For Magento Enterprise, I have created an extension to solve this. It uses the built in CMS Hierarchy in the backend. The module is called Demac/BananaBread and shouldn't require any hacks or customization.

Direct download: here

Link to article: http://www.demacmedia.com/magento-commerce/introducing-demac_bananabread-adding-cms-breadcrumbs-from-the-hierarchy-in-magento/

过潦 2024-09-21 18:59:40

我构建了一个自定义块来生成面包屑(删除内置块并替换为布局中下面的自定义块):

namespace Uprated\Theme\Block\Html;

class UpratedBreadcrumbs extends \Magento\Framework\View\Element\Template
{
/**
 * Current template name
 *
 * @var string
 */
public $crumbs;
protected $_template = 'html/breadcrumbs.phtml';
protected $_urlInterface;
protected $_objectManager;
protected $_repo;

public function __construct(
    \Magento\Backend\Block\Template\Context $context,
    \Magento\Framework\UrlInterface $urlInterface,
    \Magento\Framework\ObjectManagerInterface $objectManager,
    array $data = [])
{
    $this->_urlInterface = $urlInterface;
    $this->_objectManager = $objectManager;
    $this->_repo = $this->_objectManager->get('Magento\Cms\Model\PageRepository');
    $this->getCrumbs();

    parent::__construct($context, $data);
}

public function getCrumbs() {
    $baseUrl = $this->_urlInterface->getBaseUrl();
    $fullUrl =  $this->_urlInterface->getCurrentUrl();
    $urlPart = explode('/', str_replace($baseUrl, '', trim($fullUrl, '/')));

    //Add in the homepage
    $this->crumbs = [
        'home' => [
            'link' => $baseUrl,
            'title' => 'Go to Home Page',
            'label' => 'Home',
            'last' => ($baseUrl == $fullUrl)
        ]
    ];

    $path = '';
    $numParts = count($urlPart);
    $partNum = 1;
    foreach($urlPart as $value)
    {
        //Set the relative path
        $path = ($path) ? $path . '/' . $value : $value;

        //Get the page
        $page = $this->getPageByIdentifier($path);

        if($page) {
            $this->crumbs[$value] = [
                'link' => ($partNum == $numParts) ? false : $baseUrl . $path,
                'title' => $page['title'],
                'label' => $page['title'],
                'last' => ($partNum == $numParts)
            ];
        }
        $partNum++;
    }
}

protected function getPageByIdentifier($identifier) {
    //create the filter
    $filter = $this->_objectManager->create('Magento\Framework\Api\Filter');
    $filter->setData('field','identifier');
    $filter->setData('condition_type','eq');
    $filter->setData('value',$identifier);

    //add the filter(s) to a group
    $filter_group = $this->_objectManager->create('Magento\Framework\Api\Search\FilterGroup');
    $filter_group->setData('filters', [$filter]);

    //add the group(s) to the search criteria object
    $search_criteria = $this->_objectManager->create('Magento\Framework\Api\SearchCriteriaInterface');
    $search_criteria->setFilterGroups([$filter_group]);

    $pages = $this->_repo->getList($search_criteria);
    $pages = ($pages) ?  $pages->getItems() : false;

    return ($pages && is_array($pages)) ? $pages[0] : [];
}

然后使用稍微修改过的 .phtml 模板来显示它们:

<?php if ($block->crumbs && is_array($block->crumbs)) : ?>
<div class="breadcrumbs">
    <ul class="items">
        <?php foreach ($block->crumbs as $crumbName => $crumbInfo) : ?>
            <li class="item <?php /* @escapeNotVerified */ echo $crumbName ?>">
            <?php if ($crumbInfo['link']) : ?>
                <a href="<?php /* @escapeNotVerified */ echo $crumbInfo['link'] ?>" title="<?php echo $block->escapeHtml($crumbInfo['title']) ?>">
                    <?php echo $block->escapeHtml($crumbInfo['label']) ?>
                </a>
            <?php elseif ($crumbInfo['last']) : ?>
                <strong><?php echo $block->escapeHtml($crumbInfo['label']) ?></strong>
            <?php else: ?>
                <?php echo $block->escapeHtml($crumbInfo['label']) ?>
            <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

在 2.1 中对我来说工作得很好

I built a custom block as to generate the crumbs (removing the built-in and replacing with the custom one below in the layout):

namespace Uprated\Theme\Block\Html;

class UpratedBreadcrumbs extends \Magento\Framework\View\Element\Template
{
/**
 * Current template name
 *
 * @var string
 */
public $crumbs;
protected $_template = 'html/breadcrumbs.phtml';
protected $_urlInterface;
protected $_objectManager;
protected $_repo;

public function __construct(
    \Magento\Backend\Block\Template\Context $context,
    \Magento\Framework\UrlInterface $urlInterface,
    \Magento\Framework\ObjectManagerInterface $objectManager,
    array $data = [])
{
    $this->_urlInterface = $urlInterface;
    $this->_objectManager = $objectManager;
    $this->_repo = $this->_objectManager->get('Magento\Cms\Model\PageRepository');
    $this->getCrumbs();

    parent::__construct($context, $data);
}

public function getCrumbs() {
    $baseUrl = $this->_urlInterface->getBaseUrl();
    $fullUrl =  $this->_urlInterface->getCurrentUrl();
    $urlPart = explode('/', str_replace($baseUrl, '', trim($fullUrl, '/')));

    //Add in the homepage
    $this->crumbs = [
        'home' => [
            'link' => $baseUrl,
            'title' => 'Go to Home Page',
            'label' => 'Home',
            'last' => ($baseUrl == $fullUrl)
        ]
    ];

    $path = '';
    $numParts = count($urlPart);
    $partNum = 1;
    foreach($urlPart as $value)
    {
        //Set the relative path
        $path = ($path) ? $path . '/' . $value : $value;

        //Get the page
        $page = $this->getPageByIdentifier($path);

        if($page) {
            $this->crumbs[$value] = [
                'link' => ($partNum == $numParts) ? false : $baseUrl . $path,
                'title' => $page['title'],
                'label' => $page['title'],
                'last' => ($partNum == $numParts)
            ];
        }
        $partNum++;
    }
}

protected function getPageByIdentifier($identifier) {
    //create the filter
    $filter = $this->_objectManager->create('Magento\Framework\Api\Filter');
    $filter->setData('field','identifier');
    $filter->setData('condition_type','eq');
    $filter->setData('value',$identifier);

    //add the filter(s) to a group
    $filter_group = $this->_objectManager->create('Magento\Framework\Api\Search\FilterGroup');
    $filter_group->setData('filters', [$filter]);

    //add the group(s) to the search criteria object
    $search_criteria = $this->_objectManager->create('Magento\Framework\Api\SearchCriteriaInterface');
    $search_criteria->setFilterGroups([$filter_group]);

    $pages = $this->_repo->getList($search_criteria);
    $pages = ($pages) ?  $pages->getItems() : false;

    return ($pages && is_array($pages)) ? $pages[0] : [];
}

Then used a slightly modified .phtml template to display them:

<?php if ($block->crumbs && is_array($block->crumbs)) : ?>
<div class="breadcrumbs">
    <ul class="items">
        <?php foreach ($block->crumbs as $crumbName => $crumbInfo) : ?>
            <li class="item <?php /* @escapeNotVerified */ echo $crumbName ?>">
            <?php if ($crumbInfo['link']) : ?>
                <a href="<?php /* @escapeNotVerified */ echo $crumbInfo['link'] ?>" title="<?php echo $block->escapeHtml($crumbInfo['title']) ?>">
                    <?php echo $block->escapeHtml($crumbInfo['label']) ?>
                </a>
            <?php elseif ($crumbInfo['last']) : ?>
                <strong><?php echo $block->escapeHtml($crumbInfo['label']) ?></strong>
            <?php else: ?>
                <?php echo $block->escapeHtml($crumbInfo['label']) ?>
            <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>

Working fine for me in 2.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文