';
}
return $output;
}
/**
* @param $icon
*
* @return false|string
* get svg
*/
public function get_svg( $icon ) {
if ( function_exists( 'foxiz_get_svg' ) ) {
return foxiz_get_svg( $icon, '', 'reaction' );
}
return false;
}
/**
* @return false|mixed|void
* get settings
*/
public function get_settings() {
if ( ! function_exists( 'foxiz_get_option' ) ) {
return false;
}
$settings = array();
$reactions = foxiz_get_option( 'reaction_items' );
if ( isset( $reactions['enabled']['placebo'] ) ) {
unset( $reactions['enabled']['placebo'] );
}
if ( empty( $reactions['enabled'] ) || ! is_array( $reactions['enabled'] ) ) {
return false;
}
foreach ( array_keys( $reactions['enabled'] ) as $reaction ) {
if ( isset( $this->defaults[ $reaction ] ) ) {
array_push( $settings, $this->defaults[ $reaction ] );
}
}
return apply_filters( 'ruby_reactions', $settings );
}
}
}PK ! ’£.|– – .htaccessnu „[µü¤