| Server IP : 89.108.64.180 / Your IP : 216.73.217.95 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/hotelgerda.ru/wp-content/plugins/hoteller-elementor/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Hoteller_Templates_Source extends Elementor\TemplateLibrary\Source_Base {
/**
* Template prefix
*
* @var string
*/
protected $template_prefix = 'hoteller_';
/**
* Return JetImpex templates prefix
*
* @return [type] [description]
*/
public function get_prefix() {
return $this->template_prefix;
}
public function get_id() {
return 'hoteller-templates';
}
public function get_title() {
return __( 'Hoteller Templates', 'hoteller-elementor' );
}
public function register_data() {}
public function get_items( $args = array() ) {
$templates = array();
$templates_data = array(
1 => array(
'template_id' => $this->template_prefix .'1',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_1.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/about-us/',
),
2 => array(
'template_id' => $this->template_prefix .'2',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_2.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/our-rooms/',
),
3 => array(
'template_id' => $this->template_prefix .'3',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Contact',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_3.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/contact/',
),
4 => array(
'template_id' => $this->template_prefix .'4',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Offer & Package',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_4.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('offer'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/offer-package/',
),
5 => array(
'template_id' => $this->template_prefix .'5',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Testimonial',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_5.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('testimonial'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/testimonial/',
),
6 => array(
'template_id' => $this->template_prefix .'6',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Our Menus',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_6.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our menus'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/our-menus/',
),
7 => array(
'template_id' => $this->template_prefix .'7',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Blog',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_7.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('blog'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/blog/',
),
8 => array(
'template_id' => $this->template_prefix .'8',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Explore',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_8.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('explore'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/explore/',
),
9 => array(
'template_id' => $this->template_prefix .'9',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Terms & Conditions',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_9.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('terms', 'conditions'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/terms-and-conditions/',
),
10 => array(
'template_id' => $this->template_prefix .'10',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Gallery',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_10.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('gallery'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/gallery/',
),
11 => array(
'template_id' => $this->template_prefix .'11',
'source' => $this->get_id(),
'title' => 'Luxury Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_11.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/luxury/',
),
12 => array(
'template_id' => $this->template_prefix .'12',
'source' => $this->get_id(),
'title' => 'City Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_12.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/city/our-rooms/',
),
13 => array(
'template_id' => $this->template_prefix .'13',
'source' => $this->get_id(),
'title' => 'City Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_13.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/city/about-us/',
),
14 => array(
'template_id' => $this->template_prefix .'14',
'source' => $this->get_id(),
'title' => 'City Hoteller - Blog',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_14.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('blog'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/city/blog/',
),
15 => array(
'template_id' => $this->template_prefix .'15',
'source' => $this->get_id(),
'title' => 'City Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_15.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/city/',
),
16 => array(
'template_id' => $this->template_prefix .'16',
'source' => $this->get_id(),
'title' => 'Mountain Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_16.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/mountain/our-rooms/',
),
17 => array(
'template_id' => $this->template_prefix .'17',
'source' => $this->get_id(),
'title' => 'Mountain Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_17.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/mountain/about-us/',
),
18 => array(
'template_id' => $this->template_prefix .'18',
'source' => $this->get_id(),
'title' => 'Mountain Hoteller - Blog',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_18.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('blog'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/mountain/blog/',
),
19 => array(
'template_id' => $this->template_prefix .'19',
'source' => $this->get_id(),
'title' => 'Beach Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_19.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/beach/our-rooms/',
),
20 => array(
'template_id' => $this->template_prefix .'20',
'source' => $this->get_id(),
'title' => 'Beach Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_20.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/beach/about-us/',
),
21 => array(
'template_id' => $this->template_prefix .'21',
'source' => $this->get_id(),
'title' => 'Beach Hoteller - Blog',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_21.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('blog'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/beach/blog/',
),
22 => array(
'template_id' => $this->template_prefix .'22',
'source' => $this->get_id(),
'title' => 'Beach Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_22.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/beach/',
),
23 => array(
'template_id' => $this->template_prefix .'23',
'source' => $this->get_id(),
'title' => 'Apartment Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_23.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/apartment/our-rooms/',
),
24 => array(
'template_id' => $this->template_prefix .'24',
'source' => $this->get_id(),
'title' => 'Apartment Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_24.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/apartment/about-us/',
),
25 => array(
'template_id' => $this->template_prefix .'25',
'source' => $this->get_id(),
'title' => 'Apartment Hoteller - Blog',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_25.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('blog'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/apartment/blog/',
),
26 => array(
'template_id' => $this->template_prefix .'26',
'source' => $this->get_id(),
'title' => 'Apartment Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_26.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/apartment/',
),
27 => array(
'template_id' => $this->template_prefix .'27',
'source' => $this->get_id(),
'title' => 'Cultural Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_27.png',
'date' => date( get_option( 'date_format' ), 1539340117 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/cultural/',
),
28 => array(
'template_id' => $this->template_prefix .'28',
'source' => $this->get_id(),
'title' => 'Cultural Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_28.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/cultural/our-rooms/',
),
29 => array(
'template_id' => $this->template_prefix .'29',
'source' => $this->get_id(),
'title' => 'Cultural Hoteller - Dining',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_29.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('dining'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/cultural/dining/',
),
30 => array(
'template_id' => $this->template_prefix .'30',
'source' => $this->get_id(),
'title' => 'Cultural Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_30.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/cultural/about-us/',
),
31 => array(
'template_id' => $this->template_prefix .'31',
'source' => $this->get_id(),
'title' => 'Cultural Hoteller - Contact',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_31.png',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/cultural/contact/',
),
32 => array(
'template_id' => $this->template_prefix .'32',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_32.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/our-rooms/',
),
33 => array(
'template_id' => $this->template_prefix .'33',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Dining',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_33.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('dining'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/dining/',
),
34 => array(
'template_id' => $this->template_prefix .'34',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_34.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/about/',
),
35 => array(
'template_id' => $this->template_prefix .'35',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Contact',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_35.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/contact/',
),
36 => array(
'template_id' => $this->template_prefix .'36',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Book Now',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_36.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('book now'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/booking-now/',
),
37 => array(
'template_id' => $this->template_prefix .'37',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_37.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/',
),
38 => array(
'template_id' => $this->template_prefix .'38',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Single Accommodation',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_38.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('single accommodation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/accommodation/superior-room/',
),
39 => array(
'template_id' => $this->template_prefix .'39',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_39.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/our-rooms/',
),
40 => array(
'template_id' => $this->template_prefix .'40',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Dining',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_40.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('dining'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/dining/',
),
41 => array(
'template_id' => $this->template_prefix .'41',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_41.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/about-the-hotel/',
),
42 => array(
'template_id' => $this->template_prefix .'42',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Contact',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_42.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/contact/',
),
43 => array(
'template_id' => $this->template_prefix .'43',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Book Now',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_43.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('book now'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/book-now/',
),
44 => array(
'template_id' => $this->template_prefix .'44',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_44.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/',
),
45 => array(
'template_id' => $this->template_prefix .'45',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Single Accommodation',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_45.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('single accommodation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/accommodation/superior-room/',
),
46 => array(
'template_id' => $this->template_prefix .'46',
'source' => $this->get_id(),
'title' => 'Mountain Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_46.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/mountain/',
),
47 => array(
'template_id' => $this->template_prefix .'47',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_47.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/',
),
48 => array(
'template_id' => $this->template_prefix .'48',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_48.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/about-us/',
),
49 => array(
'template_id' => $this->template_prefix .'49',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_49.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/our-rooms/',
),
50 => array(
'template_id' => $this->template_prefix .'50',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Our Restaurant',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_50.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our restaurant'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/our-restaurant/',
),
51 => array(
'template_id' => $this->template_prefix .'51',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Contact Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_51.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/contact-us/',
),
55 => array(
'template_id' => $this->template_prefix .'55',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Single Accommodation',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_55.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('accommodation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/accommodation/signature-room/',
),
52 => array(
'template_id' => $this->template_prefix .'52',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Home',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_52.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('home'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/',
),
53 => array(
'template_id' => $this->template_prefix .'53',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - About Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_53.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('about'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/about-us/',
),
54 => array(
'template_id' => $this->template_prefix .'54',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Our Rooms',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_54.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our rooms'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/our-rooms/',
),
56 => array(
'template_id' => $this->template_prefix .'56',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Our Restaurant',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_56.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('our restaurant'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/our-restaurant/',
),
57 => array(
'template_id' => $this->template_prefix .'57',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Contact Us',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_57.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('contact'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/contact-us/',
),
58 => array(
'template_id' => $this->template_prefix .'58',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Single Accommodation',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_58.jpg',
'date' => date( get_option( 'date_format' ), 1531297160 ),
'type' => 'page',
'subtype' => 'page',
'author' => 'ThemeGoods',
'categories' => array(),
'keywords' => array('single accommodation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/accommodation/superior-room/',
),
//Adding navigation menu block templates
501 => array(
'template_id' => $this->template_prefix .'501',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Header',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_501.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme navigation menu',
'author' => 'ThemeGoods',
'keywords' => array('navigation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/blog/header/header/',
),
502 => array(
'template_id' => $this->template_prefix .'502',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Header',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_502.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme navigation menu',
'author' => 'ThemeGoods',
'keywords' => array('navigation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/header/header/',
),
503 => array(
'template_id' => $this->template_prefix .'503',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Header',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_503.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme navigation menu',
'author' => 'ThemeGoods',
'keywords' => array('navigation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/blog/header/header/',
),
504 => array(
'template_id' => $this->template_prefix .'504',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Header',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_504.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme navigation menu',
'author' => 'ThemeGoods',
'keywords' => array('navigation'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/lodge/header/header/',
),
//Adding footer block templates
701 => array(
'template_id' => $this->template_prefix .'701',
'source' => $this->get_id(),
'title' => 'Boutique Hoteller - Footer',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_701.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme footer',
'author' => 'ThemeGoods',
'keywords' => array('footer'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/blog/footer/footer/',
),
702 => array(
'template_id' => $this->template_prefix .'702',
'source' => $this->get_id(),
'title' => 'Bed & Breakfast Hoteller - Footer',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_702.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme footer',
'author' => 'ThemeGoods',
'keywords' => array('footer'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites/bedandbreakfast/footer/footer/',
),
703 => array(
'template_id' => $this->template_prefix .'703',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Footer',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_703.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme footer',
'author' => 'ThemeGoods',
'keywords' => array('footer'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/blog/footer/footer/',
),
704 => array(
'template_id' => $this->template_prefix .'704',
'source' => $this->get_id(),
'title' => 'Lodge Hoteller - Footer',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_704.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme footer',
'author' => 'ThemeGoods',
'keywords' => array('footer'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/blog/footer/footer/',
),
//Adding mega menu block templates
801 => array(
'template_id' => $this->template_prefix .'801',
'source' => $this->get_id(),
'title' => 'Minimal Hoteller - Mega Menu',
'thumbnail' => 'http://assets.themegoods.com/demo/hoteller/templates/screenshots/hoteller_801.jpg',
'date' => date( get_option( 'date_format' ), 1550821224 ),
'type' => 'block',
'subtype' => 'theme mega menu',
'author' => 'ThemeGoods',
'keywords' => array('megamenu'),
'is_pro' => false,
'has_page_settings' => false,
'url' => 'https://themes.themegoods.com/hoteller/sites2/blog/megamenu/mega-menu/',
),
);
if ( ! empty( $templates_data ) ) {
foreach ( $templates_data as $template_data )
{
$templates_data['popularityIndex'] = 260;
$templates_data['trendIndex'] = 125;
$templates[] = $this->get_item( $template_data );
}
}
if ( ! empty( $args ) ) {
$templates = wp_list_filter( $templates, $args );
}
return $templates;
}
public function get_item( $template_data ) {
return array(
'template_id' => $template_data['template_id'],
'source' => 'remote',
'type' => $template_data['type'],
'subtype' => $template_data['subtype'],
'title' => $template_data['title'],
'thumbnail' => $template_data['thumbnail'],
'date' => $template_data['date'],
'author' => $template_data['author'],
'tags' => $template_data['tags'],
'isPro' => ( 1 == $template_data['isPro'] ),
'popularityIndex' => (int) $template_data['popularityIndex'],
'trendIndex' => (int) $template_data['trendIndex'],
'hasPageSettings' => ( 1 == $template_data['hasPageSettings'] ),
'url' => $template_data['url'],
'favorite' => ( 1 == $template_data['favorite'] ),
);
}
public function save_item( $template_data ) {
return false;
}
public function update_item( $new_data ) {
return false;
}
public function delete_template( $template_id ) {
return false;
}
public function export_template( $template_id ) {
return false;
}
public function get_data( array $args, $context = 'display' ) {
$url = 'http://assets.themegoods.com/demo/hoteller/templates/json/'.$args['template_id'].'.json';
$response = wp_remote_get( $url, array( 'timeout' => 60 ) );
$body = wp_remote_retrieve_body( $response );
$body = json_decode( $body, true );
$data = ! empty( $body['content'] ) ? $body['content'] : false;
$result = array();
$result['content'] = $this->replace_elements_ids($data);
$result['content'] = $this->process_export_import_content( $result['content'], 'on_import' );
$result['page_settings'] = array();
return $result;
}
}