editor-cleanup-for-avada/admin/ecfa-index-settings.php
JoseMortellaro ad4e6bc0a7 v0.0.5
v0.0.5
2024-06-21 23:56:06 +02:00

61 lines
3 KiB
PHP

<?php
defined( 'FDP_ECFA_PLUGIN_DIR' ) || exit;
$titles = eos_dp_ecfa_titles();
$left = is_rtl() ? 'right' : 'left';
$kses = array( 'a' => array( 'href' => array(),'class' => array() ) );
?>
<style id="fdp-avada-index-css">
.fdp-descriptions .button,
#fdp-avada-index-section .button {
background: #000 !important;
color: #fff !important
}
.fdp-descriptions .button:hover,
#fdp-avada-index-section .button:hover {
background: #fff !important;
color: #000 !important
}
#dolly{display:none}
#fdp-avada-outer-setts-wrp {
<?php echo esc_attr( $left ); ?>: 0;
margin-<?php echo esc_attr( $left ); ?>: 8px;
top:50%
}
#fdp-avada-inner-setts-wrp,#fdp-avada-loading-setts-wrp {
<?php echo esc_attr( $left ); ?>: 60%;
-o-transform:translateX(-50%);
-ms-transform:translateX(-50%);
-moz-transform:translateX(-50%);
-webkit-transform:translateX(-50%);
transform:translateX(-50%);
top:50%
}
#fdp-avada-loading-setts-wrp{
top:52%;
top:calc(50% + 64px)
}
#fdp-avada-loading-setts-url:after {
content: "\f111";
position: absolute;
top:0;
<?php echo esc_attr( $left ); ?>:50%;
z-index: 99999999;
font-family: dashicons;
margin-left: -20px;
font-size: 40px;
}
</style>
<h2><?php esc_html_e( 'Editor Cleanup For Avada.','editor-cleanup-for-avada' ); ?></h2>
<section id="fdp-avada-index-section" style="position:relative;width:99%;width:calc(100% - 20px);margin:32px auto 0 auto;height:0;padding-bottom:60%;background-repeat:no-repeat;background-image:url(<?php echo FDP_ECFA_PLUGIN_URL; ?>/admin/assets/img/avada-editor-screen.png);background-size:contain">
<?php foreach( $titles as $k => $title ){ ?>
<div id="fdp-avada-<?php echo esc_attr( $k ); ?>-setts-wrp" class="fdp-avada-setts-wrp" style="background:#fff;position:absolute">
<a id="fdp-avada-<?php echo esc_attr( $k ); ?>-setts-url" class="button" href="<?php echo esc_attr( esc_url( admin_url( 'admin.php?page=eos_dp_ecfa_'.esc_attr( $k ) ) ) ); ?>"><?php echo esc_html( $title ); ?></a>
</div>
<?php } ?>
</section>
<div class="fdp-descriptions" style="margin-top:64px">
<p><?php echo wp_kses( sprintf( __( 'Click on %sOuter editor cleanup%s to disable the plugins that are not needed in the outer editor (usually no plugin needed)','editor-cleanup-for-avada' ),'<a href="'.admin_url( 'admin.php?page=eos_dp_ecfa_outer' ).'" class="button">','</a>' ),$kses ); ?></p>
<p><?php echo wp_kses( sprintf( __( 'Click on %sInner editor cleanup%s to disable the plugins that are not needed in the inner editor does\'t need (the inner editor is like the page on frontend, but loaded inside the Avada editor)','editor-cleanup-for-avada' ),'<a href="'.admin_url( 'admin.php?page=eos_dp_ecfa_inner' ).'" class="button">','</a>' ),$kses ); ?></p>
<p><?php echo wp_kses( sprintf( __( 'Click on %sEditor loading cleanup%s to disable the plugins that are called during the loading of the editor (usually no plugin needed, disabling plugins here can solve conflicts with other plugins)','editor-cleanup-for-avada' ),'<a href="'.admin_url( 'admin.php?page=eos_dp_ecfa_loading' ).'" class="button">','</a>' ),$kses ); ?></p>
</div>