heimrichhannot/contao-news_related_plus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

heimrichhannot/contao-news_related_plus

Composer 安装命令:

composer require heimrichhannot/contao-news_related_plus

包简介

Adds support of contao-legacy/news_related to the news list module

README 文档

README

Adds support of contao-legacy/news_related to the news list module

Technical instructions

As in <contao-legacy/news_related>/templates/modules/mod_newsreader.html5, add the following snippet to your news_latest.html5 template:

<?php if ($this->newsRelated): ?>
    <div class="news_related block">
        <div class="related_headline"><h2><?php echo $this->related_headline; ?></h2></div>
        <div class="related_content">
            <div class="related_info"><?php echo $this->info; ?></div>

            <div class="related_items block">
                <?php foreach ($this->newsRelated as $related): ?>
                    <div class="related_item block">
                        <?php if ($related['image']): ?>
                            <figure class="image_container">
                                <?php if ($related['url']): ?>
                                <a href="<?php echo $related['url']; ?>" title="<?php echo $related['image']['alt']; ?>" rel="lightbox">
                                    <?php endif; ?>

                                    <?php $this->insert('picture_default', $related['image']['picture']); ?>

                                    <?php if ($related['url']): ?>
                                </a>
                            <?php endif; ?>
                            </figure>
                        <?php endif; ?>

                        <p class="info">
                            <time
                                datetime="<?php echo $related['datetime']; ?>"><?php echo $related['date']; ?></time> <?php echo $related['commentCount']; ?>
                        </p>

                        <div class="item_headline"><h3><a href="<?php echo $related['url']; ?>"
                                                          title="<?php echo $related['title']; ?>"><?php echo $related['headline']; ?></a></h3></div>

                        <div class="item_teaser"><?php echo $related['teaser']; ?> <span class="more"><?php echo $related['more']; ?></span></div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </div>
<?php endif; ?>

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2017-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固