PluginProbe
Orderable – Restaurant & Food Ordering System / 0.2.0
Orderable – Restaurant & Food Ordering System v0.2.0
0.1.4 0.1.5 0.2.0 1.0.0 1.1.0 1.1.1 1.10.0 1.10.1 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.14.0 1.15.0 1.16.0 1.17.0 1.17.1 1.18.0 1.19.0 1.19.1 1.19.2 1.2.0 1.20.0 1.20.1 All 44 releases
orderable / inc / modules / drawer / templates / floating-cart.php

floating-cart.php in Orderable – Restaurant & Food Ordering System 0.2.0, at inc/modules/drawer/templates/floating-cart.php

23 lines 757 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Drawer: Floating Cart Button.
4 *
5 * @package Orderable/Templates
6 */
7
8 defined( 'ABSPATH' ) || exit;
9
10 $position = Orderable_Settings::get_setting( 'style_cart_position' );
11
12 if ( 'none' === $position ) {
13 return;
14 }
15
16 $cart_count = WC()->cart->get_cart_contents_count();
17 $style = Orderable_Drawer_Settings::get_cart_icon_css();
18 ?>
19
20 <div class="orderable-floating-cart orderable-floating-cart--<?php echo esc_attr( $position ); ?>" data-orderable-trigger="cart" style="<?php echo esc_attr( $style ); ?>">
21 <button class="orderable-floating-cart__button"><?php echo file_get_contents( ORDERABLE_PATH . 'assets/icons/basket.svg' ); ?></button>
22 <span class="orderable-floating-cart__count"><?php echo wp_kses_data( $cart_count ); ?></span>
23 </div>