[Redizajn 1KA] - Urejanje --> Oblika --> Naložite lasten CSS - v1
This commit is contained in:
parent
89a02b0719
commit
34001ed658
3
.gitignore
vendored
3
.gitignore
vendored
@ -48,4 +48,5 @@ docker
|
||||
/composer.bat
|
||||
/composer.phar
|
||||
/composer.lock
|
||||
/.favorites.json
|
||||
/.favorites.json
|
||||
main/survey/skins/1045_test.css
|
||||
|
@ -950,18 +950,28 @@ class SurveyTheme {
|
||||
|
||||
$default = 'Default';
|
||||
$skin = ($row['skin'] == '') ? $default : $row['skin'];
|
||||
|
||||
echo '<fieldset id="theme-upload"><legend>'.$lang['srv_themes_upload_css'].'</legend>';
|
||||
|
||||
$sql = sisplet_query("SELECT name FROM srv_theme_profiles".$mobile." WHERE id = '".$_GET['profile']."'");
|
||||
$row = mysqli_fetch_array($sql);
|
||||
|
||||
echo '<br /><span class="bold">'.$lang['srv_add_theme_upload'].'</span>';
|
||||
echo '<h2>'.$lang['srv_themes_mod'].': <span class="name">'.$row['name'].'</span></h2>';
|
||||
|
||||
echo '<p class="bottom16">'.$lang['srv_add_theme_upload'].':</p>';
|
||||
echo '<form name="upload" enctype="multipart/form-data" action="upload.php?anketa=' . $this->sid . '&profile='.$_GET['profile'].'" method="post">';
|
||||
echo '<p><label for="skin">' . $lang['srv_uploadtheme'] . ':</label> ';
|
||||
echo '<input type="file" name="fajl" onchange="submit();">';
|
||||
echo ' (' . $lang['srv_skintmpl1'] . ' <a href="' . $site_url . 'main/survey/skins/'.$skin.'.css" target="_blank">' . $lang['srv_skintmpl'] . '</a>)';
|
||||
echo '</p></form>';
|
||||
echo '</form>';
|
||||
echo '<p class="top16">'.$lang['srv_skintmpl1'] . ' <a href="' . $site_url . 'main/survey/skins/'.$skin.'.css" target="_blank">' . $lang['srv_skintmpl'] . '</a></p>';
|
||||
|
||||
|
||||
echo '<p style="font-size:90%; color: gray">'.$lang['srv_skin_disclamer'].'</p>';
|
||||
echo '<p class="top16">'.$lang['srv_skin_disclamer'].'</p>';
|
||||
|
||||
echo '<p class="top16">'.$lang['srv_skin_warning'].'</p>';
|
||||
|
||||
echo '<a href="#" onclick="$(\'#vrednost_edit\').hide().html(\'\'); return false;" style="position:absolute; right:10px; bottom:10px">'.$lang['srv_zapri'].'</a>';
|
||||
|
||||
echo '</fieldset>';
|
||||
|
||||
}
|
||||
|
||||
|
@ -163,6 +163,8 @@ class CrossRoad {
|
||||
$second_action = NAVI_UREJANJE_TEMA;
|
||||
|
||||
$layout_width = 'wide';
|
||||
if($_GET['t'] == 'upload')
|
||||
$layout_width = 'narrow';
|
||||
|
||||
$status = 0;
|
||||
|
||||
|
@ -5509,7 +5509,8 @@ $lang = array (
|
||||
"srv_current_theme_general" => 'Splošna tema',
|
||||
"srv_current_theme_mobile" => 'Mobilna tema',
|
||||
"srv_show_all_settings" => "Prikaži napredne nastavitve",
|
||||
"srv_skin_disclamer" => "Vaše naložene in urejene teme bodo vidne izključno vam. Ostali uporabniki ne morejo uporabljati vaših tem.",
|
||||
"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" => "<span class=\"red\">Opozorilo!</span> 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_SN_nagovor_title" => 'Odgovarjate za osebo ',
|
||||
"srv_system_themes" => 'Splošne teme',
|
||||
"srv_mobile_themes" => 'Mobilne teme',
|
||||
|
@ -5469,7 +5469,8 @@ $lang = array (
|
||||
"srv_current_theme_general" => 'General theme',
|
||||
"srv_current_theme_mobile" => 'Mobile theme',
|
||||
"srv_show_all_settings" => "Show advanced settings",
|
||||
"srv_skin_disclamer" => "Only you will be able to see your themes. Other users cannot use your themes.",
|
||||
"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" => "<span class=\"red\">Warning!</span> 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_SN_nagovor_title" => 'Questions relates to a person ',
|
||||
"srv_system_themes" => 'General themes',
|
||||
"srv_mobile_themes" => 'Mobile themes',
|
||||
|
@ -10707,6 +10707,16 @@ div#theme-edit-wrap div#theme-preview iframe #preview {
|
||||
display: none;
|
||||
}
|
||||
|
||||
fieldset#theme-upload h2 {
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
fieldset#theme-upload h2 span.name {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.theme_header {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
|
@ -325,6 +325,25 @@ div#theme-edit-wrap{
|
||||
}
|
||||
|
||||
|
||||
// Oblika - naložite lasten CSS
|
||||
|
||||
fieldset#theme-upload {
|
||||
|
||||
h2 {
|
||||
font-weight: $semi-bold;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
|
||||
margin-bottom: 16px;
|
||||
|
||||
span.name {
|
||||
text-transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user