// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
homedir
/
public_html
/
wp-content
/
plugins
/
gallery-images-ape
/
libs
/
render
[ PARENT ]
EDIT :: classView.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 */ function wpApeGalleryShortcode( $attr ) { $retHTML = ''; if( isset($attr) && ( isset($attr['id']) || isset($attr[0]) ) ){ $gallery = new apeGallery($attr); $retHTML = $gallery->getGallery(); } else $retHTML = __('ApeGallery shortcode is incorrect', 'wpape_gallery'); return $retHTML; } add_shortcode( 'ape-gallery', 'wpApeGalleryShortcode' ); function wpApeGalleryActionShortcode($content){ global $post; if ( post_password_required() ) return $content; $retHTML = ''; if( is_main_query() && get_post_type() == WPAPE_GALLERY_POST) $retHTML = do_shortcode("[ape-gallery id={$post->ID}]"); return $content.$retHTML; } add_filter( 'the_content', 'wpApeGalleryActionShortcode');
SAVE
CANCEL