PHP Class Give_Template_Loader, Give

Since: 1.0.0
ファイルを表示 Open project: wordimpress/give Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

Set up the template loader Class.
Since: 1.0
public __construct ( ) : void
return void

give_output_sidebar_option() public method

Determines whether the user has enabled or disabled the sidebar for Single Give forms.
Since: 1.3
public give_output_sidebar_option ( ) : void
return void

give_set_single_summary_classes() public method

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.
return string $classes List of space separated class names.

template_loader() public static method

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
return string $template