Ce imamo izklopljene mobilne nastavitve, v predogledu ni opcije za tablet in mobile
This commit is contained in:
parent
53593ddab3
commit
f3a5fbfe33
@ -2078,8 +2078,14 @@ class BodyController extends Controller
|
||||
$device_value = 0;
|
||||
|
||||
echo '<a href="#" title="PC" onClick="$(\'#device_value\').val(\'0\'); document.change_diable.submit();"><span class="faicon monitor ' . ($device_value == 0 ? ' active' : '') . '"></span></a>';
|
||||
echo '<a href="#" title="' . self::$lang['srv_preview_tablet'] . '" onClick="$(\'#device_value\').val(\'2\'); document.change_diable.submit();"><span class="faicon tablet ' . ($device_value == 2 ? ' active' : '') . '"></span></a>';
|
||||
echo '<a href="#" title="' . self::$lang['srv_preview_mobile'] . '" onClick="$(\'#device_value\').val(\'1\'); document.change_diable.submit();"><span class="faicon mobile ' . ($device_value == 1 ? ' active' : '') . '"></span></a>';
|
||||
|
||||
// Ce imamo izklopljene mobilne prilagoditve ne pustimo preview-ja na mobile, ker itak ne prikaze scalano
|
||||
$mobile_friendly = SurveySetting::getInstance()->getSurveyMiscSetting('mobile_friendly');
|
||||
if($mobile_friendly != '0'){
|
||||
echo '<a href="#" title="' . self::$lang['srv_preview_tablet'] . '" onClick="$(\'#device_value\').val(\'2\'); document.change_diable.submit();"><span class="faicon tablet ' . ($device_value == 2 ? ' active' : '') . '"></span></a>';
|
||||
echo '<a href="#" title="' . self::$lang['srv_preview_mobile'] . '" onClick="$(\'#device_value\').val(\'1\'); document.change_diable.submit();"><span class="faicon mobile ' . ($device_value == 1 ? ' active' : '') . '"></span></a>';
|
||||
}
|
||||
|
||||
echo '</span>';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user