Перейти к содержимому


Фотография
- - - - -

Мелочи оформления full (флаги стран)


Сообщений в теме: 7

#1 robotwerder

robotwerder

Отправлено 06 August 2015 - 08:10

Как сделать, чтобы флаги стран отображались, в шаблоне вижу лишь наименования стран?!

Кроме этого, вижу ошибку на странице вывода шаблона. (http://demo.urolog66...eriya-barrakuda)

сразу полсе хлебных крошек , всплывает такая надпись

$align = $this->app->jbitem->getMediaAlign($item, $layout); ?> 

  • 0

#2 Cheren-dow

Cheren-dow

Отправлено 06 August 2015 - 08:20

robotwerder, можете привести полный код full шаблона? 


  • 1
Изображение
 

#3 robotwerder

robotwerder

Отправлено 06 August 2015 - 09:10

<?php
/**
 * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
 *
 * @package     jbzoo
 * @version     2.x Pro
 * @author      JBZoo App http://jbzoo.com
 * @copyright   Copyright (C) JBZoo.com,  All rights reserved.
 * @license     http://jbzoo.com/license-pro.php JBZoo Licence
 * @coder       Denis Smetannikov <denis@jbzoo.com>
 */

// no direct access
defined('_JEXEC') or die('Restricted access');
?>

<!--<?php if ($this->checkPosition('properties')) : ?>

   <?php echo $this->renderPosition('properties', array(
    'style'      => 'jbblock', 
	'showlabel'  => true, 
	'altlabel'   => 'Заголовок', 
	'class'      => 'simple-block', 
    'labelTag'   => 'strong', 
    'tag'        => 'p', 
    'wrapperTag' => 'em',
	'tooltip'    => 1,
	)); ?>

<?php endif; ?>
-->



$align = $this->app->jbitem->getMediaAlign($item, $layout);
?>

<?php if ($this->checkPosition('title')) : ?>
    <h1 class="item-title"><?php echo $this->renderPosition('title'); ?></h1>
<?php endif; ?>

<?php if ($this->checkPosition('text1')) : ?>
    <?php echo $this->renderPosition('text1', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('image')) : ?>
    <div class="item-image align-<?php echo $align; ?>">
        <?php echo $this->renderPosition('image'); ?>
    </div>
<?php endif; ?>


<?php if ($this->checkPosition('properties')) : ?>

<table class='jbtable'>
   <?php echo $this->renderPosition('properties', array(
    'style'      => 'jbtable', 
	'tooltip'    => 1,
	)); ?>
</table>

<?php endif; ?>

<?php if ($this->checkPosition('text2')) : ?>
    <?php echo $this->renderPosition('text2', array('style' => 'block')); ?>
<?php endif; ?>


<!--<?php if ($this->checkPosition('properties')) : ?>
    <ul class="item-properties">
        <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>-->

<?php if ($this->checkPosition('text3')) : ?>
    <?php echo $this->renderPosition('text3', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text4')) : ?>
    <?php echo $this->renderPosition('text4', array('style' => 'block')); ?>
<?php endif; ?>
<?php if ($this->checkPosition('text5')) : ?>
    <?php echo $this->renderPosition('text5', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text6')) : ?>
    <?php echo $this->renderPosition('text6', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text7')) : ?>
    <?php echo $this->renderPosition('text7', array('style' => 'block')); ?>
<?php endif; ?>
<?php if ($this->checkPosition('text8')) : ?>
    <?php echo $this->renderPosition('text8', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('meta')) : ?>
    <ul class="item-metadata">
        <?php echo $this->renderPosition('meta', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>

<?php echo JBZOO_CLR; ?>


  • 0

#4 Cheren-dow

Cheren-dow

Отправлено 06 August 2015 - 09:45

robotwerder, вы допустили ошибку в php синтаксисе, попробуйте использовать

<?php
/**
 * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
 *
 * @package     jbzoo
 * @version     2.x Pro
 * @author      JBZoo App http://jbzoo.com
 * @copyright   Copyright (C) JBZoo.com,  All rights reserved.
 * @license     http://jbzoo.com/license-pro.php JBZoo Licence
 * @coder       Denis Smetannikov <denis@jbzoo.com>
 */

// no direct access
defined('_JEXEC') or die('Restricted access');
?>

<!--<?php if ($this->checkPosition('properties')) : ?>

   <?php echo $this->renderPosition('properties', array(
    'style'      => 'jbblock',
    'showlabel'  => true,
    'altlabel'   => 'Заголовок',
    'class'      => 'simple-block',
    'labelTag'   => 'strong',
    'tag'        => 'p',
    'wrapperTag' => 'em',
    'tooltip'    => 1,
)); ?>

<?php endif; ?>
-->


<?php
$align = $this->app->jbitem->getMediaAlign($item, $layout);
?>

<?php if ($this->checkPosition('title')) : ?>
    <h1 class="item-title"><?php echo $this->renderPosition('title'); ?></h1>
<?php endif; ?>

<?php if ($this->checkPosition('text1')) : ?>
    <?php echo $this->renderPosition('text1', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('image')) : ?>
    <div class="item-image align-<?php echo $align; ?>">
        <?php echo $this->renderPosition('image'); ?>
    </div>
<?php endif; ?>


<?php if ($this->checkPosition('properties')) : ?>

    <table class='jbtable'>
        <?php echo $this->renderPosition('properties', array(
            'style'      => 'jbtable',
            'tooltip'    => 1,
        )); ?>
    </table>

<?php endif; ?>

<?php if ($this->checkPosition('text2')) : ?>
    <?php echo $this->renderPosition('text2', array('style' => 'block')); ?>
<?php endif; ?>


<!--<?php if ($this->checkPosition('properties')) : ?>
    <ul class="item-properties">
        <?php echo $this->renderPosition('properties', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>-->

<?php if ($this->checkPosition('text3')) : ?>
    <?php echo $this->renderPosition('text3', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text4')) : ?>
    <?php echo $this->renderPosition('text4', array('style' => 'block')); ?>
<?php endif; ?>
<?php if ($this->checkPosition('text5')) : ?>
    <?php echo $this->renderPosition('text5', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text6')) : ?>
    <?php echo $this->renderPosition('text6', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('text7')) : ?>
    <?php echo $this->renderPosition('text7', array('style' => 'block')); ?>
<?php endif; ?>
<?php if ($this->checkPosition('text8')) : ?>
    <?php echo $this->renderPosition('text8', array('style' => 'block')); ?>
<?php endif; ?>

<?php if ($this->checkPosition('meta')) : ?>
    <ul class="item-metadata">
        <?php echo $this->renderPosition('meta', array('style' => 'list')); ?>
    </ul>
<?php endif; ?>

<?php echo JBZOO_CLR; ?>
 

  • 1
Изображение
 

#5 robotwerder

robotwerder

Отправлено 06 August 2015 - 11:32

Заменил.. Ошибка пропала..

Но с флагами стран Ничего не изменилось (((.. Они по прежнему не отображаются

http://demo.urolog66...restoran-velkom

Нужна ваша помощь


Сообщение отредактировал robotwerder: 06 August 2015 - 11:35

  • 0

#6 Cheren-dow

Cheren-dow

Отправлено 06 August 2015 - 12:06

Но с флагами стран Ничего не изменилось (((.. Они по прежнему не отображаются

Элемент ZOO Country не может выводить флаги. 


  • 0
Изображение
 

#7 robotwerder

robotwerder

Отправлено 06 August 2015 - 12:12

а с помощью чего я могу их вывести? Не вижу элемента который их выводит


  • 0

#8 Cheren-dow

Cheren-dow

Отправлено 06 August 2015 - 12:13

robotwerder, попробуйте использовать элемент ImageBox  


  • 1
Изображение
 




Click to return to top of page in style!