30 lines
		
	
	
		
			640 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			640 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Elementor\Includes\TemplateLibrary\Sources\AdminMenuItems;
 | 
						|
 | 
						|
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item;
 | 
						|
use Elementor\Core\Editor\Editor;
 | 
						|
use Elementor\TemplateLibrary\Source_Local;
 | 
						|
 | 
						|
if ( ! defined( 'ABSPATH' ) ) {
 | 
						|
	exit; // Exit if accessed directly.
 | 
						|
}
 | 
						|
 | 
						|
class Add_New_Template_Menu_Item implements Admin_Menu_Item {
 | 
						|
 | 
						|
	public function is_visible() {
 | 
						|
		return true;
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_parent_slug() {
 | 
						|
		return Source_Local::ADMIN_MENU_SLUG;
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_label() {
 | 
						|
		return esc_html__( 'Add New', 'elementor' );
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_capability() {
 | 
						|
		return Editor::EDITING_CAPABILITY;
 | 
						|
	}
 | 
						|
}
 |