Current File : /home/kelaby89/www/wp/wp-content/plugins/happy-elementor-addons/wpml/post-list.php |
<?php
/**
* Post List integration
*/
namespace Happy_Addons\Elementor;
defined( 'ABSPATH' ) || die();
class WPML_Post_List_Selected_List_Post extends \WPML_Elementor_Module_With_Items {
/**
* @return string
*/
public function get_items_field() {
return 'selected_list_post';
}
/**
* @return array
*/
public function get_fields() {
return [
'title',
];
}
/**
* @param string $field
*
* @return string
*/
protected function get_title( $field ) {
switch ( $field ) {
case 'title':
return __( 'Post List: Title', 'happy-elementor-addons' );
default:
return '';
}
}
/**
* @param string $field
*
* @return string
*/
protected function get_editor_type( $field ) {
switch ( $field ) {
case 'title':
return 'LINE';
default:
return '';
}
}
}
class WPML_Post_List_Selected_List_Page extends \WPML_Elementor_Module_With_Items {
/**
* @return string
*/
public function get_items_field() {
return 'selected_list_page';
}
/**
* @return array
*/
public function get_fields() {
return [
'title',
];
}
/**
* @param string $field
*
* @return string
*/
protected function get_title( $field ) {
switch ( $field ) {
case 'title':
return __( 'Post List: Title', 'happy-elementor-addons' );
default:
return '';
}
}
/**
* @param string $field
*
* @return string
*/
protected function get_editor_type( $field ) {
switch ( $field ) {
case 'title':
return 'LINE';
default:
return '';
}
}
}
class WPML_Post_List_Selected_List_Product extends \WPML_Elementor_Module_With_Items {
/**
* @return string
*/
public function get_items_field() {
return 'selected_list_product';
}
/**
* @return array
*/
public function get_fields() {
return [
'title',
];
}
/**
* @param string $field
*
* @return string
*/
protected function get_title( $field ) {
switch ( $field ) {
case 'title':
return __( 'Post List: Title', 'happy-elementor-addons' );
default:
return '';
}
}
/**
* @param string $field
*
* @return string
*/
protected function get_editor_type( $field ) {
switch ( $field ) {
case 'title':
return 'LINE';
default:
return '';
}
}
}
class WPML_Post_List_Selected_List_E_Landing_Page extends \WPML_Elementor_Module_With_Items {
/**
* @return string
*/
public function get_items_field() {
return 'selected_list_e-landing-page';
}
/**
* @return array
*/
public function get_fields() {
return [
'title',
];
}
/**
* @param string $field
*
* @return string
*/
protected function get_title( $field ) {
switch ( $field ) {
case 'title':
return __( 'Post List: Title', 'happy-elementor-addons' );
default:
return '';
}
}
/**
* @param string $field
*
* @return string
*/
protected function get_editor_type( $field ) {
switch ( $field ) {
case 'title':
return 'LINE';
default:
return '';
}
}
}