1 | <?php |
||
24 | class Give_Template_Loader { |
||
25 | |||
26 | /** |
||
27 | * Class Constructor |
||
28 | * |
||
29 | * Set up the template loader Class. |
||
30 | * |
||
31 | * @since 1.0 |
||
32 | * @access public |
||
33 | */ |
||
34 | public function __construct() { |
||
64 | |||
65 | /** |
||
66 | * Give Set Single Summary Classes |
||
67 | * |
||
68 | * Determines if the single form should be full width or with a sidebar. |
||
69 | * |
||
70 | * @access public |
||
71 | * |
||
72 | * @param string $classes List of space separated class names. |
||
73 | * |
||
74 | * @return string $classes List of space separated class names. |
||
75 | */ |
||
76 | public function give_set_single_summary_classes( $classes ) { |
||
86 | |||
87 | /** |
||
88 | * Output sidebar option |
||
89 | * |
||
90 | * Determines whether the user has enabled or disabled the sidebar for Single Give forms. |
||
91 | * |
||
92 | * @since 1.3 |
||
93 | * @access public |
||
94 | * |
||
95 | * @return void |
||
96 | */ |
||
97 | public function give_output_sidebar_option() { |
||
108 | |||
109 | /** |
||
110 | * Load a template. |
||
111 | * |
||
112 | * Handles template usage so that we can use our own templates instead of the themes. |
||
113 | * |
||
114 | * Templates are in the 'templates' folder. Give looks for theme |
||
115 | * overrides in /theme/give/ by default. |
||
116 | * |
||
117 | * For beginners, it also looks for a give.php template first. If the user adds this |
||
118 | * to the theme (containing give() inside) this will be used for all give templates. |
||
119 | * |
||
120 | * @access public |
||
121 | * |
||
122 | * @param mixed $template |
||
123 | * |
||
124 | * @return string $template |
||
125 | */ |
||
126 | public static function template_loader( $template ) { |
||
145 | |||
146 | } |
||
147 |