File "class-wpml-pp-testimonials.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements/classes/wpml/class-wpml-pp-testimonials.php
File
size: 1.17 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
class WPML_PP_Testimonials extends WPML_Elementor_Module_With_Items
{
public function get_items_field()
{
return 'testimonials';
}
public function get_fields()
{
return array('content', 'name', 'position', 'rating');
}
protected function get_title($field)
{
switch ($field) {
case 'content':
return esc_html__('Testimonials - Content', 'powerpack');
case 'name':
return esc_html__('Testimonials - User Name', 'powerpack');
case 'position':
return esc_html__('Testimonials - User Position', 'powerpack');
case 'rating':
return esc_html__('Testimonials - User Rating', 'powerpack');
default:
return '';
}
}
protected function get_editor_type($field)
{
switch ($field) {
case 'content':
return 'AREA';
case 'name':
return 'LINE';
case 'position':
return 'LINE';
case 'rating':
return 'LINE';
default:
return '';
}
}
}