diff --git a/admin/survey/classes/class.SurveyTheme.php b/admin/survey/classes/class.SurveyTheme.php index 2018756c8..2a934b249 100644 --- a/admin/survey/classes/class.SurveyTheme.php +++ b/admin/survey/classes/class.SurveyTheme.php @@ -956,7 +956,7 @@ class SurveyTheme { $sql = sisplet_query("SELECT name FROM srv_theme_profiles".$mobile." WHERE id = '".$_GET['profile']."'"); $row = mysqli_fetch_array($sql); - echo '

'.$lang['srv_themes_mod'].': '.$row['name'].'

'; + echo '

'.$lang['srv_themes_mod2'].': '.$row['name'].'

'; echo '

'.$lang['srv_add_theme_upload'].':

'; echo '
'; @@ -986,10 +986,14 @@ class SurveyTheme { $skin = $_GET['skin']; + echo '
'; echo '
'; + + $sql = sisplet_query("SELECT name FROM srv_theme_profiles".$mobile." WHERE id = '".$_GET['profile']."'"); + $row = mysqli_fetch_array($sql); - echo '
'.$lang['srv_themes_edit_warning'].'
'; - + echo '

'.$lang['srv_themes_mod2'].': '.$row['name'].'

'; + echo ''; $profile = $_GET['profile']; @@ -1004,54 +1008,16 @@ class SurveyTheme { echo ''; echo ''; echo ''; - - echo '
'; - - echo ''.$lang['srv_themes_edit'].''; - echo '

'; - - echo '

'; - - echo '

'. $lang['edit1337'] . ''; - - //echo ''.$lang['srv_theme_save_as_new'].''; - - echo ''.$lang['back'].'

'; - echo '
'; - echo '

'; - echo ''; - - echo '

'.$lang['srv_upload_pic'].'

'; + + echo '

'.$lang['srv_upload_pic'].'

'; echo '
'; - - echo '
'.$lang['srv_upload_pic'].':'; - /*echo '
'; - echo '

'; - echo ''; - echo '

'; */ - + echo '

'.$lang['srv_upload_pic'].':

'; echo '
'; - echo '

'; echo ''; echo '

'; - echo '

'.$lang['srv_upload_pic_disclaimer'].'


'; - + // prikazemo uploadane slike $dir = opendir($site_path . 'main/survey/uploads/'); $skinsArray = array(); @@ -1072,9 +1038,36 @@ class SurveyTheme { } } } - echo '
'; - echo '
'; + echo ''; + + echo '

'.$lang['srv_skin_warning_edit'].'

'; + + echo '

'; + + echo '

'; + + echo '

'; + echo ''; + echo ''; + echo '
'; + + + echo ''; echo '
'; @@ -1082,16 +1075,11 @@ class SurveyTheme { $row = mysqli_fetch_array($sql); $grupa = $row['id']; - //echo '
'; echo '
'; - - //echo '
'; - - //echo '
'; - - //echo ''; SurveyThemeEditor::new_theme_alert($skin_name, true); + echo ''; + } function ajax_add_theme () { diff --git a/admin/survey/classes/class.SurveyThemeEditor.php b/admin/survey/classes/class.SurveyThemeEditor.php index bcd41ca67..d1c543153 100644 --- a/admin/survey/classes/class.SurveyThemeEditor.php +++ b/admin/survey/classes/class.SurveyThemeEditor.php @@ -59,7 +59,7 @@ class SurveyThemeEditor { $sql = sisplet_query("SELECT name FROM srv_theme_profiles".$mobile." WHERE id = '".$_GET['profile']."'"); $row = mysqli_fetch_array($sql); - echo '

'.$lang['srv_themes_mod'].': '.$row['name'].'

'; + echo '

'.$lang['srv_themes_mod2'].': '.$row['name'].'

'; echo ''; diff --git a/lang/1.php b/lang/1.php index 567e60c25..8a3b6189c 100644 --- a/lang/1.php +++ b/lang/1.php @@ -5511,6 +5511,7 @@ $lang = array ( "srv_show_all_settings" => "Prikaži napredne nastavitve", "srv_skin_disclamer" => "Vaše naložene in urejene teme bodo vidne izključno vam in morebitnim urednikom ankete. Ostali uporabniki ne morejo uporabljati vaših tem.", "srv_skin_warning" => "Opozorilo! Ustvarjanje teme na lastno odgovornost. Ob poseganju v CSS lahko pride do napake in s tem potencialno do napačnega ali nedelujočega prikaza ankete na strani respondenta.", + "srv_skin_warning_edit" => "Opozorilo! Posegov v kodo ne priporočamo brez poznavanja jezika CSS. Urejanje teme je na lastno odgovornost.", "srv_SN_nagovor_title" => 'Odgovarjate za osebo ', "srv_system_themes" => 'Splošne teme', "srv_mobile_themes" => 'Mobilne teme', @@ -5953,7 +5954,7 @@ $lang = array ( "srv_continue_later_subject" => 'Shranjena anketa', "srv_continue_later_content" => 'Pozdravljeni,

Na spletni strani 1ka.si ste si shranili spodnjo anketo za kasnejše izpolnjevanje.

Z izpolnjevanjem lahko nadaljujete s klikom na povezavo', "srv_continue_later_content_rs-rs" => 'Pozdravljeni,

Na spletni strani vprasalniki.rs-rs.si ste si shranili spodnjo anketo za kasnejše izpolnjevanje.

Z izpolnjevanjem lahko nadaljujete s klikom na povezavo', - "srv_upload_pic" => 'Uporabite svoj logo ali sliko', + "srv_upload_pic" => 'Naložite svoj logotip', "srv_upload_pic2" => 'Naložite svojo sliko', "srv_upload_logo" => 'Naložite svoj logotip', "srv_upload_pic_disclaimer" => 'Za uporabo slike v temi, skopirajte njen URL (iz seznama spodaj) in ga vključite v CSS datoteko, ki jo lahko urejate zgoraj', @@ -6237,7 +6238,8 @@ $lang = array ( 'srv_aapor_show_approximate' => 'Prikaži približke', 'srv_show_continue_later' => 'Opcija za nadaljevanje kasneje', 'srv_themes_select' => 'Izbira teme', - 'srv_themes_mod' => 'Trenutno urejate temo', + 'srv_themes_mod' => 'Prilagoditev teme', + 'srv_themes_mod2' => 'Trenutno urejate temo', 'srv_themes_edit' => 'CSS urejanje teme', 'srv_themes_edit_warning' => 'Opozorilo! Urejanje teme na lastno odgovornost!', 'srv_themes_upload_css' => 'Naložite lasten CSS', diff --git a/lang/2.php b/lang/2.php index d86ac0aae..5634fc564 100644 --- a/lang/2.php +++ b/lang/2.php @@ -5471,6 +5471,7 @@ $lang = array ( "srv_show_all_settings" => "Show advanced settings", "srv_skin_disclamer" => "Your uploaded and edited themes will be visible only to you and any editors of the poll. Other users cannot use your themes.", "srv_skin_warning" => "Warning! Creating a theme is at your own risk. Interfering with the CSS may result in an error, and thus potentially an incorrect or non-functional display of the survey on the respondent's side.", + "srv_skin_warning_edit" => "Opozorilo! We do not recommend any code modifications without knowledge of the CSS language. Editing of the theme is at your own risk.", "srv_SN_nagovor_title" => 'Questions relates to a person ', "srv_system_themes" => 'General themes', "srv_mobile_themes" => 'Mobile themes', @@ -5848,7 +5849,7 @@ $lang = array ( "srv_continue_later_subject" => 'Saved survey', "srv_continue_later_content" => 'You saved a survey on 1ka.si.

You can continue with the survey by clicking on this link', "srv_continue_later_content_rs-rs" => 'You saved a survey on vprasalniki.rs-rs.si.

You can continue with the survey by clicking on this link', - "srv_upload_pic" => 'Upload your picture or logo', + "srv_upload_pic" => 'Upload your logo', "srv_upload_pic2" => 'Upload picture', "srv_upload_logo" => 'Upload logo', "srv_upload_pic_disclaimer" => 'Copy picture URL from the list (below) and use it when editing CSS (above)', @@ -6073,7 +6074,7 @@ $lang = array ( 'srv_te_default' => 'Default', 'srv_te_custom_checkbox_radio' => 'Radio button and checkbox', 'srv_te_custom_mobile_checkbox_radio' => 'Mobile phone custom icons', - 'srv_te_custom_icon_pc' => 'Ssize', + 'srv_te_custom_icon_pc' => 'Size', 'srv_te_custom_icon_pc_color' => 'Color', 'srv_te_custom_icon_mobile' => 'Size', 'srv_te_custom_icon_mobile_color' => 'Color', @@ -6131,7 +6132,8 @@ $lang = array ( 'srv_aapor_show_approximate' => 'Show approximate', 'srv_show_continue_later' => 'Display continue later option', 'srv_themes_select' => 'Theme selection', - 'srv_themes_mod' => 'Currently editing', + 'srv_themes_mod' => 'Theme modifiation', + 'srv_themes_mod2' => 'Currently editing', 'srv_themes_edit' => 'CSS editing', 'srv_themes_edit_warning' => 'Warning! Theme editing at your own risk!', 'srv_themes_upload_css' => 'Upload your own CSS', diff --git a/public/css/admin_new.css b/public/css/admin_new.css index 3fbfc4f31..0ee346aac 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -10441,6 +10441,8 @@ div#theme-edit-wrap div#theme-editor h2 { text-transform: uppercase; font-size: 16px; margin-bottom: 16px; + margin-block-start: 0; + margin-block-end: 0; } div#theme-edit-wrap div#theme-editor h2 span.name { text-transform: none; @@ -10717,6 +10719,19 @@ fieldset#theme-upload h2 span.name { text-transform: none; } +textarea#css_content { + width: 100%; + height: 400px; + font-family: "Courier"; +} + +div.button_holder.css_edit { + margin-top: 32px !important; + margin-bottom: 0 !important; + border: none !important; + padding: 0 !important; +} + .theme_header { font-weight: 600; font-size: 16px; diff --git a/resources/sass/admin_new/pages/my_surveys/oblika_teme.scss b/resources/sass/admin_new/pages/my_surveys/oblika_teme.scss index 8bb311c52..5ec5f96c4 100644 --- a/resources/sass/admin_new/pages/my_surveys/oblika_teme.scss +++ b/resources/sass/admin_new/pages/my_surveys/oblika_teme.scss @@ -194,6 +194,8 @@ div#theme-edit-wrap{ font-size: 16px; margin-bottom: 16px; + margin-block-start: 0; + margin-block-end: 0; span.name { text-transform: none; @@ -344,6 +346,25 @@ fieldset#theme-upload { } +// Oblika - CSS urejanje teme + +textarea#css_content{ + width: 100%; + height: 400px; + font-family: "Courier"; +} + +div.button_holder { + + &.css_edit { + margin-top: 32px !important; + margin-bottom: 0 !important; + border: none !important; + padding: 0 !important; + } +} + + //////////////////////////////////////////////////////////