$content = EZP_CS_Content_Entity::get_by_id($set->content_index); $config = EZP_CS_Config_Entity::get_by_id($global->config_index); $error_string = ""; if (isset($_POST['action']) && $_POST['action'] == 'save') { check_admin_referer('easy-pie-coming-soon-save-content'); // Artificially set the bools since they aren't part of the postback // TODO $error_string = $content->set_post_variables($_POST); if ($error_string == "") { $action_updated = $content->save(); } } ?> <script type="text/javascript"> ezp_cs_datepicker_date_format = "<?php echo EZP_CS_Render_Utility::get_datepicker_date_format(); ?> "; </script> <?php wp_nonce_field('easy-pie-coming-soon-save-content'); ?> <input type="hidden" name="action" value="save"/> <?php //EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on); if ($error_string != "") { ?> <div id="message" class="error below-h2"><p><?php echo EZP_CS_Utility::__('Errors present:') . "<br/> {$error_string}";
" class="br-blue" style="display:<?php echo EZP_CS_Render_Utility::get_display($config->facebook_url, "inline-block"); ?> "><i class="fa fa-facebook"></i></a> <a target="_blank" href="<?php echo $config->twitter_url; ?> " class="br-lblue" style="display:<?php echo EZP_CS_Render_Utility::get_display($config->twitter_url, "inline-block"); ?> "><i class="fa fa-twitter"></i></a> <a target="_blank" href="<?php echo $config->google_plus_url; ?> " class="br-orange" style="display:<?php echo EZP_CS_Render_Utility::get_display($config->google_plus_url, "inline-block"); ?> "><i class="fa fa-google-plus"></i></a> </div> <!-- Footer --> <footer class="text-center"> <p id="footer"><?php echo $content->footer; ?> </p> </footer> </div>