"; $heading_format .= $heading; $heading_format .= ""; return $heading_format; } function print_acx_smw_option_block_start($title,$pre_fix="",$suf_fix="") { global $acx_smw_options_uid; if(!$acx_smw_options_uid || $acx_smw_options_uid == "") { $acx_smw_options_uid = 0; } $acx_smw_options_uid = $acx_smw_options_uid+1; echo "
"; } function acx_smw_post_isset_check($field) { $value = ""; if(ISSET($_POST[$field])) { $value = $_POST[$field]; } return $value; } function acx_smw_quick_form() { if(ISSET($_SERVER['HTTP_HOST'])) { $acx_installation_url = $_SERVER['HTTP_HOST']; } else { $acx_installation_url = ""; } ?> user_email; if($current_user_acx == "") { $current_user_acx = $acx_email; } $headers[] = "from: ". $acx_name . ' <' . $current_user_acx . '>'; $headers[] = "Content-Type: text/html; charset=UTF-8"; $message = "Name: ".$acx_name . "\r\n
";
}
if ($acx_widget_si_facebook == "") { $facebook_link = ""; } else
{
$facebook_link = "" . "
";
}
if ($acx_widget_si_gplus == "") { $gplus_link = ""; } else
{
$gplus_link = "" . "
";
}
if ($acx_widget_si_pinterest == "") { $pinterest_link = ""; } else
{
$pinterest_link = "" . "
";
}
if ($acx_widget_si_youtube == "") { $youtube_link = ""; } else
{
$youtube_link = "" . "
";
}
if ($acx_widget_si_linkedin == "") { $linkedin_link = ""; } else
{
$linkedin_link = "" . "
";
}
if ($acx_widget_si_feed == "") { $feed_link = ""; } else
{
$feed_link = "" . "
";
}
if ($acx_widget_si_instagram == "") { $instagram_link = ""; } else
{
$instagram_link = "" . "
";
}
$social_widget_icon_array_order = get_option('social_widget_icon_array_order');
if(is_serialized($social_widget_icon_array_order))
{
$social_widget_icon_array_order = unserialize($social_widget_icon_array_order);
}
$acx_w_html = '' ;
foreach ($social_widget_icon_array_order as $key => $value)
{
if ($value == 0) { $acx_w_html .= $twitter_link; }
else if ($value == 1) { $acx_w_html .= $facebook_link; }
else if ($value == 2) { $acx_w_html .= $gplus_link; }
else if ($value == 3) { $acx_w_html .= $pinterest_link; }
else if ($value == 4) { $acx_w_html .= $youtube_link; }
else if ($value == 5) { $acx_w_html .= $linkedin_link; }
else if ($value == 6) { $acx_w_html .= $feed_link; }
else if ($value == 7) { $acx_w_html .= $instagram_link; }
}
return $acx_w_html;
} //acurax_si_widget_simple()
// Check Credit Link
function check_widget_acx_credit($yes,$no)
{ $acx_widget_si_credit = get_option('acx_widget_si_credit');
if($acx_widget_si_credit != "no") { echo $yes; } else { echo $no; }
}
function acx_widget_theme_check_wp_head() {
$template_directory = get_template_directory();
// If header.php exists in the current theme, scan for "wp_head"
$file = $template_directory . '/header.php';
if (is_file($file)) {
$search_string = "wp_head";
$file_lines = @file($file);
foreach ($file_lines as $line) {
$searchCount = substr_count($line, $search_string);
if ($searchCount > 0) {
return true;
}
}
// wp_head() not found:
echo "".htmlspecialchars("")."". __('just before the','acurax-social-media-widget'). " ".htmlspecialchars("")." " . __("line of your theme's " ,"acurax-social-media-widget"). "header.php file." . "'. __('Congratulations!, You Have Successfully Installed Acurax Social Media Widget, The Plugin Is Not Configured - ','acurax-social-media-widget'). ''. __('Click Here to Configure','acurax-social-media-widget').'