Plugin Tabs noticias
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<div style="float: left; width: 400px; padding: 20px;">
|
||||
<div class="areoi-card active areoi-card-branded" style="background: #2e085e; border: none;">
|
||||
<div class="areoi-card-body">
|
||||
<p>
|
||||
<img src="<?php echo esc_url( AREOI__PLUGIN_URI . 'assets/img/areoi-logo.svg' ) ?>" width="150">
|
||||
</p>
|
||||
<h2 style="line-height: 1.4em;">Democratising digital success.</h2>
|
||||
<p>Our mission is to democratise digital success by making high-quality websites accessible to every organisation.</p>
|
||||
|
||||
<a href="https://areoi.io" target="_blank" class="areoi-button" style="background: #ff7676;">Visit areoi.io</a>
|
||||
|
||||
<a href="https://areoi.io/all-bootstrap-blocks/" target="_blank">Plugin Features</a>
|
||||
<a href="https://areoi.io/all-bootstrap-blocks/documentation" target="_blank">Plugin Docs</a>
|
||||
</div><!-- .areoi-card-body -->
|
||||
</div><!-- .areoi-card -->
|
||||
|
||||
<div class="areoi-card active" style="background: #fff;">
|
||||
|
||||
<div class="areoi-card-body">
|
||||
<?php include( AREOI__PLUGIN_DIR . 'views/partials/mailchimp.php' ); ?>
|
||||
</div><!-- .areoi-card-body -->
|
||||
|
||||
</div><!-- .areoi-card -->
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
<!-- Begin Mailchimp Signup Form -->
|
||||
<div id="mc_embed_signup">
|
||||
<form action="https://areoi.us5.list-manage.com/subscribe/post?u=09c1b05c728be18e6a11cb6d5&id=32f754f47b" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
||||
<div id="mc_embed_signup_scroll">
|
||||
<div class="indicates-required"><span class="asterisk">*</span> required</div>
|
||||
<h2>Subscribe</h2>
|
||||
<p>Be the first to know about our latest releases, new plugins and useful tips.</p>
|
||||
|
||||
<div class="mc-field-group">
|
||||
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
|
||||
</label>
|
||||
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
|
||||
</div>
|
||||
|
||||
<div id="mce-responses" class="clear">
|
||||
<div class="response" id="mce-error-response" style="display:none"></div>
|
||||
<div class="response" id="mce-success-response" style="display:none"></div>
|
||||
</div>
|
||||
<!-- 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_09c1b05c728be18e6a11cb6d5_32f754f47b" tabindex="-1" value=""></div>
|
||||
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
|
||||
<script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
|
||||
<!--End mc_embed_signup-->
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php if ( !empty( $active_page['sections'] ) ) : ?>
|
||||
|
||||
<?php foreach ( $active_page['sections'] as $section_key => $section ) : ?>
|
||||
|
||||
<?php if ( ( sanitize_text_field( !empty( $_GET['section'] ) ) && $section['slug'] == sanitize_text_field( $_GET['section'] ) ) || ( $section_key == 0 && sanitize_text_field( empty( $_GET['section'] ) ) ) ) : ?>
|
||||
|
||||
<input type="hidden" name="section" value="<?php echo $section['slug'] ?>">
|
||||
<div
|
||||
class="areoi-card active"
|
||||
style="">
|
||||
|
||||
<div class="areoi-card-body">
|
||||
|
||||
<h2><?php echo esc_attr( $section['name'] ) ?></h2>
|
||||
|
||||
<?php if ( !empty( $section['description'] ) ) : ?>
|
||||
<p><?php echo wp_kses_post( $section['description'] ) ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( !empty( $section['options'] ) ) : ?>
|
||||
<table class="areoi-form-table form-table" role="presentation">
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ( $section['options'] as $option_key => $option ) :
|
||||
if ( !empty( $option['input'] ) ) :
|
||||
include( AREOI__PLUGIN_DIR . 'views/inputs/row.php' );
|
||||
endif;
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- .areoi-card-body -->
|
||||
</div><!-- .areoi--card -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
$get_section = sanitize_text_field( !empty( $_GET['section'] ) ) ? sanitize_text_field( $_GET['section'] ) : false;
|
||||
?>
|
||||
<div class="areoi-sidebar">
|
||||
<div class="areoi-sidebar__content">
|
||||
<?php if ( !areoi_is_lightspeed() ) : ?>
|
||||
<h1><img style="display: block;" src="<?php echo esc_url( AREOI__PLUGIN_URI . 'assets/img/areoi-logo-dark.svg' ) ?>" width="150"></h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="areoi-sidebar__list">
|
||||
<?php foreach ( $page['children'] as $child_key => $child) : ?>
|
||||
<?php if ( $child_key == 'areoi-dashboard' || get_option( 'areoi-dashboard-global-bootstrap-css', 1 ) == 1 ) : ?>
|
||||
<li class="
|
||||
areoi-sidebar__link
|
||||
<?php echo esc_attr( $child['slug'] == $active_page['slug'] ? 'active' : '' ) ?>
|
||||
<?php echo esc_attr( !empty( $child['sections'] ) && count( $child['sections'] ) > 1 ? 'has-children' : '' ) ?>
|
||||
">
|
||||
<a href="?page=<?php echo esc_attr( $child['slug'] ) ?>">
|
||||
<?php echo esc_attr( $child['name'] ) ?>
|
||||
</a>
|
||||
|
||||
<?php if ( !empty( $child['sections'] ) && count( $child['sections'] ) > 1 ) : ?>
|
||||
<ul class="areoi-sidebar__sub-list">
|
||||
<?php foreach ( $child['sections'] as $section_key => $section ) : ?>
|
||||
<li class="areoi-sidebar__sub-link <?php echo esc_attr( ( $section_key == 0 && !$get_section || $section['slug'] == $get_section ) ? 'active' : '' ) ?>">
|
||||
<a href="?page=<?php echo esc_attr( $child['slug'] ) ?>§ion=<?php echo esc_attr( $section['slug'] ) ?>">
|
||||
<?php echo esc_attr( $section['name'] ) ?>
|
||||
</a>
|
||||
|
||||
<?php if ( !empty( $section['options'] ) ) : ?>
|
||||
<ul class="areoi-sidebar__sub-sub-list">
|
||||
<?php foreach ( $section['options'] as $option_key => $option ) : ?>
|
||||
<?php if ( $option['input'] == 'header' ) : ?>
|
||||
<li class="areoi-sidebar__sub-sub-link">
|
||||
<a href="#<?php echo esc_attr( sanitize_title( $option['label'] ) ) ?>"><?php echo esc_attr( $option['label'] ) ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul><!-- .areoi-sidebar__list-->
|
||||
</div><!-- .areoi-sidebar__content -->
|
||||
</div><!-- .areoi-sidebar -->
|
||||
Reference in New Issue
Block a user