';
preg_match("#{$stars}#sUu", $page, $stars_matches);
return [
'name' => $info_matches['title'],
'image' => $info_matches['image'],
'price' => ($info_matches['price'] == '0' ? 'Free' : $info_matches['price']),
'stars' => $stars_matches['stars']
];
}
public static function app_banner_html_code() {
$ios_link = get_option('app_banner_app_store_url');
if ($ios_link) {
$ios_data = unserialize( get_option('app_banner_ios_data') );
}
$google_link = get_option('app_banner_google_play_url');
if ($google_link) {
$google_data = unserialize( get_option('app_banner_google_data') );
}
$hide_pos = get_option('app_banner_hide_position');
if((int)$hide_pos != 0) {
$hide_pos = (string)$hide_pos;
} else {
$hide_pos = null;
}
$banner_pos = get_option('app_banner_position');
if ($ios_link || $google_link) {
?>