PHP Class Give_Template_Loader, Give

Since: 1.0.0
Afficher le fichier Open project: wordimpress/give Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Set up the template loader Class.
Since: 1.0
public __construct ( ) : void
Résultat void

give_output_sidebar_option() public méthode

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

give_set_single_summary_classes() public méthode

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

template_loader() public static méthode

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
Résultat string $template