// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
homedir
/
public_html
/
wp-content
/
plugins
/
gallery-images-ape
/
libs
[ PARENT ]
EDIT :: editor.button.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 wpApeGalleryEditorButton(){ global $pagenow; if( isset( $pagenow) && $pagenow=='admin-ajax.php' ) return ; wp_enqueue_style("wp-jquery-ui-dialog"); wp_enqueue_script('jquery-ui-dialog'); wp_enqueue_script('wpape-gallery-editor-script-button', WPAPE_GALLERY_URL.'assets/js/admin/post.editor.js', array( 'jquery' ), '1.0.0', true ); $translation_array = array( 'apeGalleryTitle' => __('Ape Gallery Shortcode','wpape_gallery'), 'closeButton' => __('Close'), 'insertButton' => __('Add'), ); wp_localize_script( 'wpape-gallery-editor-script-button', 'wpape_gallery_trans', $translation_array ); wp_enqueue_script( 'wpape-gallery-editor-script-button' ); echo '<a href="#wpape-gallery" id="insert-wpape-gallery" class="button"><span class="dashicons dashicons-palmtree" style="margin: 2px 2px 0 0; color:green;"></span>'.__( 'Add Ape Gallery' , 'wpape_gallery' ).'</a>'; $args = array( 'child_of' => 0, 'sort_order' => 'ASC', 'sort_column' => 'post_title', 'hierarchical' => 1, 'echo' => 0, 'post_type' => WPAPE_GALLERY_POST ); echo '<div id="wpape-gallery" style="display: none;">' .'<p style="margin-top:0px;">'.__( 'First setup some gallery in ','wpape_gallery').' <a href="edit.php?post_type='.WPAPE_GALLERY_POST.'" target="_blank">'.__( 'Ape galleries manage','wpape_gallery').'</a></p>' .__('After that you can select configured gallery from list here:', 'wpape_gallery').' '.wp_dropdown_pages( $args ) .'</div>'; } add_action('media_buttons', 'wpApeGalleryEditorButton', 15);
SAVE
CANCEL