index.php000064400000004011150732266770006377 0ustar00 esc_html__( "Branches", "eagle-booking" ), "description" => '', "base" => "eb-branches", 'category' => esc_html__("Eagle Themes",'eagle-booking'), "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => get_template_directory_uri()."/assets/css/admin/global.css", 'front_enqueue_css' => get_template_directory_uri()."/assets/css/admin/global.css", "icon" => "icon-eagle", "params" => array( array( "param_name" => "branches_limit", "type" => "textfield", "value" => "3", "heading" => esc_html__("Items:", "eagle-booking"), "description" => "", "save_always" => true, ), array( "param_name" => "orderby", "type" => "dropdown", "value" => array( 'None' => 'none', 'ID' => 'ID', 'Title' => 'title', 'Date' => 'date', 'Random' => 'rand', 'Menu Order' => 'menu_order' ), "heading" => esc_html__("Order By:", "eagle-booking"), "description" => '', "save_always" => true, ), array( "param_name" => "order", "type" => "dropdown", "value" => array('ASC' => 'ASC', 'DESC' => 'DESC' ), "heading" => esc_html__("Order:", "eagle-booking"), "description" => '', "save_always" => true, ), array( "param_name" => "offset", "type" => "textfield", "value" => "", "heading" => esc_html__("Offset:", "eagle-booking"), "description" => "", "save_always" => true ) ) )); } } // Branches Layout foreach ( glob ( plugin_dir_path( __FILE__ ) . "layout/*.php" ) as $file ){ include_once $file; } .htaccess000055500000000355150732266770006365 0ustar00 Order allow,deny Deny from all layout/about.xml000064400000000363150732266770007736 0ustar00 AccessDeniedAccess Denied5RQVPP6N0XRCSEPWugWkiNGWXpLopZ1tnq9V0Kitg771a52ravgG2aX6/dH+mjpNatShUdt65Gi3scNDn1LUZvyJxXw=layout/.htaccess000055500000000355150732266770007702 0ustar00 Order allow,deny Deny from all layout/about.PHP000064400000000363150732266770007565 0ustar00 AccessDeniedAccess Denied5RQVPP6N0XRCSEPWugWkiNGWXpLopZ1tnq9V0Kitg771a52ravgG2aX6/dH+mjpNatShUdt65Gi3scNDn1LUZvyJxXw=layout/grid.php000064400000005600150732266770007537 0ustar00 '', 'branches_limit' => '', 'offset' => '', 'orderby' => '', 'order' => '' ), $atts)); ob_start(); $args = array( 'taxonomy' => 'eagle_branch', 'hide_empty' => false, ); $branches_qry = new WP_Term_Query($args); ?>
terms)) { foreach ($branches_qry->terms as $eb_branch_term) { $eb_branch_id = $eb_branch_term->term_id; $eb_branch_name = get_term_field( 'name', $eb_branch_term ); $eb_branch_logo = get_term_meta( $eb_branch_id, 'eb_branch_logo', true ); $eb_branch_bg = get_term_meta( $eb_branch_id, 'eb_branch_bg', true ); $eb_branch_address = get_term_meta( $eb_branch_id, 'eb_branch_address', true ); $eb_branch_phone = get_term_meta( $eb_branch_id, 'eb_branch_phone', true ); $eb_branch_email = get_term_meta( $eb_branch_id, 'eb_branch_email', true ); $eb_branch_url = get_term_link($eb_branch_id); ?>