first
This commit is contained in:
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Preview template.
|
||||
*
|
||||
* @var $args
|
||||
* @package visual-portfolio
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?> style="margin-top: 0 !important;">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class( 'vp-preview-body' ); ?>>
|
||||
<?php do_action( 'vpf_before_preview_output' ); ?>
|
||||
|
||||
<div class="entry-content">
|
||||
<div id="vp_preview" class="<?php echo esc_attr( $args['class_name'] ); ?>">
|
||||
<?php
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo Visual_Portfolio_Get::get( $args['options'] );
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php do_action( 'vpf_after_preview_output' ); ?>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
body,html{margin:0!important;padding:0!important}body:before{content:none!important}#wpadminbar{display:none}#vp_preview{margin:0;max-width:none;padding:0;position:relative;width:100%;z-index:99999}.entry-content{margin:0!important;padding:0!important}.vp-portfolio{margin-bottom:0;margin-top:0}#query-monitor-main{display:none!important}
|
@ -0,0 +1 @@
|
||||
body,html{margin:0!important;padding:0!important}body:before{content:none!important}#wpadminbar{display:none}#vp_preview{margin:0;max-width:none;padding:0;position:relative;width:100%;z-index:99999}.entry-content{margin:0!important;padding:0!important}.vp-portfolio{margin-bottom:0;margin-top:0}#query-monitor-main{display:none!important}
|
@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Preview style
|
||||
*/
|
||||
html,
|
||||
body {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: none !important;
|
||||
}
|
||||
|
||||
#wpadminbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* stylelint-disable-next-line selector-id-pattern */
|
||||
#vp_preview {
|
||||
position: relative;
|
||||
z-index: 99999;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.entry-content {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.vp-portfolio {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
// Hide Query Monitor.
|
||||
#query-monitor-main {
|
||||
display: none !important;
|
||||
}
|
Reference in New Issue
Block a user