PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.7.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.7.0
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
templately / includes / Builder / Types / Single.php

Single.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.7.0, at includes/Builder/Types/Single.php

31 lines 783 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Templately\Builder\Types;
4
5 class Single extends ThemeTemplate {
6 public static function get_type(): string {
7 return 'single';
8 }
9
10 public static function get_title(): string {
11 return __( 'Single', 'templately' );
12 }
13
14 public static function get_plural_title(): string {
15 return __( 'Singles', 'templately' );
16 }
17
18 public static function get_properties($import_settings = []): array {
19 $properties = parent::get_properties();
20
21 $properties['location'] = 'single';
22 $properties['condition'] = 'include/singular/post';
23 $properties['support_wp_page_templates'] = true;
24
25 if(!empty($import_settings["sub_type"])){
26 $properties['condition'] = 'include/singular/' . $import_settings["sub_type"];
27 }
28
29 return $properties;
30 }
31 }