Kael
Постоялец
- Регистрация
- 21 Окт 2017
- Сообщения
- 98
- Реакции
- 31
Кто настраивал fotorama на Веронике? Скрипт подключил, только немного не понял где что редактировать, подскажите пожалуйста.
Код:
<!-- IMAGE BOX -->
<div id="images">
<?php if($item_extra['i_sold'] == 1) { ?>
<div class="flag sold"><i class="fa fa-gavel"></i> <?php _e('Item sold', 'veronika'); ?></div>
<?php } else if($item_extra['i_sold'] == 2) { ?>
<div class="flag reserved"><i class="fa fa-flag"></i> <?php _e('Item reserved', 'veronika'); ?></div>
<?php } else if (osc_item_is_premium()) { ?>
<div class="flag premium"><i class="fa fa-star"></i> <?php _e('Premium', 'veronika'); ?></div>
<?php } ?>
<?php if( osc_images_enabled_at_items() ) { ?>
<?php osc_get_item_resources(); ?>
<?php if( osc_count_item_resources() > 0 ) { ?>
<?php $at_once = min(osc_get_preference('item_images', 'veronika_theme'), osc_count_item_resources()); ?>
<div id="pictures" class="item-pictures">
<ul class="item-bxslider">
<?php osc_reset_resources(); ?>
<?php for( $i = 0; osc_has_item_resources(); $i++ ) { ?>
<li>
<?php if($content_only == 0) { ?>
<a rel="image_group" href="<?php echo osc_resource_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?> - <?php _e('Image', 'veronika'); ?> <?php echo $i+1;?>/<?php echo osc_count_item_resources();?>">
<img src="<?php echo osc_resource_url(); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?> - <?php echo $i+1;?>/<?php echo osc_count_item_resources();?>"/>
</a>
<?php } else { ?>
<img src="<?php echo osc_resource_url(); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?> - <?php echo $i+1;?>/<?php echo osc_count_item_resources();?>"/>
<?php } ?>
</li>
<?php } ?>
</ul>
<div id="photo-count" class="round2">
<div class="top"><i class="fa fa-camera"></i></div>
<div class="bottom">
<?php if(osc_count_item_resources() == 1) { ?>
<span class="p-total"><?php echo osc_count_item_resources(); ?></span> <?php _e('photo', 'veronika'); ?>
<?php } else { ?>
<span class="p-from">1</span> <span class="p-del">-</span> <span class="p-to"><?php echo $at_once; ?></span> <?php _e('of', 'veronika'); ?> <span class="p-total"><?php echo osc_count_item_resources(); ?></span>
<?php } ?>
</div>
</div>
<?php if(osc_count_item_resources() > 1 && osc_get_preference('item_pager', 'veronika_theme') == 1) { ?>
<div id="item-bx-pager">
<?php osc_reset_resources(); ?>
<?php $c = 0; ?>
<?php for( $i = 1; osc_has_item_resources(); $i++ ) { ?>
<?php if($i - 1 + $at_once <= osc_count_item_resources()) { ?>
<a data-slide-index="<?php echo $c; ?>" href="" class="bx-navi<?php if($i - 1 + $at_once == osc_count_item_resources()) { ?> last<?php } ?>"<?php if($i - 1 + $at_once == osc_count_item_resources()) { ?> style="width:<?php echo $at_once * 128; ?>px"<?php } ?>>
<?php } ?>
<img src="<?php echo osc_resource_thumbnail_url(); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?> - <?php _e('Image', 'veronika'); ?> <?php echo $i;?>/<?php echo osc_count_item_resources();?>"/>
<?php if($i == osc_count_item_resources()) { ?>
</a>
<?php } ?>
<?php $c++; ?>
<?php } ?>
</div>
<?php } ?>
</div>
<?php } else { ?>
<div id="image-empty">
<img class="round3" src="<?php echo osc_base_url(); ?>oc-content/themes/<?php echo osc_current_web_theme(); ?>/images/item-no-picture.png" alt="<?php echo osc_esc_html(__('Seller did not upload any pictures', 'veronika')); ?>" />
<span><?php _e('Seller did not upload any pictures', 'veronika'); ?></span>
</div>
<?php } ?>
<?php } ?>
</div>