PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.2.1
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.2.1
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
sellkit / includes / elementor / modules / order-details / items / contact-details.php

contact-details.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.2.1, at includes/elementor/modules/order-details/items/contact-details.php

111 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Add Order Details Contact Details Items.
4 *
5 * @package JupiterX_Core\sellkit
6 * @since 1.1.0
7 */
8
9 namespace Sellkit\Elementor\Modules\Order_Details\Items;
10
11 defined( 'ABSPATH' ) || die();
12
13 /**
14 * Contact Details Item.
15 *
16 * Initializing the contact details item by extending item base abstract class.
17 *
18 * @since 1.1.0
19 */
20 class Contact_Details extends Item_Base {
21
22 /**
23 * Get Item class postfix.
24 *
25 * Retrieve the Item class postfix.
26 *
27 * @since 1.1.0
28 * @access public
29 *
30 * @return string Item class postfix.
31 */
32 public function get_class_name() {
33 return 'contact';
34 }
35 /**
36 * Get Item type.
37 *
38 * Retrieve the Item type.
39 *
40 * @since 1.1.0
41 * @access public
42 *
43 * @return string Item type.
44 */
45 public function get_type() {
46 return 'contact_details';
47 }
48
49 /**
50 * Add render attribute.
51 *
52 * Add render attributes for each item based on the settings.
53 *
54 * @since 1.1.0
55 * @access public
56 */
57 public function add_field_render_attribute() {
58 $attributes = [
59 'class' => 'order-details-item-content',
60 'id' => 'order-details-' . $this->get_id(),
61 ];
62
63 $this->widget->add_render_attribute( 'order-details-item-' . $this->get_id(), $attributes );
64 }
65
66 /**
67 * Render content.
68 *
69 * Render the item content.
70 *
71 * @since 1.1.0
72 * @access public
73 * @param object $order_data Order data.
74 */
75 public function render_content( $order_data ) {
76 ?>
77 <strong
78 <?php
79 echo $this->widget->get_render_attribute_string( 'order-details-item-' . $this->get_id() );
80 ?>
81 >
82 <?php
83 echo $order_data['billing']['phone'];
84 ?>
85 </strong>
86 <?php
87 }
88
89 /**
90 * Render dummy content.
91 *
92 * Render the Item dummy content.
93 *
94 * @since 1.1.0
95 * @access public
96 */
97 public function render_dummy_content() {
98 ?>
99 <strong
100 <?php
101 echo $this->widget->get_render_attribute_string( 'order-details-item-' . $this->get_id() );
102 ?>
103 >
104 <?php
105 echo __( '09.... ( contact details )', 'sellkit' )
106 ?>
107 </strong>
108 <?php
109 }
110 }
111