File "class-wpml-pp-recipe.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements142/classes/wpml/class-wpml-pp-recipe.php
File
size: 918 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
class WPML_PP_Recipe extends WPML_Elementor_Module_With_Items
{
public function get_items_field()
{
return 'recipe_ingredients';
}
public function get_fields()
{
return array('recipe_ingredient', 'recipe_instruction');
}
protected function get_title($field)
{
switch ($field) {
case 'recipe_ingredient':
return esc_html__('Recipe - Ingredient Text', 'powerpack');
case 'recipe_instruction':
return esc_html__('Recipe - Instruction Text', 'powerpack');
default:
return '';
}
}
protected function get_editor_type($field)
{
switch ($field) {
case 'recipe_ingredient':
return 'LINE';
case 'recipe_instruction':
return 'LINE';
default:
return '';
}
}
}