test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • ger12 Friend
    #201045

    Hi, I have some question about blog menu. :-[

    1- This is date published, how can display “created” here?

    2- How can I translate this words?

    3- Why look diferent? I would like to have like the DEMO, I just change the category!

    This the demo look

    Moreover

    Into the blog I see that:

    Cant see the category, because is WHITE. 😀

    Put the cursor on it and appear 😮

    How can I display the category in BLACK or another color but not WHITE?

    Thank in advance.

    Ninja Lead Moderator
    #548371

    You can find my answer with your request

    #1: Change published to created

    Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file

    find and change


    <?php if ($displayData['params']->get('show_publish_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?>
    <?php endif; ?>

    to


    <?php if ($displayData['params']->get('show_create_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
    <?php endif; ?>

    + Create templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file and add new code below


    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;
    ?>
    <dd class="created hasTooltip" title="<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', ''); ?>">
    <time class="month" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
    <?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_MONTH_FORMAT_LC3')); ?>
    </time>

    <time class="date" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
    <?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_DATE_FORMAT_LC3')); ?>
    </time>
    </dd>

    + Create templates/ja_nuevo/css/custom.css file and add new rule


    .created {
    background: #73bfe6;
    border-radius: 50%;
    color: #ffffff;
    height: 60px;
    padding: 6px;
    text-align: center;
    width: 60px;
    position: absolute;
    left: 12px;
    top: 12px;
    } @media screen and (max-width: 480px) {
    .created {
    border-radius: 0;
    }
    }
    .created .date {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    } @media (min-width: 939px) {
    .article-info .parent-category-name {
    display: inline-block;
    }
    .article-info .created {
    position: static;
    }
    .article-aside .btn-group {
    position: relative;
    top: auto;
    right: auto;
    }
    }

    #2: Translate text on this

    + Open language/en-GB/en-GB.tpl_ja_nuevo.ini file and change text with my red mark

    TPL_WRITTEN_BY ="Written by"
    TPL_CATEGORY_NAME ="Published in"
    TPL_JACOMMENT_LABEL ="Comment"

    + Open language/en-GB/en-GB.com_content.ini file and change text with my red mark

    COM_CONTENT_PARENT="Parent Category: %s"
    COM_CONTENT_CREATED_DATE_ON="Created: %s"
    COM_CONTENT_WRITTEN_BY="Written by %s"

    #3: About the config from Articles Category module you can reference the guide here and find “5. Articles Category

    Other request to change text color

    + Open templates/ja_nuevo/css/custom.css file, add new rule and change color #ffffff to other


    .createdby span, .parent-category-name span {
    font-weight: 700;
    color: #ffffff ;
    }

    .category-name span {
    color: #ffffff ;
    font-weight: 700;
    }

    .intro-image-wrap .article-aside .jacomment-count a {
    font-weight: 700;
    color: #ffffff ;
    }

    ger12 Friend
    #548546

    <em>@Ninja Lead 444355 wrote:</em><blockquote>You can find my answer with your request

    #1: Change published to created

    Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file

    find and change


    <?php if ($displayData['params']->get('show_publish_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.publish_date', $displayData); ?>
    <?php endif; ?>

    to


    <?php if ($displayData['params']->get('show_create_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
    <?php endif; ?>

    + Create templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file and add new code below


    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;
    ?>
    <dd class="created hasTooltip" title="<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', ''); ?>">
    <time class="month" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
    <?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_MONTH_FORMAT_LC3')); ?>
    </time>

    <time class="date" datetime="<?php echo JHtml::_('date', $displayData['item']->created, 'c'); ?>" itemprop="dateCreated">
    <?php echo JHtml::_('date', $displayData['item']->created, JText::_('TPL_DATE_FORMAT_LC3')); ?>
    </time>
    </dd>

    + Create templates/ja_nuevo/css/custom.css file and add new rule


    .created {
    background: #73bfe6;
    border-radius: 50%;
    color: #ffffff;
    height: 60px;
    padding: 6px;
    text-align: center;
    width: 60px;
    position: absolute;
    left: 12px;
    top: 12px;
    } @media screen and (max-width: 480px) {
    .created {
    border-radius: 0;
    }
    }
    .created .date {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    } @media (min-width: 939px) {
    .article-info .parent-category-name {
    display: inline-block;
    }
    .article-info .created {
    position: static;
    }
    .article-aside .btn-group {
    position: relative;
    top: auto;
    right: auto;
    }
    }

    </blockquote>

    Thank for your help, I make the change you said but now show two circles.

    And I would like to have like DEMO

    Wich part i need modificate to do that?

    Thanks in advance

    Ninja Lead Moderator
    #548695

    So that I can take a look and try to assist, please provide the url of the site you’re working on

    ger12 Friend
    #548768

    HI, 🙂

    Here is the URL

    Thanks in advance.

    Ninja Lead Moderator
    #548782

    <em>@ger12 444861 wrote:</em><blockquote>HI, 🙂

    Here is the URL

    Thanks in advance.</blockquote>

    This will help you to fix this bug

    Open templates/ja_nuevo/html/layouts/joomla/content/info_block/block.php file

    Change


    <?php if ($displayData['params']->get('show_create_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.create_date', $displayData); ?>
    <?php endif; ?>

    <?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
    <?php endif; ?>

    To


    <?php if ($displayData['params']->get('show_create_date')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.create_date_custom', $displayData); ?>
    <?php endif; ?>

    <?php if ($displayData['params']->get('show_author') && !empty($displayData['item']->author )) : ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.author', $displayData); ?>
    <?php endif; ?>

    + Rename templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date.php file to templates/ja_nuevo/html/layouts/joomla/content/info_block/create_date_custom.php file

    Let me know if it helps

    ger12 Friend
    #548931

    Sorry, but not work.

    I did all the change you said but didnt work.

    I try to revert all over again but dont look like the demo again.

    Could yo please help me to get back or make the right changes.

    Now I dont care published or created, please help me.

    I Would like to have like this: (published or created – better created but if it is not possible published like the demo)

    Now looks like THIS and looks horrible.

    Thanks in advance.

    PD: I swear I did all the changes you said body, but dont work at all.

    Ninja Lead Moderator
    #548965

    @ger12: Don’t worry about this, I just helped you to fix the problem directly on your site. For now you see it’s working fine with Blog and detail page.


    1. blog_create_date
    2. detail_create_date
    ger12 Friend
    #549021

    Thank you, Ninja Lead!

    Thank you very much.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  ger12 10 years, 2 months ago.

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