[Redizajn 1KA] - Moje ankete --> Uvoz besedila - v4

This commit is contained in:
tejagerjovic 2022-01-06 17:02:45 +01:00
parent f15e50390f
commit db9eda8981
5 changed files with 23 additions and 13 deletions

View File

@ -7,7 +7,7 @@ class Help {
* ce smo v editmodu se bo prikazal textbox za urejanje helpa * ce smo v editmodu se bo prikazal textbox za urejanje helpa
* ce smo v navadnem modu se bo prikazal help box * ce smo v navadnem modu se bo prikazal help box
*/ */
public static function display ($what) { public static function display ($what, $title) {
global $admin_type, $lang; global $admin_type, $lang;
$sql = sisplet_query("SELECT help FROM srv_help WHERE what='$what' AND lang='$lang[id]'"); $sql = sisplet_query("SELECT help FROM srv_help WHERE what='$what' AND lang='$lang[id]'");
@ -15,10 +15,10 @@ class Help {
$help = $row['help']; $help = $row['help'];
if ($admin_type == 0 && isset($_COOKIE['edithelp'])) { if ($admin_type == 0 && isset($_COOKIE['edithelp'])) {
return ' <a href="/" id="help_'.$what.'" lang="'.$lang['id'].'" class="edithelp" onclick="return false;" title_txt="">(?)</a>'; return ' <a href="/" id="help_'.$what.'" lang="'.$lang['id'].'" class="edithelp" onclick="return false;" title_txt="">'.(empty($title) ? '(?)' : '<span class="faicon help2 title20"></span>').'</a>';
} }
elseif ($help != '') { elseif ($help != '') {
return ' <a href="/" id="help_'.$what.'" lang="'.$lang['id'].'" class="help" onclick="return false;" title_txt="">(?)</a>'; return ' <a href="/" id="help_'.$what.'" lang="'.$lang['id'].'" class="help" onclick="return false;" title_txt="">'.(empty($title) ? '(?)' : '<span class="faicon help2 title20"></span>').'</a>';
} }
} }

View File

@ -653,7 +653,7 @@ class NewSurvey{
echo '<div class="fieldset anketa_from_text">'; echo '<div class="fieldset anketa_from_text">';
// Naslov // Naslov
echo '<div class="title">' . $lang['srv_newSurvey_survey_from_text_title'] . ' '.Help::display('srv_create_survey_from_text').'</div>'; echo '<div class="title">' . $lang['srv_newSurvey_survey_from_text_title'] . ' '.Help::display('srv_create_survey_from_text', "title").'</div>';
echo '<p>' . $lang['srv_newSurvey_survey_from_text_text1'] . '</p>'; echo '<p>' . $lang['srv_newSurvey_survey_from_text_text1'] . '</p>';
echo '<p>' . $lang['srv_newSurvey_survey_from_text_text2'] . '</p>'; echo '<p>' . $lang['srv_newSurvey_survey_from_text_text2'] . '</p>';
echo '<p class="bottom32">' . $lang['srv_newSurvey_survey_from_text_text3'] . '</p>'; echo '<p class="bottom32">' . $lang['srv_newSurvey_survey_from_text_text3'] . '</p>';
@ -840,7 +840,7 @@ class NewSurvey{
// Dodamo se textbox ce je samo vprasanje // Dodamo se textbox ce je samo vprasanje
$text = preg_replace( $text = preg_replace(
'/(<span class="variable_title">[^<>]+<\/span>)<br \/><br \/>/', '/(<span class="variable_title">[^<>]+<\/span>)<br \/><br \/>/',
'$1<br /><input type="text" class="large" /><br /><br />', '$1<br /><input type="text" class="large" /><br />',
$text $text
); );
@ -853,13 +853,13 @@ class NewSurvey{
// Dodamo se textbox na zadnjo vrstico ce je potrebno // Dodamo se textbox na zadnjo vrstico ce je potrebno
$text = preg_replace( $text = preg_replace(
'/(<span class="variable_title">[^<>]+<\/span>)\Z/', '/(<span class="variable_title">[^<>]+<\/span>)\Z/',
'$1<br /><input type="text" class="large" />', '$1<br /><input type="text" class="large" /><br />',
$text $text
); );
// Dodamo se textbox na prvo vrstico ce je potrebno // Dodamo se textbox na prvo vrstico, ce je potrebno
$text = preg_replace( $text = preg_replace(
'/(<span class="variable_title">[^<>]+<\/span>)<br \/><br \/>/', '/(<span class="variable_title">[^<>]+<\/span>)<br \/>/',
'$1<br /><input type="text" class="large" /><br /><br />', '$1<br /><input type="text" class="large" /><br />',
$text, 1 $text, 1
); );
} }

View File

@ -5157,6 +5157,11 @@ span.faicon.medium::before,
a.faicon.medium::before { a.faicon.medium::before {
font-size: 24px !important; font-size: 24px !important;
} }
span.faicon.title20::before,
a.faicon.title20::before {
font-size: 20px !important;
margin-left: 16px;
}
span.faicon.normal::before, span.faicon.normal::before,
a.faicon.normal::before { a.faicon.normal::before {
font-size: 16px !important; font-size: 16px !important;
@ -14329,7 +14334,7 @@ and open the template in the editor.
} }
#new_anketa_div .layout_right_item .layout_right_centering .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field textarea { #new_anketa_div .layout_right_item .layout_right_centering .anketa_from_text .from_text_sidebyside_holder #input_field_holder #input_field textarea {
width: 519px; width: 519px;
height: 509px; height: 370px;
box-sizing: border-box; box-sizing: border-box;
border-color: #E5E5E5; border-color: #E5E5E5;
margin-top: 0; margin-top: 0;
@ -14347,7 +14352,7 @@ and open the template in the editor.
} }
#new_anketa_div .layout_right_item .layout_right_centering .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field { #new_anketa_div .layout_right_item .layout_right_centering .anketa_from_text .from_text_sidebyside_holder #preview_field_holder #preview_field {
width: 519px; width: 519px;
height: 509px; height: 370px;
box-sizing: border-box; box-sizing: border-box;
overflow: auto; overflow: auto;
padding: 16px; padding: 16px;

View File

@ -26,6 +26,11 @@ a.faicon{
font-size: 24px !important; font-size: 24px !important;
} }
&.title20::before {
font-size: 20px !important;
margin-left: 16px;
}
&.normal::before { &.normal::before {
font-size: 16px !important; font-size: 16px !important;
} }

View File

@ -465,7 +465,7 @@ $skin_selector: $red;
textarea{ textarea{
width: 519px; width: 519px;
height: 509px; height: 370px;
box-sizing: border-box; box-sizing: border-box;
border-color: $gray; border-color: $gray;
@ -488,7 +488,7 @@ $skin_selector: $red;
#preview_field{ #preview_field{
width: 519px; width: 519px;
height: 509px; height: 370px;
box-sizing: border-box; box-sizing: border-box;
overflow: auto; overflow: auto;