cor

cor

dan

<!-- Begin MailChimp Signup Form -->

<link href="//cdn-images.mailchimp.com/embedcode/slim-10_7.css" rel="stylesheet" type="text/css">

<style type="text/css">

#mc_embed_signup{background:#110F11; clear:left; font:14px Helvetica,Arial,sans-serif; }

/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.

  We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */

</style>

<div id="mc_embed_signup">

<form action="https://cpr.us17.list-manage.com/subscribe/post?u=e6e10aa2a1a60cf3c57b3f2ea&amp;id=814e65f8b8" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>



  <div id="mc_embed_signup_scroll">

<label for="mce-EMAIL">Abonează-te aici. Vom actualiza permanent</label>

<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="adresa de email" required>

  <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->

  <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_e6e10aa2a1a60cf3c57b3f2ea_814e65f8b8" tabindex="-1" value=""></div>

  <br>

  <div class="clear"><input type="submit" value="abonează-mă" name="subscribe" id="mc-embedded-subscribe" class="button btn-lg" style="background: #ED4148"></div>

  </div>

<br> 

     

</form>

    

</div>


<!--End mc_embed_signup-->




PHP:


<?php


add_action( 'wp_enqueue_scripts', 'radians_child_enqueue_styles');

function radians_child_enqueue_styles() {


  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

}

add_image_size('popup-thumbnail', 256, 200, true);


add_shortcode( 'propune_exemplu_form', 'propune_exemplu_form' );

function propune_exemplu_form() {

  if (

    isset( $_POST['example_form_nonce'] )

    && wp_verify_nonce( $_POST['example_form_nonce'], 'example_form_action' )

  ) {


    $desc = sanitize_textarea_field( $_POST['ex_description'] );

    $url = esc_url( $_POST['ex_url'] );


    wp_insert_post( array(

      'post_content' => $desc . '<br/><br/><a href="' . $url . '" target="blank">' . $url . '</a>',

      'post_status' => 'pending',

      'tags_input' => $_POST['ex_categories']

    ) );


    echo '<div id="propune_exemplu_form_container_success" style="display: none;">

        <div class="success">Exemplul dvs. a fost inregistrat si este in asteptarea moderarii.</div>

      </div>

    <script type="text/javascript">

    jQuery(document).ready(function() {

     func25();

     jQuery("#propune_exemplu_form_container_success").empty();

    });

    </script>';

  }

  echo '<div id="propune_exemplu_form_container" style="display: none;">

    <div><h3>Trimite-ne exemplul tău</h3></div>

    <div class="mb-5 text-left">

    <form action="" method="post" class="wpcf7-form">

    ' . wp_nonce_field('example_form_action', 'example_form_nonce') . '

    <p>Descriere<br>

    <label class="lesss"><br>

      <span class="wpcf7-form-control-wrap">

      <textarea name="ex_description" cols="100" rows="10" required="required" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required" aria-required="true" aria-invalid="false" placeholder="Introduceți descrierea succintă a conținutului"></textarea>

      </span><br>

    </label><br>

    URL<br>

    <span class="wpcf7-form-control-wrap">

    <input type="text" name="ex_url" value="" required="required" size="40" class="wpcf7-form-control wpcf7-text wpcf7-url wpcf7-validates-as-required wpcf7-validates-as-url" aria-required="true" aria-invalid="false" placeholder="Introduceți link-ul către sursă">

    </span><br>

    Categorie (pot fi selectate multiple categorii )<br>

    <span class="wpcf7-form-control-wrap ex_categories">

      <span class="wpcf7-form-control wpcf7-checkbox">

        <span class="wpcf7-list-item first">

          <input type="checkbox" name="ex_categories[]" value="Mită">

          <span class="wpcf7-list-item-label">Mită</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Abuz în serviciu și trafic de influență.">

          <span class="wpcf7-list-item-label">Abuz în serviciu și trafic de influență.</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Conflictul de interese">

          <span class="wpcf7-list-item-label">Conflictul de interese</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Nepotism">

          <span class="wpcf7-list-item-label">Nepotism</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Scurgere de informație confidențială">

          <span class="wpcf7-list-item-label">Scurgere de informație confidențială</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Efectul ușii rotative">

          <span class="wpcf7-list-item-label">Efectul ușii rotative</span>

        </span><span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Achizițiile publice">

          <span class="wpcf7-list-item-label">Achizițiile publice</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Cumpărarea voturilor">

          <span class="wpcf7-list-item-label">Cumpărarea voturilor</span>

        </span>

        <span class="wpcf7-list-item">

          <input type="checkbox" name="ex_categories[]" value="Finanțare ilegală a partidelor">

          <span class="wpcf7-list-item-label">Finanțare ilegală a partidelor</span>

        </span>

        <span class="wpcf7-list-item last">

          <input type="checkbox" name="ex_categories[]" value="Capturarea statului">

          <span class="wpcf7-list-item-label">Capturarea statului</span>

        </span>

      </span>

    </span><br>

    <input type="submit" value="Trimite" class="wpcf7-form-control wpcf7-submit" id="sbmt">

    </p>

  </form>

  </div>

</div>';

}



Report Page