all-in-one-event-calendar/app/view/calendar/fallbacks.php
2017-11-09 17:36:04 +01:00

45 lines
863 B
PHP

<?php
/**
* The concrete class for the calendar page.
*
* @author Time.ly Network Inc.
* @since 2.1
*
* @package AI1EC
* @subpackage AI1EC.View
*/
class Ai1ec_Calendar_Avatar_Fallbacks extends Ai1ec_Base {
/**
* Default avatar fallbacks.
*
* @var array
*/
protected $_fallbacks = array(
'post_thumbnail',
'content_img',
'category_avatar',
);
/**
* Get registered fallbacks.
*
* @return array
*/
public function get_all() {
return apply_filters( 'ai1ec_avatar_fallbacks', $this->_fallbacks );
}
/**
* Register new avatar fallbacks.
*
* @param array $fallbacks Fallbacks.
*
* @return void Method does not return.
*/
public function set( array $fallbacks ) {
$this->_fallbacks = $fallbacks;
}
}