first commit
This commit is contained in:
4
wp-content/plugins/brizy/public/views/editor.html.twig
Normal file
4
wp-content/plugins/brizy/public/views/editor.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{% spaceless %}
|
||||
<div id="brz-ed-root"></div>
|
||||
<div id="brz-popups"></div>
|
||||
{% endspaceless %}
|
||||
5
wp-content/plugins/brizy/public/views/empty.php
Normal file
5
wp-content/plugins/brizy/public/views/empty.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
* DO NOT DELETE THIS FILE.
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
{% if footer_injection is defined %}
|
||||
<!-- FOOTER SCRIPT INJECTION -->
|
||||
{{ footer_injection|raw }}
|
||||
<!-- END FOOTER SCRIPT INJECTION -->
|
||||
{% endif %}
|
||||
22
wp-content/plugins/brizy/public/views/head-partial.html.twig
Normal file
22
wp-content/plugins/brizy/public/views/head-partial.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% if content is defined %}
|
||||
<!-- BRIZY HEAD -->
|
||||
{{ content | raw }}
|
||||
<!-- END BRIZY HEAD -->
|
||||
{% endif %}
|
||||
|
||||
{% if custom_css is defined %}
|
||||
<!-- CUSTOM CSS -->
|
||||
<style>
|
||||
{{ custom_css | raw }}
|
||||
</style>
|
||||
<!-- END CUSTOM CSS -->
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if header_injection is defined %}
|
||||
<!-- HEADER SCRIPT INJECTION -->
|
||||
{{ header_injection|raw }}
|
||||
<!-- END HEADER SCRIPT INJECTION -->
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
{% if custom_css is defined %}
|
||||
<!-- CUSTOM CSS -->
|
||||
<style>
|
||||
{{ custom_css | raw }}
|
||||
</style>
|
||||
<!-- END CUSTOM CSS -->
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if code_injection['header_code'] is defined %}
|
||||
<!-- HEADER SCRIPT INJECTION -->
|
||||
{{ code_injection['header_code']|raw }}
|
||||
<!-- END HEADER SCRIPT INJECTION -->
|
||||
{% endif %}
|
||||
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ site_settings['favicon_url'] }}">
|
||||
|
||||
<!-- Search Engine -->
|
||||
<meta name="description" content="{{ site_settings['title'] }}">
|
||||
|
||||
<!-- Schema.org for Google -->
|
||||
<meta itemprop="name" content="{{ site_settings['title'] }}">
|
||||
<meta itemprop="description" content="{{ site_settings['description'] }}">
|
||||
<meta itemprop="image" content="{{ social_sharing['thumbnail_url'] }}">
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{{ social_sharing['title'] }}">
|
||||
<meta name="twitter:description" content="{{ social_sharing['description'] }}">
|
||||
<meta name="twitter:image:src" content="{{ social_sharing['thumbnail_url'] }}">
|
||||
|
||||
<!-- Twitter - Article -->
|
||||
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
|
||||
<meta property="og:title" content="{{ social_sharing['title'] }}">
|
||||
<meta property="og:description" content="{{ social_sharing['description'] }}">
|
||||
<meta property="og:image" content="{{ social_sharing['thumbnail_url'] }}">
|
||||
<meta property="og:url" content="{{ site_url }}">
|
||||
<meta property="og:site_name" content="{{ site_settings['title'] }}">
|
||||
<meta property="og:locale" content="{{ language }}">
|
||||
<meta property="og:type" content="article">
|
||||
|
||||
31
wp-content/plugins/brizy/public/views/page.html.twig
Normal file
31
wp-content/plugins/brizy/public/views/page.html.twig
Normal file
@@ -0,0 +1,31 @@
|
||||
{% set assetsUrl = editorData.urls.assets %}
|
||||
{% set templateFontsUrl = editorData.urls.templateFonts %}
|
||||
{% spaceless %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{ page_title }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% for styleUrl in styles %}
|
||||
<link rel="stylesheet" href="{{ styleUrl }}">
|
||||
{% endfor %}
|
||||
|
||||
{{ favicon | raw }}
|
||||
<style id="brz-ed-page-curtain-style">@keyframes spin{100%{transform:rotate(360deg)}}.brz-ed-page-curtain{position:fixed;left:0;right:0;top:0;bottom:0;background-color:#141923;z-index:1000}.brz-ed-page-spinner,.brz-ed-page-spinner:after,.brz-ed-page-spinner:before{content:"";position:absolute;top:50%;left:50%;border:3px solid transparent;border-radius:50%;animation:spin 1s linear infinite}.brz-ed-page-spinner{width:100px;height:100px;margin:-50px 0 0 -50px;border-top-color:#22b0da;animation-duration:2.5s}.brz-ed-page-spinner:after{width:80px;height:80px;margin:-40px 0 0 -40px;border-right-color:#ed2164;animation-duration:2s}.brz-ed-page-spinner:before{width:60px;height:60px;margin:-30px 0 0 -30px;border-bottom-color:#fff}.brz-ed-load-error{display:none;width:70%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;text-align:center}.brz-ed-load-error p:first-child{font-size:30px;margin-bottom:20px}.brz-ed-load-error p:last-child{font-size:18px}.brz-ed-load-error code{background-color:gray;padding:1px;font-size:15px}.brz-ed-page-curtain.has-load-error .brz-ed-page-spinner{display:none}.brz-ed-page-curtain.has-load-error .brz-ed-load-error{display:block}</style>
|
||||
</head>
|
||||
<body class="brz brz-ed" style="margin: 0;">
|
||||
<div class="brz-ed-page-curtain">
|
||||
<div class="brz-ed-page-spinner"></div>
|
||||
<div class="brz-ed-load-error">
|
||||
<p>Sorry, Brizy could not load</p>
|
||||
<p>Your theme must use the <code>the_content</code> filter in order for Brizy to work</p>
|
||||
</div>
|
||||
</div>
|
||||
<iframe id="brz-ed-iframe" class="brz-iframe brz-ed-iframe--desktop" style="border: 0; width: 100%; min-height: 100vh; margin: 0 auto;" src="{{ iframe_url }}"></iframe>
|
||||
{% for scriptUrl in scripts %}
|
||||
<script src="{{ scriptUrl }}"></script>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
{% endspaceless %}
|
||||
44
wp-content/plugins/brizy/public/views/post-info.html.twig
Normal file
44
wp-content/plugins/brizy/public/views/post-info.html.twig
Normal file
@@ -0,0 +1,44 @@
|
||||
<div class="brz-wp__postinfo">
|
||||
<ul>
|
||||
<li class="brz-li">
|
||||
<svg class="brz-icon-svg">
|
||||
<svg id="nc_icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
|
||||
<g fill="currentColor">
|
||||
<path d="M13.9850002,11.4390442 L10.9218002,10.6698291 C10.4166834,10.5427595 10.0350164,10.1777695 9.93340018,9.72461757 L9.74580018,8.89386527 C11.2393081,8.29382448 12.1980559,6.98365131 12.2000002,5.54008745 L12.2000002,3.84904498 C12.2352768,1.81462889 10.4395078,0.117617453 8.12880019,0.00173874965 C6.99274598,-0.0289028374 5.89106848,0.3465296 5.07533472,1.04230642 C4.25960095,1.73808324 3.79946563,2.69479274 3.80000021,3.69397121 L3.80000021,5.54008745 C3.80139727,6.98409704 4.76023183,8.29486966 6.25420019,8.89509601 L6.0666002,9.72461757 C5.96451159,10.1772982 5.58293081,10.5417305 5.0782002,10.6685983 L2.01500021,11.4378134 C1.41389518,11.5889601 0.99965277,12.072165 1.00000022,12.6217893 L1.00000022,15.3860407 C1.00000022,15.7259013 1.31340089,16.0014128 1.70000022,16.0014128 L14.3000002,16.0014128 C14.6865995,16.0014128 15.0000002,15.7259013 15.0000002,15.3860407 L15.0000002,12.6217893 C14.9997226,12.0726212 14.5856062,11.5900654 13.9850002,11.4390442 Z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
{{ author }}
|
||||
</li>
|
||||
<li class="brz-li">
|
||||
<svg class="brz-icon-svg">
|
||||
<svg id="nc_icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
|
||||
<g fill="currentColor">
|
||||
<path d="M15,2 C15.552,2 16,2.448 16,3 L16,5 L0,5 L0,3 C0,2.448 0.448,2 1,2 L3,2 L3,0 L5,0 L5,2 L11,2 L11,0 L13,0 L13,2 L15,2 Z M0,6 L16,6 L16,15 C16,15.6 15.6,16 15,16 L1,16 C0.4,16 0,15.6 0,15 L0,6 Z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
{{ date }}
|
||||
</li>
|
||||
<li class="brz-li">
|
||||
<svg class="brz-icon-svg">
|
||||
<svg id="nc_icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
|
||||
<g fill="currentColor">
|
||||
<path d="M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z M12,9 L7,9 L7,4 L9,4 L9,7 L12,7 L12,9 Z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
{{ time }}
|
||||
</li>
|
||||
<li class="brz-li">
|
||||
<svg class="brz-icon-svg">
|
||||
<svg id="nc_icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve">
|
||||
<g fill="currentColor">
|
||||
<path d="M8,0 C3.6,0 0,3.1 0,7 C0,10.9 3.6,14 8,14 C8.4,14 8.8,14 9.1,13.9 L14,16 L14,11.6 C15.2,10.4 16,8.8 16,7 C16,3.1 12.4,0 8,0 Z" transform="translate(8.000000, 8.000000) scale(-1, 1) translate(-8.000000, -8.000000) "></path>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
{{ comments }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: Blank Template
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
die('Direct access forbidden.');
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
||||
<?php
|
||||
if ( ! current_theme_supports( 'title-tag' ) ) {
|
||||
echo '<title>' . wp_get_document_title() . '</title>';
|
||||
}
|
||||
|
||||
wp_head();
|
||||
?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
<?php
|
||||
do_action( 'wp_body_open' );
|
||||
|
||||
if ( is_category() || is_archive() || is_tag() || is_404() || is_search() || is_home() ) {
|
||||
do_action( 'brizy_template_content' );
|
||||
} else {
|
||||
while ( have_posts() ) { the_post();
|
||||
|
||||
if ( post_password_required() ) {
|
||||
echo get_the_password_form();
|
||||
} else {
|
||||
the_content();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wp_footer();
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php defined( 'ABSPATH' ) or die();
|
||||
|
||||
get_header();
|
||||
|
||||
if ( is_category() || is_archive() || is_tag() || is_404() || is_search() || is_home() ) {
|
||||
do_action( 'brizy_template_content' );
|
||||
} else {
|
||||
while ( have_posts() ) { the_post();
|
||||
if ( post_password_required() ) {
|
||||
echo get_the_password_form();
|
||||
} else {
|
||||
the_content();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user