File manager - Edit - /home/opticamezl/www/newok/newsfeed.tar
Back
default.php 0000644 00000016323 15175542334 0006717 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage com_newsfeeds * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Filter\OutputFilter; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\FileLayout; use Joomla\CMS\Layout\LayoutHelper; ?> <?php if (!empty($this->msg)) : ?> <?php echo $this->msg; ?> <?php else : ?> <?php $lang = $this->getLanguage(); ?> <?php $myrtl = $this->item->rtl; ?> <?php $direction = ' '; ?> <?php $isRtl = $lang->isRtl(); ?> <?php if ($isRtl && $myrtl == 0) : ?> <?php $direction = ' redirect-rtl'; ?> <?php elseif ($isRtl && $myrtl == 1) : ?> <?php $direction = ' redirect-ltr'; ?> <?php elseif ($isRtl && $myrtl == 2) : ?> <?php $direction = ' redirect-rtl'; ?> <?php elseif ($myrtl == 0) : ?> <?php $direction = ' redirect-ltr'; ?> <?php elseif ($myrtl == 1) : ?> <?php $direction = ' redirect-ltr'; ?> <?php elseif ($myrtl == 2) : ?> <?php $direction = ' redirect-rtl'; ?> <?php endif; ?> <?php $images = json_decode($this->item->images); ?> <div class="com-newsfeeds-newsfeed newsfeed<?php echo $direction; ?>"> <?php if ($this->params->get('display_num')) : ?> <h1 class="<?php echo $direction; ?>"> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1> <?php endif; ?> <h2 class="<?php echo $direction; ?>"> <?php if ($this->item->published == 0) : ?> <span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <a href="<?php echo $this->item->link; ?>" target="_blank" rel="noopener"> <?php echo str_replace(''', "'", $this->item->name); ?> </a> </h2> <?php if ($this->params->get('show_tags', 1)) : ?> <?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?> <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?> <?php endif; ?> <!-- Show Images from Component --> <?php if (isset($images->image_first) && !empty($images->image_first)) : ?> <?php $imgfloat = empty($images->float_first) ? $this->params->get('float_first') : $images->float_first; ?> <div class="com-newsfeeds-newsfeed__first-image img-intro-<?php echo $this->escape($imgfloat); ?>"> <figure> <?php echo LayoutHelper::render( 'joomla.html.image', [ 'src' => $images->image_first, 'alt' => empty($images->image_first_alt) && empty($images->image_first_alt_empty) ? false : $images->image_first_alt, ] ); ?> <?php if ($images->image_first_caption) : ?> <figcaption class="caption"><?php echo $this->escape($images->image_first_caption); ?></figcaption> <?php endif; ?> </figure> </div> <?php endif; ?> <?php if (isset($images->image_second) and !empty($images->image_second)) : ?> <?php $imgfloat = empty($images->float_second) ? $this->params->get('float_second') : $images->float_second; ?> <div class="com-newsfeeds-newsfeed__second-image float-<?php echo $this->escape($imgfloat); ?> item-image"> <figure> <?php echo LayoutHelper::render( 'joomla.html.image', [ 'src' => $images->image_second, 'alt' => empty($images->image_second_alt) && empty($images->image_second_alt_empty) ? false : $images->image_second_alt, ] ); ?> <?php if ($images->image_second_caption) : ?> <figcaption class="caption"><?php echo $this->escape($images->image_second_caption); ?></figcaption> <?php endif; ?> </figure> </div> <?php endif; ?> <!-- Show Description from Component --> <?php echo $this->item->description; ?> <!-- Show Feed's Description --> <?php if ($this->params->get('show_feed_description')) : ?> <div class="com-newsfeeds-newsfeed__description feed-description"> <?php echo str_replace(''', "'", $this->rssDoc->description); ?> </div> <?php endif; ?> <!-- Show Image --> <?php if ($this->rssDoc->image && $this->params->get('show_feed_image')) : ?> <div class="com-newsfeeds-newsfeed__feed-image"> <?php echo LayoutHelper::render( 'joomla.html.image', [ 'src' => $this->rssDoc->image->uri, 'alt' => $this->rssDoc->image->title, ] ); ?> </div> <?php endif; ?> <!-- Show items --> <?php if (!empty($this->rssDoc[0])) : ?> <ol class="com-newsfeeds-newsfeed__items"> <?php for ($i = 0; $i < $this->item->numarticles; $i++) : ?> <?php if (empty($this->rssDoc[$i])) : ?> <?php break; ?> <?php endif; ?> <?php $uri = $this->rssDoc[$i]->uri || !$this->rssDoc[$i]->isPermaLink ? trim($this->rssDoc[$i]->uri) : trim($this->rssDoc[$i]->guid); ?> <?php $uri = !$uri || stripos($uri, 'http') !== 0 ? $this->item->link : $uri; ?> <?php $text = $this->rssDoc[$i]->content !== '' ? trim($this->rssDoc[$i]->content) : ''; ?> <li> <?php if (!empty($uri)) : ?> <h3 class="feed-link"> <a href="<?php echo htmlspecialchars($uri); ?>" target="_blank" rel="noopener"> <?php echo trim($this->rssDoc[$i]->title); ?> </a> </h3> <?php else : ?> <h3 class="feed-link"><?php echo trim($this->rssDoc[$i]->title); ?></h3> <?php endif; ?> <?php if ($this->params->get('show_item_description') && $text !== '') : ?> <div class="feed-item-description"> <?php if ($this->params->get('show_feed_image', 0) == 0) : ?> <?php $text = OutputFilter::stripImages($text); ?> <?php endif; ?> <?php $text = HTMLHelper::_('string.truncate', $text, $this->params->get('feed_character_count')); ?> <?php echo str_replace(''', "'", $text); ?> </div> <?php endif; ?> </li> <?php endfor; ?> </ol> <?php endif; ?> </div> <?php endif; ?> default.xml 0000644 00000005024 15175542334 0006724 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <metadata> <layout title="COM_NEWSFEEDS_NEWSFEED_VIEW_DEFAULT_TITLE" option="COM_NEWSFEEDS_NEWSFEED_VIEW_DEFAULT_OPTION"> <help key = "Menu_Item:_Single_News_Feed" /> <message> <![CDATA[COM_NEWSFEEDS_NEWSFEED_VIEW_DEFAULT_DESC]]> </message> </layout> <!-- Add fields to the request variables for the layout. --> <fields name="request"> <fieldset name="request" addfieldprefix="Joomla\Component\Newsfeeds\Administrator\Field" > <field name="id" type="modal_newsfeed" label="COM_NEWSFEEDS_FIELD_SELECT_FEED_LABEL" required="true" select="true" new="true" edit="true" clear="true" /> </fieldset> </fields> <!-- Add fields to the parameters object for the layout. --> <fields name="params"> <!-- Basic options. --> <fieldset name="basic" label="COM_NEWSFEEDS_FIELDSET_MORE_OPTIONS_LABEL"> <field name="show_feed_image" type="list" label="COM_NEWSFEEDS_FIELD_SHOW_FEED_IMAGE_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_feed_description" type="list" label="COM_NEWSFEEDS_FIELD_SHOW_FEED_DESCRIPTION_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_item_description" type="list" label="COM_NEWSFEEDS_FIELD_SHOW_ITEM_DESCRIPTION_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="show_tags" type="list" label="COM_NEWSFEEDS_FIELD_SHOW_TAGS_LABEL" useglobal="true" class="form-select-color-state" validate="options" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="feed_character_count" type="number" label="COM_NEWSFEEDS_FIELD_CHARACTER_COUNT_LABEL" description="COM_NEWSFEEDS_FIELD_CHARACTER_COUNT_DESC" filter="integer" useglobal="true" /> <field name="feed_display_order" type="list" label="COM_NEWSFEEDS_FIELD_FEED_DISPLAY_ORDER_LABEL" useglobal="true" validate="options" > <option value="des">JGLOBAL_MOST_RECENT_FIRST</option> <option value="asc">JGLOBAL_OLDEST_FIRST</option> </field> </fieldset> </fields> </metadata>
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings