[php] форма добавления
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- <?php
- add_shortcode ( 'my_shortcode_add_event_btn', 'my_shortcode_add_event_btn_func' );
- function my_shortcode_add_event_btn_func ()
- {
- return "
- <a href='#add-even' class='button-ev-add'><i class='fa fa-calendar-plus-o' aria-hidden='true'></i><span>Добавить событие</span></a>
- <div id='add-even' class='modalBackground-ev'>
- <div class='modalWindow-ev'>
- <h3>Добавим событие в календарь?</h3>
- <p>Проверьте введенные данные перед сохранением!</p>
- <p>" . do_shortcode('[event_form]') . "</p>
- <p><a href='' class='but-close-win-ev' title='Закрыть окно без сохранения'>Отмена ввода события</a></p>
- </div>
- </div>
- <style>
- .modalBackground-ev {
- opacity: 0;
- margin: 0;
- padding: 0;
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: rgba(0,0,0,0.5);
- z-index: 60;
- width: 100%;
- height: 100%;
- }
- .modalBackground-ev:target {
- opacity: 1;
- pointer-events: auto;
- overflow-y: auto;
- }
- .modalWindow-ev {
- max-width: 600px;
- margin: auto;
- margin-top: 5px;
- padding: 5px;
- background: #fff;
- border-radius: 3px;
- }
- </style>
- ";
- }
Editor
You can edit this paste and save as new:
File Description
- форма добавления
- Paste Code
- 16 Apr-2021
- 1.58 Kb
You can Share it: