PHP 클래스 Pods_Templates_Auto_Template_Front_End, pods

Replaces Pods_PFAT_Frontend
파일 보기 프로젝트 열기: pods-framework/pods

공개 메소드들

메소드 설명
__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.