<?php
    /*
    * copyright (c) 2013-2020 Heliac Technologies
    * license http://opensource.org/licenses/gpl-license.php GNU GPL v3 
    *
    * linee guida per l'utilizzo del logo http://www.geecom.org/articolo.php?id=34&alias=linee-guida-per-l%27uso-del-logo-geecom
    */

    $datiProfili = $geecomDb->leggiSingolaRiga("geec_profiliSocial",1);
?>

    <form name="formAggiornamentoProfiliSocial" action="../controller/controllerImpostazioni.php" method="post">
        <input type="text" class="d-none" name="operazione" value="aggiornaProfiliSocial">
        <h4 class="mb-4 title">Profili social</h4>

        <div class="row mt-5">
            <div class="form-group col-md-6">
                <label for="nomeSlide" >Facebook</label>
                <input type="text" class="form-control" name="facebook" value="<?php echo($datiProfili['facebook']); ?>">
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >Instagram</label>
                <input type="text" class="form-control" name="instagram" value="<?php echo($datiProfili['instagram']); ?>">
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >Twitter</label>
                <input type="text" class="form-control" name="twitter" value="<?php echo($datiProfili['twitter']); ?>" >
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >YouTube</label>
                <input type="text" class="form-control" name="youtube" value="<?php echo($datiProfili['youtube']); ?>">
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >Patreon</label>
                <input type="text" class="form-control" name="patreon" value="<?php echo($datiProfili['patreon']); ?>">
            </div>
            
            <div class="form-group col-md-6">
                <label for="nomeSlide" >TikTok</label>
                <input type="text" class="form-control" name="ticToc" value="<?php echo($datiProfili['ticToc']); ?>">
            </div>
            
            <div class="form-group col-md-6">
                <label for="nomeSlide" >LinkedIn</label>
                <input type="text" class="form-control" name="linkedin" value="<?php echo($datiProfili['linkedin']); ?>">
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >WhatsApp</label>
                <input type="text" class="form-control" name="whatsapp" value="<?php echo($datiProfili['whatsapp']); ?>">
            </div>

            <div class="form-group col-md-6">
                <label for="nomeSlide" >Telegram</label>
                <input type="text" class="form-control" name="telegram" value="<?php echo($datiProfili['telegram']); ?>">
            </div>

        </div>
        <button type="submit" class="btn btn-primary float-right mt-4" ><i class="fa fa-check"></i> Salva</button>
    </form>