Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #682254

    + About the “mon”, “tue” it will change with each language text, you can see it from templates/ja_teline_v/tpls/blocks/header.php file


    <span class="day"><?php echo JText::_($date->format('D')) ?></span>, <span class="month"><?php echo JText::_($date->format('F').'_SHORT') ?></span> <br> <br><span class="time"><?php echo JText::_($date->format('H:i:s A')) ?></span>

    + NEW ARTICLES text

    Open language/en-GB/en-GB.tpl_ja_teline_v.ini file, find and change my red mard

    TPL_WN_NEW_ARTICLES="New Articles"

    + About the problem with number NEW ARTICLES, you can replace whole entire templates/ja_teline_v/acm/notification/tmpl/new-items.php file with code below (backup old file before doing changes)


    <?php
    /**
    *------------------------------------------------------------------------------
    * @package Teline V Template - JoomlArt
    * @version 1.0 Feb 1, 2014
    * @author JoomlArt http://www.joomlart.com
    * @copyright Copyright (c) 2004 - 2014 JoomlArt.com
    * @license GNU General Public License version 2 or later;
    *------------------------------------------------------------------------------
    */

    defined('_JEXEC') or die;

    $aparams = JATemplateHelper::getParams();

    $aparams->loadArray($helper->toArray(true));

    // get news
    $catids = $aparams->get('list_categories');
    $duration = $aparams->get('duration', 1);

    $type = JFactory::getApplication()->input->get('t3action') ? 'content' : 'count';

    $aparams->set('date_filtering', 'relative');
    $aparams->set('date_field', 'a.publish_up');
    $aparams->set('relative_date', $duration);
    $items = JATemplateHelper::getArticles($aparams, $catids, $aparams->get('count', 99));
    ?>

    <?php if ($type == 'count'): ?>
    <?php
    $count = JATemplateHelper::countItemsByDate($catids, $duration . ' days');
    $itemid = JFactory::getApplication()->input->get('ItemId');
    ?>
    <div class="whatsnew-alert" data-url="<?php echo JUri::base() ?>?t3action=module&mid=<?php echo $module->id ?>&style=raw">
    <span class="number">
    <?php echo count($items);?>
    </span>
    <span class="text"><?php echo JText::_('TPL_WN_NEW_ARTICLES'); ?></span>
    <span class="text indicator"><i class="fa fa-chevron-down"></i></span>
    </div>

    <?php else: ?>
    <div class="magazine-links container">
    <?php foreach ($items as $item): ?>
    <?php echo JLayoutHelper::render('joomla.content.link.clean', array('item' => $item, 'params' => $aparams)); ?>
    <?php endforeach ?>
    </div>

    <?php endif ?>

    Hope it helps

    Ninja Lead Moderator
    #747788

    + About the “mon”, “tue” date text, it will change due to the declaration in language file of your own language on your site. If you look at this templates/ja_teline_v/tpls/blocks/header.php file


    <span class="day"><?php echo JText::_($date->format('D')) ?></span>, <span class="month"><?php echo JText::_($date->format('F').'_SHORT') ?></span> <br> <br><span class="time"><?php echo JText::_($date->format('H:i:s A')) ?></span>

    ‘mon’, ‘tue’ are declared in language file for English.

    + NEW ARTICLES text

    Open language/en-GB/en-GB.tpl_ja_teline_v.ini file, find and translate this text field

    TPL_WN_NEW_ARTICLES="New Articles"

    + About the problem with number NEW ARTICLES, you can replace entire templates/ja_teline_v/acm/notification/tmpl/new-items.php file with code below (backup old file before doing changes)


    <?php
    /**
    *------------------------------------------------------------------------------
    * @package Teline V Template - JoomlArt
    * @version 1.0 Feb 1, 2014
    * @author JoomlArt http://www.joomlart.com
    * @copyright Copyright (c) 2004 - 2014 JoomlArt.com
    * @license GNU General Public License version 2 or later;
    *------------------------------------------------------------------------------
    */

    defined('_JEXEC') or die;

    $aparams = JATemplateHelper::getParams();

    $aparams->loadArray($helper->toArray(true));

    // get news
    $catids = $aparams->get('list_categories');
    $duration = $aparams->get('duration', 1);

    $type = JFactory::getApplication()->input->get('t3action') ? 'content' : 'count';

    $aparams->set('date_filtering', 'relative');
    $aparams->set('date_field', 'a.publish_up');
    $aparams->set('relative_date', $duration);
    $items = JATemplateHelper::getArticles($aparams, $catids, $aparams->get('count', 99));
    ?>

    <?php if ($type == 'count'): ?>
    <?php
    $count = JATemplateHelper::countItemsByDate($catids, $duration . ' days');
    $itemid = JFactory::getApplication()->input->get('ItemId');
    ?>
    <div class="whatsnew-alert" data-url="<?php echo JUri::base() ?>?t3action=module&mid=<?php echo $module->id ?>&style=raw">
    <span class="number">
    <?php echo count($items);?>
    </span>
    <span class="text"><?php echo JText::_('TPL_WN_NEW_ARTICLES'); ?></span>
    <span class="text indicator"><i class="fa fa-chevron-down"></i></span>
    </div>

    <?php else: ?>
    <div class="magazine-links container">
    <?php foreach ($items as $item): ?>
    <?php echo JLayoutHelper::render('joomla.content.link.clean', array('item' => $item, 'params' => $aparams)); ?>
    <?php endforeach ?>
    </div>

    <?php endif ?>

    Hope it helps

    hstrom Friend
    #693714

    I have the swedish language file as default, but did also translate the english file, but no response. In my file templates/ja_teline_v/tpls/blocks/header.php it looks like this, not as you quoted above:

    <span class="day"><?php echo date('D') ?></span>, <span class="month"><?php echo date('M') ?></span>

    The new new-items.php file worksk great, thanks!

    hstrom Friend
    #750068

    I have the swedish language file as default, but did also translate the english file, but no response. In my file templates/ja_teline_v/tpls/blocks/header.php it looks like this, not as you quoted above:

    <span class="day"><?php echo date('D') ?></span>, <span class="month"><?php echo date('M') ?></span>

    The new new-items.php file worksk great, thanks!

    Ninja Lead Moderator
    #693748

    Hi,

    You can pm me the URL and admin access backend of your site. I will help you to check it directly on your site.

    Regards

    Ninja Lead Moderator
    #750102

    Hi,

    You can pm me the URL and admin account to access backend of your site. I will help you to check it directly on your site.

    Regards

Viewing 6 posts - 16 through 21 (of 21 total)

This topic contains 21 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum