Files
old-experiments/backend/wordpress/wp-content/plugins/gravityflow-master/includes/steps/class-step-feed-madmimi.php
2018-06-28 10:02:07 +02:00

59 lines
1.1 KiB
PHP

<?php
/**
* Gravity Flow Step Feed Mad Mimi
*
* @package GravityFlow
* @subpackage Classes/Gravity_Flow_Step_Feed_MadMimi
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.3.2-dev
*/
if ( ! class_exists( 'GFForms' ) ) {
die();
}
/**
* Class Gravity_Flow_Step_Feed_MadMimi
*/
class Gravity_Flow_Step_Feed_MadMimi extends Gravity_Flow_Step_Feed_Add_On {
/**
* The step type.
*
* @var string
*/
public $_step_type = 'madmimi';
/**
* The name of the class used by the add-on.
*
* @var string
*/
protected $_class_name = 'GFMadMimi';
/**
* Returns the step label.
*
* @return string
*/
public function get_label() {
return 'Mad Mimi';
}
/**
* Returns the feed name.
*
* @param array $feed The Mad Mimi feed properties.
*
* @return string
*/
public function get_feed_label( $feed ) {
$label = $feed['meta']['feed_name'];
return $label;
}
}
Gravity_Flow_Steps::register( new Gravity_Flow_Step_Feed_MadMimi() );