0) ? true : false; if (! is_array ( $button_positions )) { $button_positions = array (); } $networks = essb_option_value('networks'); if (!is_array($networks)) { $networks = array(); } $networks_state = (count($networks) > 0) ? true : false; $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; $optimization_state = true; $optin_state = essb_option_bool_value('subscribe_widget'); $follower_state = essb_option_bool_value('fanscounter_active'); $profile_state = (essb_options_bool_value('profiles_widget') || essb_options_bool_value('profiles_display')) ? true : false; $native_state = essb_option_bool_value('native_active'); $shorturl_state = essb_option_bool_value('shorturl_activate'); $recovery_state = essb_option_bool_value('counter_recover_active'); $customizer_state = essb_option_bool_value('customizer_is_active'); $activation_state = ESSBActivationManager::isActivated(); 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 = '', $custom_text = '') { if ($custom_text == '') { $custom_text = 'Configure'; } return ''.$custom_text.''; } ?>