if ($action == "getcountry") {
$html='';
$result= json_decode(GetCountryActivation(),true);
if ($result['status']==1) {
$data = $result['data'];
$i=0;
foreach($data as $country) {
$html .= '<div class="option"><input type="radio" id="'.$country['id'].'" class="radio-input" name="country" value = "'.$country['id'].'"';
if ($i==0) $html .= ' checked';
$html .= '><label for="'.$country['id'].'"><span>';
$html .= '<img class="img-country" src="'.$country['image'].'" width="30" height="30" alt="'.$country['name'].'" ><i class="title">'.$country['name'].'</i></span></label></div>';
$i++;
}}
echo json_encode($html);
exit();
}
if ( is_category() || is_archive() || is_home() ) {
if (get_field('articles_structure')) echo '<span class="entrys_structure">' . get_field('articles_structure') . '</span>' ;
if (get_field('articles_example')) echo '<span class="entrys_example">' . get_field('articles_example') . '</span>'; };
)