/** * Get Positioning Controls * * Controls: * - Border ( Top, Bottom, Left, Right ) * - Margin ( Top, Bottom, Left, Right ) * - Padding ( Top, Bottom, Left, Right ) * * @since 1.3.4 * @version 1.3.7 * */ public function get_positioning_controls() { // Get path to styles directory. $path = Easy_Google_Fonts::get_views_path() . '/customizer/control/positioning'; $folders = array('margin', 'padding', 'border', 'border-radius'); $file_names = array('start', 'top', 'bottom', 'left', 'right', 'end'); // Include margin and padding controls. foreach ($folders as $folder) { foreach ($file_names as $file_name) { include "{$path}/{$folder}/{$file_name}.php"; } } // Include display control. include "{$path}/display.php"; }
/** * Get Border Controls * * Gets the controls for border top, bottom, * left and right. * * @since 1.2 * @version 1.3.2 * */ public function get_border_controls() { // Get control view include Easy_Google_Fonts::get_views_path() . '/customizer/controls/positioning/border.php'; }