PHP Класс Pods_Templates_Auto_Template_Front_End, pods

Replaces Pods_PFAT_Frontend
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( )
auto_pods ( ) : array Get all Pods with auto template enable and its settings
current_post_type ( ) : string Fetches the current post type.
front ( string $content ) : string Outputs templates after the content as needed.
hook_content ( ) Add hooks for output
load_template ( string $template_name, string $content, Pods $pods, boolean | string $append = true ) : string Attach Pods Template to $content
set_frontier_style_script ( ) Sets Styles and Scripts from the Frontier template addons.
the_pods ( ) : array Get all post type and taxonomy Pods

Описание методов

__construct() публичный Метод

public __construct ( )

auto_pods() публичный Метод

Get all Pods with auto template enable and its settings
С версии: 2.4.5
public auto_pods ( ) : array
Результат array With info about auto template settings per post type

current_post_type() публичный Метод

Fetches the current post type.
С версии: 2.4.5
public current_post_type ( ) : string
Результат string current post type.

front() публичный Метод

Outputs templates after the content as needed.
С версии: 2.4.5
public front ( string $content ) : string
$content string Post content
Результат string Post content with the template appended if appropriate.

hook_content() публичный Метод

Add hooks for output
С версии: 2.6.6
public hook_content ( )

load_template() публичный Метод

Attach Pods Template to $content
С версии: 2.4.5
public load_template ( string $template_name, string $content, Pods $pods, boolean | string $append = true ) : string
$template_name string The name of a Pods Template to load.
$content string Post content
$pods Pods Current Pods object.
$append boolean | string Optional. Whether to append, prepend or replace content. Defaults to true, which appends, if false, content is replaced, if 'prepend' content is prepended.
Результат string $content with Pods Template appended if template exists

set_frontier_style_script() публичный Метод

Sets Styles and Scripts from the Frontier template addons.
С версии: 2.4.5

the_pods() публичный Метод

Get all post type and taxonomy Pods
С версии: 2.4.5
public the_pods ( ) : array
Результат array Of Pod names.