<tfoot id='wmiLN'></tfoot>
      <bdo id='wmiLN'></bdo><ul id='wmiLN'></ul>
    1. <small id='wmiLN'></small><noframes id='wmiLN'>

      <legend id='wmiLN'><style id='wmiLN'><dir id='wmiLN'><q id='wmiLN'></q></dir></style></legend>
    2. <i id='wmiLN'><tr id='wmiLN'><dt id='wmiLN'><q id='wmiLN'><span id='wmiLN'><b id='wmiLN'><form id='wmiLN'><ins id='wmiLN'></ins><ul id='wmiLN'></ul><sub id='wmiLN'></sub></form><legend id='wmiLN'></legend><bdo id='wmiLN'><pre id='wmiLN'><center id='wmiLN'></center></pre></bdo></b><th id='wmiLN'></th></span></q></dt></tr></i><div id='wmiLN'><tfoot id='wmiLN'></tfoot><dl id='wmiLN'><fieldset id='wmiLN'></fieldset></dl></div>

    3. Joomla 介绍图片作为阅读更多链接

      时间:2023-10-16

      <small id='KBCjr'></small><noframes id='KBCjr'>

        <tfoot id='KBCjr'></tfoot>
          <bdo id='KBCjr'></bdo><ul id='KBCjr'></ul>

                <tbody id='KBCjr'></tbody>

              <i id='KBCjr'><tr id='KBCjr'><dt id='KBCjr'><q id='KBCjr'><span id='KBCjr'><b id='KBCjr'><form id='KBCjr'><ins id='KBCjr'></ins><ul id='KBCjr'></ul><sub id='KBCjr'></sub></form><legend id='KBCjr'></legend><bdo id='KBCjr'><pre id='KBCjr'><center id='KBCjr'></center></pre></bdo></b><th id='KBCjr'></th></span></q></dt></tr></i><div id='KBCjr'><tfoot id='KBCjr'></tfoot><dl id='KBCjr'><fieldset id='KBCjr'></fieldset></dl></div>

                <legend id='KBCjr'><style id='KBCjr'><dir id='KBCjr'><q id='KBCjr'></q></dir></style></legend>
              1. 本文介绍了Joomla 介绍图片作为阅读更多链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想让 joomla 文章的介绍图片表现得像阅读更多和标题链接.所以用户点击图片,文章就会加载.

                I want to make the joomla articles intro image to behave like the read more, and the title link. So the user clicks the image, and the article loads.

                我不是 PHP 专家,但也许这是阅读链接代码:

                I'm not an PHP expert but maybe this is the readmore links code:

                <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 网站上的每个介绍图片做的事情.谢谢!

                This is what i want to do with every intro image on my joomla site. Thanks !

                推荐答案

                刚解决!

                你的思维方式帮助了我.谢谢!

                your way of thinking helped me. Thank you!

                这是我的代码:

                        <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>
                

                这篇关于Joomla 介绍图片作为阅读更多链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Bcrypt 比 md5 + salt 好在哪里? 下一篇:从 Joomla 中删除 hasTip javascript 代码

                相关文章

                1. <small id='iFS8y'></small><noframes id='iFS8y'>

                2. <i id='iFS8y'><tr id='iFS8y'><dt id='iFS8y'><q id='iFS8y'><span id='iFS8y'><b id='iFS8y'><form id='iFS8y'><ins id='iFS8y'></ins><ul id='iFS8y'></ul><sub id='iFS8y'></sub></form><legend id='iFS8y'></legend><bdo id='iFS8y'><pre id='iFS8y'><center id='iFS8y'></center></pre></bdo></b><th id='iFS8y'></th></span></q></dt></tr></i><div id='iFS8y'><tfoot id='iFS8y'></tfoot><dl id='iFS8y'><fieldset id='iFS8y'></fieldset></dl></div>
                    • <bdo id='iFS8y'></bdo><ul id='iFS8y'></ul>
                    <tfoot id='iFS8y'></tfoot>
                    <legend id='iFS8y'><style id='iFS8y'><dir id='iFS8y'><q id='iFS8y'></q></dir></style></legend>