Autor Zpráva
26lukas26
Profil
Zdravím, mal by som na vás menšiu prozbičku... v Plugine Nextgen gallery pri volbe image browser sú iba tlačítka Back a Next ...

Viď obrázok: http://www.vedelisteze.sk/wp-content/uploads/2015/06/prevnext.png

Ja by som potreboval aby tam boli ešte číslovania: 1 - 2 - 3 (preklikávacie buttony)

V suboroch imagebrowseru som nasiel subor: nextgen_basic_imagebrowser.php

<?php $this->start_element('nextgen_gallery.gallery_container', 'container', $displayed_gallery); ?>
    <div class='ngg-imagebrowser' id='<?php echo $anchor; ?>' data-nextgen-gallery-id="<?php echo $displayed_gallery->id(); ?>">

    <h3><?php echo esc_attr($image->alttext); ?></h3>

        <?php
        
        $template_params = array(
                'index' => 0,
                'class' => 'pic',
                'image' => $image,
            );
            
        $this->include_template('photocrati-nextgen_gallery_display#image/before', $template_params);
        
        ?>
        <a href='<?php echo esc_attr($storage->get_image_url($image, 'full', TRUE)); ?>'
           title='<?php echo esc_attr($image->description); ?>'
           data-src="<?php echo esc_attr($storage->get_image_url($image)); ?>"
           data-thumbnail="<?php echo esc_attr($storage->get_image_url($image, 'thumb')); ?>"
           data-image-id="<?php echo esc_attr($image->{$image->id_field}); ?>"
           data-title="<?php echo esc_attr($image->alttext); ?>"
           data-description="<?php echo esc_attr(stripslashes($image->description)); ?>"
           <?php echo $effect_code ?>>
            <img title='<?php echo esc_attr($image->alttext); ?>'
                 alt='<?php echo esc_attr($image->alttext); ?>'
                 src='<?php echo esc_attr($storage->get_image_url($image, 'full', TRUE)); ?>'/>
        </a>
      <?php

        $this->include_template('photocrati-nextgen_gallery_display#image/after', $template_params);

        ?>

    <div class='ngg-imagebrowser-nav'>

        <div class='back'>
            <a class='ngg-browser-prev'
               id='ngg-prev-<?php echo $previous_pid; ?>'
               href='<?php echo $previous_image_link; ?>'>
                ◄ <?php _e('Back', 'nggallery'); ?>
            </a>
        </div>

        <div class='next'>
            <a class='ngg-browser-next'
               id='ngg-next-<?php echo $next_pid; ?>'
               href='<?php echo $next_image_link; ?>'>
                <?php _e('Next', 'nggallery'); ?>
                ►
            </a>
        </div>

        <div class='counter'>
            <?php _e('Picture', 'nggallery'); ?> <?php echo $number; ?> <?php _e('of', 'nggallery'); ?> <?php echo $total; ?>
        </div>

        <div class='ngg-imagebrowser-desc'>
            <p>
                <?php echo $image->description; ?>
            </p>
        </div>

    </div>

</div>
<?php $this->end_element(); ?>
<script type='text/javascript'>
    jQuery(function($) {
        new NggPaginatedGallery('<?php echo $displayed_gallery->id() ?>', '.ngg-imagebrowser');
    });
</script>

Viete mi to pomoct upravit?

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0