// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
homedir
/
public_html
/
wp-content
/
plugins
/
gallery-images-ape
/
libs
[ PARENT ]
EDIT :: gallery.list.php
<?php /* * Ape Gallery http://wpape.net * Version: 1.2.4 - 61253 * Author: Wp Ape (c) * Author URI: http://wpape.net * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Date: Thu, 08 Dec 2016 16:31:35 GMT */ if(!function_exists('wpApeGalleryListing')){ function wpApeGalleryListing (){ wp_enqueue_style ('wpape-gallery-listing-style', WPAPE_GALLERY_URL.'assets/css/admin/list.style.css', array( ), WPAPE_GALLERY_VERSION ); } add_action( 'in_admin_header', 'wpApeGalleryListing' ); } if(!function_exists('wpApeGalleryImagesColumn')){ function wpApeGalleryImagesColumn( $column, $post_id ) { switch ( $column ) { case 'wpape_gallery_images' : global $post; $images = get_post_meta( (int) $post->ID, WPAPE_GALLERY_NAMESPACE.'galleryImages', true); if(count($images)){ if( isset($images[0]) && trim($images[0])!='' ){ echo '<span class="dashicons-before dashicons-format-gallery"> '.count($images).'</span>'; } } break; } } add_action( 'manage_'.WPAPE_GALLERY_POST.'_posts_custom_column' , 'wpApeGalleryImagesColumn', 10, 2 ); } if(!function_exists('wpApeGalleryImagesColumnTitle')){ function wpApeGalleryImagesColumnTitle($columns) { return array_merge($columns, array('wpape_gallery_images' => __('Images') ) ); } add_filter('manage_'.WPAPE_GALLERY_POST.'_posts_columns' , 'wpApeGalleryImagesColumnTitle'); } if(!function_exists('wpApeGalleryShortcodeColumn')){ function wpApeGalleryShortcodeColumn( $column, $post_id ) { switch ( $column ) { case 'wpape_gallery' : global $post; echo '<span>[ape-gallery '.$post->ID.']</span>'; break; } } add_action( 'manage_'.WPAPE_GALLERY_POST.'_posts_custom_column' , 'wpApeGalleryShortcodeColumn', 10, 2 ); } if(!function_exists('wpApeGalleryShortcodeColumnTitle')){ function wpApeGalleryShortcodeColumnTitle($columns) { return array_merge($columns, array('wpape_gallery' => __('Shortcode') ) ); } add_filter('manage_'.WPAPE_GALLERY_POST.'_posts_columns' , 'wpApeGalleryShortcodeColumnTitle'); } if(isset($_GET['dialogpremium']) && $_GET['dialogpremium']){ if(!function_exists('wpApeGalleryShowInformation')){ function wpApeGalleryShowInformation(){ wp_enqueue_style("wp-jquery-ui-dialog"); wp_enqueue_script('jquery-ui-dialog'); wp_enqueue_script('wpape-gallery-info', WPAPE_GALLERY_URL.'assets/js/admin/info.js', array( 'jquery' ), WPAPE_GALLERY_VERSION, true ); echo '<div id="wpape_showInformation" ' .'style="display: none;" ' .'data-open="1" ' .'data-title="'.__('Premium Ape Gallery', 'wpape_gallery').'" ' .'data-close="'.__('Close', 'wpape_gallery').'" ' .'data-info="'.__('Premium version', 'wpape_gallery').'"' .'>' .__('Only 2 galleries in FREE version. We\'re really appreciate if You update your gallery to Premium version. It\'s gonna help us to create more wonderful functions :-)', 'wpape_gallery') .'</div>'; } if(!WPAPE_GALLERY_PREMIUM) add_action( 'in_admin_header', 'wpApeGalleryShowInformation' ); } }
SAVE
CANCEL