PHP 클래스 Give_Template_Loader, Give

부터: 1.0.0
파일 보기 프로젝트 열기: wordimpress/give 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) : void Class Constructor
give_output_sidebar_option ( ) : void Output sidebar option
give_set_single_summary_classes ( string $classes ) : string Give Set Single Summary Classes
template_loader ( mixed $template ) : string Load a template.

메소드 상세

__construct() 공개 메소드

Set up the template loader Class.
부터: 1.0
public __construct ( ) : void
리턴 void

give_output_sidebar_option() 공개 메소드

Determines whether the user has enabled or disabled the sidebar for Single Give forms.
부터: 1.3
public give_output_sidebar_option ( ) : void
리턴 void

give_set_single_summary_classes() 공개 메소드

Determines if the single form should be full width or with a sidebar.
public give_set_single_summary_classes ( string $classes ) : string
$classes string List of space separated class names.
리턴 string $classes List of space separated class names.

template_loader() 공개 정적인 메소드

Handles template usage so that we can use our own templates instead of the themes. Templates are in the 'templates' folder. Give looks for theme overrides in /theme/give/ by default. For beginners, it also looks for a give.php template first. If the user adds this to the theme (containing give() inside) this will be used for all give templates.
public static template_loader ( mixed $template ) : string
$template mixed
리턴 string $template