My personal blog. https://blog.airikr.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

82 lines
2.4 KiB

<?php
require_once 'site-header.php';
echo '<section id="settings">';
echo '<h2>'.($viewing_in_english == false ? 'Inställningar' : 'Settings').'</h2>';
echo '<div class="content">';
if($viewing_in_english == false) {
echo '<p>Vänligen observera att din e-postadress inte kommer att bli krypterad jämfört med när du kommenterar ett blogginlägg.</p>';
} else {
echo '<p>Please be aware that your email address will not be saved encrypted compared to when you\'ll comment a blog post.</p>';
}
echo '</div>';
echo '<div id="message"></div>';
echo '<form action="javascript:void(0)" method="POST">';
echo '<div>';
echo '<div class="item">';
echo '<div class="label">';
echo ($viewing_in_english == false ? 'Ditt namn' : 'Your name');
echo '</div>';
echo '<div class="field">';
echo '<input type="text" name="field-name" placeholder="'.($viewing_in_english == false ? 'Valfritt' : 'Optional').'" value="'.$user['info_name'].'" tabindex="1">';
echo '</div>';
echo '</div>';
echo '<div class="item">';
echo '<div class="label">';
echo ($viewing_in_english == false ? 'Din e-postadress' : 'Your email address');
echo '</div>';
echo '<div class="field">';
$email_optional = ($viewing_in_english == false ? 'Valfritt' : 'Optional');
$email_hidden = ($viewing_in_english == false ? 'Dold av säkerhetskäl' : 'Hidden for security reasons');
echo '<input type="email" name="field-email" placeholder="'.($viewing_in_english == false ? 'Valfritt' : 'Optional').'" value="'.$user['info_email'].'" tabindex="2">';
echo '</div>';
echo '</div>';
echo '<div class="item url">';
echo '<div class="label">';
echo ($viewing_in_english == false ? 'Din webbadress' : 'Your URL');
echo '</div>';
echo '<div class="field">';
echo '<input type="url" name="field-url" placeholder="'.($viewing_in_english == false ? 'Valfritt (exempel: https://blog.airikr.me)' : 'Optional (example: https://blog.airikr.me/en)').'" value="'.$user['info_url'].'" tabindex="3">';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="button">';
echo '<input type="submit" name="button-save" value="'.($viewing_in_english == false ? 'Spara' : 'Save').'" tabindex="4">';
echo '</div>';
echo '</form>';
echo '</section>';
require_once 'site-footer.php';
?>