0) ? true : false; if (! is_array ( $button_positions )) { $button_positions = array (); } $onmedia_state = in_array ( 'onmedia', $button_positions ) ? true : false; $mobile_state = essb_option_value('mobile_positions'); $share_optimization_state = (essb_options_bool_value('opengraph_tags') || essb_options_bool_value('twitter_card')) ? true: false; $analytics_state = essb_options_bool_value('stats_active'); $aftershare_state = essb_options_bool_value('afterclose_active'); $widget_state = in_array ( 'widget', $button_positions ) ? true : false; function essb_feature_class($state) { return $state ? 'running' : 'notrunning'; } function essb_feature_text($state) { return $state ? 'RUNNING' : 'NOT RUNNING'; } function essb_feature_activation_button($state, $url_activate = '', $url_deactivate = '') { $button_icon = $state ? 'ti-close' : 'ti-control-play'; $button_text = $state ? 'Deactivate' : 'Activate'; $button_url = $state ? $url_deactivate : $url_activate; return '' . $button_text . ''; } function essb_feature_configure_button($url_configure = '') { return 'Configure'; } ?>