大佬教程收集整理的这篇文章主要介绍了php – Joomla介绍图片阅读更多链接,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我不是PHP专家,但也许这是readmore链接@L_607_7@:
<a href="<?PHP echo $this->item->readmore_link; ?>" class="button<?PHP echo $this->item->params->get('pageclass_sfx'); ?>"> <?PHP if ($this->item->readmore_register) : echo JText::_('Register to read more...'); elseif ($readmore = $this->item->params->get('readmore')) : echo $readmore; else : echo JText::_("Read Article"); endif; ?></a>
这就是我想要对我的joomla网站上的每个介绍图像做的事情.
谢谢 !
你的思维方式帮助了我.谢谢!
这是我的@L_607_7@:
<a href="<?PHP echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug,$this->item->catid)); ?>"> <?PHP $images = json_decode($item->images); if (isset($images->image_intro) and !empty($images->image_intro)) { $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; $class = (htmlspecialchars($imgfloat) != 'none') ? ' class="size-auto align-'.htmlspecialchars($imgfloat).'"' : ' class="size-auto"'; $title = ($images->image_intro_caption) ? ' title="'.htmlspecialchars($images->image_intro_caption).'"' : ''; echo '<img'.$class.$title.' src="'.htmlspecialchars($images->image_intro).'" alt="'.htmlspecialchars($images->image_intro_alt).'" />'; } echo $this->item->introtext; ?> </a>
以上是大佬教程为你收集整理的php – Joomla介绍图片阅读更多链接全部内容,希望文章能够帮你解决php – Joomla介绍图片阅读更多链接所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。