Add upstream plugins

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-10-25 22:42:20 +02:00
parent 5d3c2ec184
commit 290736650a
1186 changed files with 302577 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?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;
}
}