示例#1
0
 /**
  * LazyestFrontendFolder::empty_link()
  * echo a link to an image
  * 
  * @since 1.1.0
  * @uses esc_attr() 
  * @param LazyestThumb $image
  * @return void
  */
 function empty_link($image)
 {
     $onclick = $image->on_click();
     $rel = '' != $onclick['rel'] ? 'rel="' . $onclick['rel'] . '"' : '';
     printf('<a id="%s" href="%s" class="%s" %s title="%s"></a>', $onclick['id'], $onclick['href'], $onclick['class'], $rel, esc_attr($image->title()));
 }
示例#2
0
    /**
     * LazyestUploadTab::_image_row()
     * Display a row of image information
     * 
     * @param LazyestThumb $image
     * @return void
     */
    function _image_row($image)
    {
        $back_url = $this->action_url() . '&folder=' . $image->folder->id;
        $image_src = $image->src();
        $lg_ajax = strpos($image_src, '?') ? ' lg_ajax' : '';
        ?>
    <div id="media-item-<?php 
        echo $image->id;
        ?>
" class="media-item child-of-0 preloaded lazyest-item">  
      <img id="pinky_<?php 
        echo $image->id;
        ?>
" class="pinkynail toggle<?php 
        echo $lg_ajax;
        ?>
" alt="" src="<?php 
        echo $image_src;
        ?>
" style="margin-top:3px; display:block;" />  
      <div id="lg_actions_<?php 
        echo $image->id;
        ?>
" class="folder-actions">    
        <img alt="" id="ajax-loading_<?php 
        echo $image->id;
        ?>
" class="ajax-loading" src="<?php 
        echo admin_url('images/wpspin_light.gif');
        ?>
" />  
        <a rel="<?php 
        echo urlencode($image->folder->curdir . $image->image);
        ?>
" id="lg_ii_<?php 
        echo $image->id;
        ?>
" class="lg_upload-insertimage" title="<?php 
        esc_html_e('Insert image shortcode', 'lazyest-gallery');
        ?>
" id="lg_if_<?php 
        echo $image->id;
        ?>
" href="#"><?php 
        esc_html_e('Insert', 'lazyest-gallery');
        ?>
</a>                
      </div>
      <div id="lg_back_<?php 
        echo $image->id;
        ?>
" class="folder-actions" style="display:none;">    
        <a title="<?php 
        esc_html_e('Show all images in this folder', 'lazyest-gallery');
        ?>
" href="<?php 
        echo $back_url;
        ?>
"><?php 
        esc_html_e('Back', 'lazyest-gallery');
        ?>
</a>                
      </div>         
      <div class="filename"><span class="title"><code><?php 
        echo htmlentities($image->image);
        ?>
</code> <?php 
        echo $image->title();
        ?>
</span></div>      
    </div>
    <?php 
    }