# master-addons/3.1.9/inc/admin/templates/editor/template-modal-header-logo.php

Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder &amp; Template Kits, version 3.1.9. 29 lines.

- Page: https://pluginprobe.com/plugins/master-addons/3.1.9/code/inc/admin/templates/editor/template-modal-header-logo.php
- Raw: https://pluginprobe.com/plugins/master-addons/3.1.9/raw/inc/admin/templates/editor/template-modal-header-logo.php
- Modified: 2026-05-19T13:15:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/master-addons/3.1.9/code/inc/admin/templates/editor/template-modal-header-logo.php#L10-L20`.

```php
<?php
/**
 * Template Library Modal Header
 */
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}
?>
<?php
    global $pagenow;
    $library_title = 'Template Library';
    if ( 'post.php' === $pagenow && isset( $_GET['post'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only admin context detection for display
        $post_id = absint( $_GET['post'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only post ID for display label
        if ( $post_id ) {
                $current_post_type = get_post_type( $post_id );
            if( 'jltma_popup' === $current_post_type ){
                $library_title = 'Popup Builder';
            }
        }
    }
?>
<div class="ma-el-modal-header-logo-icon">
    <img src="<?php echo esc_url( JLTMA_IMAGE_DIR . 'logo.svg' ); ?>">
    <div class="jltma-template-lib-title">
        <!-- Templates Library -->
        <?php echo esc_html( $library_title ); ?>
    </div>
</div>

```
