PluginProbe
MotoPress Hotel Booking for Divi / trunk
MotoPress Hotel Booking for Divi vtrunk
trunk 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 2.0.0
mphb-divi / divi-4 / includes / modules / accommodation / title / title.php

title.php in MotoPress Hotel Booking for Divi trunk, at divi-4/includes/modules/accommodation/title/title.php

38 lines 940 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class MPHB_Divi_Accommodation_Type_Title_Module extends MPHB_Divi_Abstract_Accommodation_Module {
4
5 public $slug = 'mphb-divi-accommodation-type-title';
6
7 public function init() {
8 $this->name = esc_html__( 'HB Acc. Type Title', 'mphb-divi' );
9 }
10
11 public function mphb_get_fields() {
12 return array(
13 'link_to_post' => array(
14 'label' => esc_html__( 'Link to post', 'mphb-divi' ),
15 'type' => 'yes_no_button',
16 'options' => array(
17 'on' => esc_html__( 'Yes', 'mphb-divi' ),
18 'off' => esc_html__( 'No', 'mphb-divi' ),
19 ),
20 'default' => 'off',
21 'computed_affects' => array(
22 '__html',
23 ),
24 ),
25 );
26 }
27
28 public function mphb_render_depends_on() {
29 return array( 'link_to_post' );
30 }
31
32 public static function get_html( $attrs = array() ) {
33 return MPHB_Divi_Renderers::accommodation_title( $attrs );
34 }
35 }
36
37 new MPHB_Divi_Accommodation_Type_Title_Module();
38