.wp-headers-and-footers-rate-stars { display: inline-block; color: #ffb900; position: relative; top: 3px; }.wp-headers-and-footers-rate-stars svg{ fill:#ffb900; } .wp-headers-and-footers-rate-stars svg:hover{ fill:#ffb900 } .wp-headers-and-footers-rate-stars svg:hover ~ svg{ fill:none; } ';
$plugin_rate = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?rate=5#rate-response';
$plugin_filter = 'https://wordpress.org/support/plugin/wp-headers-and-footers/reviews/?filter=5';
$svg_xmlns = 'https://www.w3.org/2000/svg';
$svg_icon = '';
for ($i = 0; $i < 5; $i++) {
$svg_icon .= "";
}
// Set icon for thumbs up.
$meta_fields[] = '' . __('Vote!', 'wp-headers-and-footers') . '';
// Set icon for 5-star reviews. v1.1.22.
$meta_fields[] = "" . $svg_icon . '';
return $meta_fields;
}
/**
* Add a link to the settings page to the plugins list
*
* @param URL $links the action link.
* @param string $file the file name.
* @since 1.2.1
* @version 3.1.3
*/
public function action_links($links, $file)
{
static $this_plugin;
if (empty($this_plugin)) {
$this_plugin = 'wp-headers-and-footers/wp-headers-and-footers.php';
}
if ($file === $this_plugin) {
/* Translators: Settings tab */
$settings_link = sprintf(esc_html__('%1$s Settings %2$s', 'wp-headers-and-footers'), '', '');
$sdk_data = json_decode(get_option('wpb_sdk_wp-headers-and-footers'), true);
// Initialize the options or set defaults if not found
$communication = isset($sdk_data['communication']) ? $sdk_data['communication'] : '0';
$diagnostic_info = isset($sdk_data['diagnostic_info']) ? $sdk_data['diagnostic_info'] : '0';
$extensions = isset($sdk_data['extensions']) ? $sdk_data['extensions'] : '0';
// Check if any option is set to '1' and build the settings link
if ('1' == $communication || '1' == $diagnostic_info || '1' == $extensions) {
/* Translators: Opt Out */
$settings_link .= sprintf(esc_html__('| %1$s Opt Out %2$s ', 'wp-headers-and-footers'), '', '');
} else {
if('yes' == get_option( '_wpheaderandfooter_optin' )) {
update_option('_wpheaderandfooter_optin', 'no');
}
/* Translators: Opt In */
$settings_link .= sprintf(esc_html__('| %1$s Opt In %2$s ', 'wp-headers-and-footers'),'','');
}
array_unshift($links, $settings_link);
}
return $links;
}
}
endif;
new WPHeaderAndFooter_Plugin_Meta();