PATH:
home
/
letacommog
/
pymreception1
/
wp-content
/
plugins
/
wc-frontend-manager
/
core
<?php if (!defined('ABSPATH')) exit; /** * @class WCFM Template Class * * @version 4.1.7 * @package WC * @author WC Lovers */ class WCFM_Template { public $template_url; public function __construct() { $this->template_url = 'wcfm/'; } /** * Get other templates (e.g. product attributes) passing attributes and including the file. * * @access public * @param mixed $template_name * @param array $args (default: array()) * @param string $template_path (default: '') * @param string $default_path (default: '') * @return void */ public function get_template($template_name, $args = array(), $template_path = '', $default_path = '') { if ($args && is_array($args)) extract($args); $located = $this->locate_template($template_name, $template_path, $default_path); include ($located); } /** * Locate a template and return the path for inclusion. * * This is the load order: * * yourtheme / $template_path / $template_name * yourtheme / $template_name * $default_path / $template_name * * @access public * @param mixed $template_name * @param string $template_path (default: '') * @param string $default_path (default: '') * @return string */ public function locate_template($template_name, $template_path = '', $default_path = '') { global $woocommerce, $WCFM; $default_path = apply_filters('wcfm_template_path', $default_path); if (!$template_path) { $template_path = $this->template_url; } if (!$default_path) { $default_path = $WCFM->plugin_path . 'views/'; } // Look within passed path within the theme - this is priority $template = locate_template(array(trailingslashit($template_path) . $template_name, $template_name)); // Add support of third perty plugin $template = apply_filters('wcfm_locate_template', $template, $template_name, $template_path, $default_path); // Get default template if (!$template) { $template = $default_path . $template_name; } return $template; } /** * Get template part (for templates like the shop-loop). * * @access public * @param mixed $slug * @param string $name (default: '') * @return void */ public function get_template_part($slug, $name = '') { global $WCFM; $template = ''; // Look in yourtheme/slug-name.php and yourtheme/wcfm/slug-name.php if ($name) $template = $this->locate_template(array("{$slug}-{$name}.php", "{$this->template_url}{$slug}-{$name}.php")); // Get default slug-name.php if (!$template && $name && file_exists($WCFM->plugin_path . "views/{$slug}-{$name}.php")) $template = $WCFM->plugin_path . "views/{$slug}-{$name}.php"; // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/wcfm/slug.php if (!$template) $template = $this->locate_template(array("{$slug}.php", "{$this->template_url}{$slug}.php")); echo $template; if ($template) load_template($template, false); } }
[+]
..
[-] class-wcfm-wcpvendors.php
[edit]
[-] class-wcfm-admin.php
[edit]
[-] class-wcfm-customfield-support.php
[edit]
[-] class-wcfm-withdrawal.php
[edit]
[-] class-wcfm-non-ajax.php
[edit]
[-] class-wcfm-template.php
[edit]
[-] class-wcfm-enquiry.php
[edit]
[-] class-wcfm-xasubscriptions.php
[edit]
[-] class-wcfm-wcvendors.php
[edit]
[-] class-wcfm-wcfmmarketplace.php
[edit]
[-] class-wcfm-customer.php
[edit]
[-] class-wcfm-product-popup.php
[edit]
[-] class-wcfm-policy.php
[edit]
[-] class-wcfm.php
[edit]
[-] class-wcfm-frontend.php
[edit]
[-] class-wcfm-wcmarketplace.php
[edit]
[-] class-wcfm-capability.php
[edit]
[-] class-wcfm-query.php
[edit]
[-] class-wcfm-wcbookings.php
[edit]
[-] class-wcfm-preferences.php
[edit]
[-] class-wcfm-shortcode.php
[edit]
[-] class-wcfm-ajax.php
[edit]
[-] class-wcfm-article.php
[edit]
[-] class-wcfm-notification.php
[edit]
[-] class-wcfm-library.php
[edit]
[-] class-wcfm-buddypress.php
[edit]
[-] class-wcfm-thirdparty-support.php
[edit]
[-] class-wcfm-wcsubscriptions.php
[edit]
[-] class-wcfm-catalog.php
[edit]
[-] class-wcfm-vendor-support.php
[edit]
[-] class-wcfm-dokan.php
[edit]