args = $args; $this->Method = array( 'GETs'=>$_GET, 'POSTs'=>$_POST, ); $this->TempPath = get_template_directory(); $this->TempURL = get_template_directory(); $this->StylesURL = get_template_directory_uri().'/components/styles/'; $this->StylesPath = get_template_directory().'/components/styles/'; $this->folderpath = $this->TempPath.'/components/packs/*/'; $this->packsPath = $this->TempPath.'/components/packs/'; $this->Packages = array_filter(glob($this->folderpath), 'is_dir'); if( !class_exists('ThemeStatic') ) { require($this->TempPath.'/syntax.php'); } } public function AddTaxonomy($id, $ptypes=array(), $name, $rewrite=false, $hierarchical=true) { $labels = array( 'name' => __($name, 'PtypeLocalize' , 'post type general name'), 'all_items' => __('All items', 'PtypeLocalize' , 'all items'), 'add_new_item' => __('Add new item', 'PtypeLocalize' , 'adding a new item'), 'new_item_name' => __('New item name', 'PtypeLocalize' , 'adding a new item'), ); register_taxonomy( $id, $ptypes, array( 'hierarchical' => $hierarchical, 'rewrite' => $rewrite, 'labels' => $labels, ) ); } public function AddPType($name, $singlename, $plus='', $id, $public=true, $rewrite=false, $supports=array(), $position='') { $labels = array( 'name' => __( $name, 'post type general name', 'YourColor' ), 'singular_name' => __( $name, 'post type singular name', 'YourColor' ), 'menu_name' => __( $name, 'admin menu', 'YourColor' ), 'name_admin_bar' => __( $name, 'add new on admin bar', 'YourColor' ), 'add_new' => __( 'Add New', 'search', 'YourColor' ), 'add_new_item' => __( 'Add'.$singlename.'new'.$plus, 'YourColor' ), 'new_item' => __( $singlename.'new'.$plus, 'YourColor' ), 'edit_item' => __( 'edit'.$singlename, 'YourColor' ), 'all_items' => __( 'All '.$name, 'YourColor' ), 'search_items' => __( 'Search in'.$name, 'YourColor' ), 'parent_item_colon' => __( $singlename.' main', 'YourColor' ), 'not_found' => __( 'Not Found', 'YourColor' ), 'not_found_in_trash' => __( 'Not Found in Trash', 'YourColor' ) ); $args = array( 'labels' => $labels, 'public' => $public, 'rewrite' => $rewrite, 'supports' => $supports, ); if( is_numeric($position) ) { $args['menu_position'] = $position; } register_post_type( $id, $args ); } public function Require($path, $vars=array()) { extract($vars); if( file_exists($path) ) { require($path); }else { echo '

This Path is not found:'.$path.'

'; } } public function Initialize() { do_action('Initialize'); } } $ThemeTree = new ThemeTree(); add_action('init', array($ThemeTree, 'Initialize')); $ThemeStatic = new ThemeStatic(); $packs = $ThemeTree->Packages; foreach ($packs as $pack) { if( substr(basename($pack), 0, 1) != '@' and substr(basename($pack), 0, 1) != '#' ) { $path = $pack.'setup.php'; $ThemeTree->Require($path, array('CurrentDir'=>$pack)); } } wp_reset_query(); add_action('init','end_points'); function end_points() { add_rewrite_endpoint('services', EP_ALL); } add_filter( 'the_content', 'my_lazyload_content_images' ); add_filter( 'widget_text', 'my_lazyload_content_images' ); add_filter( 'wp_get_attachment_image_attributes', 'my_lazyload_attachments', 10, 2 ); // Replace the image attributes in Post/Page Content function my_lazyload_content_images( $content ) { $content = preg_replace( '/(\nWashing machine repair in Bur Dubai Archives - EmirateFix<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Washing machine repair in Bur Dubai Archives - EmirateFix\" \/>\n<meta property=\"og:url\" content=\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/\" \/>\n<meta property=\"og:site_name\" content=\"EmirateFix\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/\",\"url\":\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/\",\"name\":\"Washing machine repair in Bur Dubai Archives - EmirateFix\",\"isPartOf\":{\"@id\":\"https:\/\/en.emiratefix.com\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/#breadcrumb\"},\"inLanguage\":\"en-US\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/en.emiratefix.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Washing machine repair in Bur Dubai\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/en.emiratefix.com\/#website\",\"url\":\"https:\/\/en.emiratefix.com\/\",\"name\":\"EmirateFix\",\"description\":\"EmirateFix is one of the largest reliable companies in the maintenance and repair of all electrical appliances\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/en.emiratefix.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Washing machine repair in Bur Dubai Archives - EmirateFix","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/","og_locale":"en_US","og_type":"article","og_title":"Washing machine repair in Bur Dubai Archives - EmirateFix","og_url":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/","og_site_name":"EmirateFix","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/","url":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/","name":"Washing machine repair in Bur Dubai Archives - EmirateFix","isPartOf":{"@id":"https:\/\/en.emiratefix.com\/#website"},"breadcrumb":{"@id":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/#breadcrumb"},"inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https:\/\/en.emiratefix.com\/tag\/washing-machine-repair-in-bur-dubai\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/en.emiratefix.com\/"},{"@type":"ListItem","position":2,"name":"Washing machine repair in Bur Dubai"}]},{"@type":"WebSite","@id":"https:\/\/en.emiratefix.com\/#website","url":"https:\/\/en.emiratefix.com\/","name":"EmirateFix","description":"EmirateFix is one of the largest reliable companies in the maintenance and repair of all electrical appliances","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/en.emiratefix.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/en.emiratefix.com\/wp-json\/wp\/v2\/tags\/456"}],"collection":[{"href":"https:\/\/en.emiratefix.com\/wp-json\/wp\/v2\/tags"}],"about":[{"href":"https:\/\/en.emiratefix.com\/wp-json\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"https:\/\/en.emiratefix.com\/wp-json\/wp\/v2\/posts?tags=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}