-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Be API Frontend Framework
+
+
-
+
+
-
+
diff --git a/screenshot.png b/screenshot.png
index c202f8dd..cc691253 100644
Binary files a/screenshot.png and b/screenshot.png differ
diff --git a/scripts/style-version.js b/scripts/style-version.js
deleted file mode 100644
index ad15614b..00000000
--- a/scripts/style-version.js
+++ /dev/null
@@ -1,71 +0,0 @@
-const fs = require('fs')
-
-const updateStyle = (content, type) => {
- const regex = /[V|v]ersion: ([\d(\.)?]{0,})/g
-
- const nextVersion = content.replace(regex, (match, gr1) => {
- let typeArr = gr1.split('.')
- typeArr = parseIntArr(typeArr)
- if (typeArr.length === 2) {
- typeArr.push(0)
- }
-
- if (type === 'patch') {
- typeArr = patchUpdate(typeArr)
- } else if (type === 'minor') {
- typeArr = minorUpdate(typeArr)
- } else if (type === 'major') {
- typeArr = majorUpdate(typeArr)
- }
-
- console.log('\x1b[33m%s\x1b[0m\x1b[40m', 'style.css version updated to : ' + typeArr.join('.'))
-
- return match.replace(gr1, typeArr.join('.'))
- })
-
- fs.writeFileSync('style.css', nextVersion)
-}
-
-const majorUpdate = types => {
- types[0] += 1
- types[1] = 0
- types[2] = 0
-
- return types
-}
-
-const minorUpdate = types => {
- types[1] += 1
- types[2] = 0
-
- return types
-}
-
-const patchUpdate = types => {
- types[2] += 1
-
- return types
-}
-
-const parseIntArr = arr => {
- for (let i = 0; i < arr.length; i++) {
- arr[i] = parseInt(arr[i])
- }
- return arr
-}
-
-const init = () => {
- const content = fs.readFileSync('style.css', 'utf8')
- const typeAvailable = ['major', 'minor', 'patch']
- let type = 'patch'
- for (let i = 0; i < process.argv.length; i++) {
- if (process.argv[i] === '-t' || process.argv[i] === '-type') {
- if (typeAvailable.indexOf(process.argv[i + 1]) > -1) {
- type = process.argv[i + 1]
- }
- }
- }
- updateStyle(content, type)
-}
-
-init()
diff --git a/server.sh b/server.sh
deleted file mode 100644
index 2cfdacc0..00000000
--- a/server.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-PORT=9090
-BSPORT=3000
-
-while [ -n "$(lsof -Pi :${PORT} -sTCP:LISTEN -t)" ]; do
- ((PORT++))
-done
-
-while [ -n "$(lsof -Pi :${BSPORT} -sTCP:LISTEN -t)" ]; do
- ((BSPORT += 2))
-done
-
-echo "BS will run on port ${BSPORT}"
-
-echo $PORT > ".port"
-echo $BSPORT > ".bs-port"
-
-echo "Server is running on port ${PORT} and BrowserSync on port ${BSPORT}"
-php -S localhost:${PORT}
\ No newline at end of file
diff --git a/src/conf-img/image-locations.json b/src/conf-img/image-locations.json
index a9088bcd..f83964d4 100644
--- a/src/conf-img/image-locations.json
+++ b/src/conf-img/image-locations.json
@@ -1,53 +1,5 @@
[
{
- "entry-img-01": [
- {
- "srcsets": [
- {
- "srcset": "",
- "size": "img-300-200"
- },
- {
- "srcset": "2x",
- "size": "img-600-400"
- }
- ],
- "default_img": "default-600-400.jpg",
- "img_base": "img-600-400"
- }
- ],
- "header-logo": [
- {
- "srcsets": [
- {
- "srcset": "",
- "size": "img-100-100"
- },
- {
- "srcset": "2x",
- "size": "img-200-200"
- }
- ],
- "default_img": "default-200-200.jpg",
- "img_base": "img-200-200"
- }
- ],
- "hero-img": [
- {
- "srcsets": [
- {
- "srcset": "",
- "size": "img-1024-400"
- },
- {
- "srcset": "2x",
- "size": "img-2048-800"
- }
- ],
- "default_img": "default-2048-800.jpg",
- "img_base": "img-2048-800"
- }
- ],
"square": [
{
"srcsets": [
diff --git a/src/conf-img/image-sizes.json b/src/conf-img/image-sizes.json
index 3346903a..1c4975b7 100644
--- a/src/conf-img/image-sizes.json
+++ b/src/conf-img/image-sizes.json
@@ -1,15 +1,5 @@
[
{
- "img-300-200": {
- "width": "300",
- "height": "200",
- "crop": true
- },
- "img-600-400": {
- "width": "600",
- "height": "400",
- "crop": true
- },
"img-100-100": {
"width": "100",
"height": "100",
@@ -20,16 +10,6 @@
"height": "200",
"crop": true
},
- "img-1024-400": {
- "width": "1024",
- "height": "400",
- "crop": true
- },
- "img-2048-800": {
- "width": "2048",
- "height": "800",
- "crop": true
- },
"img-400-400": {
"width": "400",
"height": "400",
diff --git a/src/conf-img/tpl/entry-img-01.tpl b/src/conf-img/tpl/entry-img-01.tpl
deleted file mode 100644
index a2916e27..00000000
--- a/src/conf-img/tpl/entry-img-01.tpl
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/conf-img/tpl/header-logo.tpl b/src/conf-img/tpl/header-logo.tpl
deleted file mode 100644
index 3ff1e5da..00000000
--- a/src/conf-img/tpl/header-logo.tpl
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/conf-img/tpl/hero-img.tpl b/src/conf-img/tpl/hero-img.tpl
deleted file mode 100644
index 7644c643..00000000
--- a/src/conf-img/tpl/hero-img.tpl
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/img/default/default-100-100.jpg b/src/img/default/default-100-100.jpg
new file mode 100644
index 00000000..644d4bbe
Binary files /dev/null and b/src/img/default/default-100-100.jpg differ
diff --git a/src/img/default/default-200-200.jpg b/src/img/default/default-200-200.jpg
new file mode 100644
index 00000000..a10bf8b7
Binary files /dev/null and b/src/img/default/default-200-200.jpg differ
diff --git a/src/img/default/default-400-400.jpg b/src/img/default/default-400-400.jpg
new file mode 100644
index 00000000..2c184909
Binary files /dev/null and b/src/img/default/default-400-400.jpg differ
diff --git a/src/img/default/default.sketch b/src/img/default/default.sketch
deleted file mode 100644
index 64de9fc7..00000000
Binary files a/src/img/default/default.sketch and /dev/null differ
diff --git a/src/img/favicons/appicon_src.png b/src/img/favicons/appicon_src.png
deleted file mode 100644
index 006c2354..00000000
Binary files a/src/img/favicons/appicon_src.png and /dev/null differ
diff --git a/src/img/favicons/favicon_src.png b/src/img/favicons/favicon_src.png
deleted file mode 100644
index f30621e8..00000000
Binary files a/src/img/favicons/favicon_src.png and /dev/null differ
diff --git a/src/img/sample/beasample-01.jpg b/src/img/sample/beasample-01.jpg
deleted file mode 100644
index 93a8a0e6..00000000
Binary files a/src/img/sample/beasample-01.jpg and /dev/null differ
diff --git a/src/img/sample/placeholder.jpg b/src/img/sample/placeholder.jpg
deleted file mode 100644
index 82629726..00000000
Binary files a/src/img/sample/placeholder.jpg and /dev/null differ
diff --git a/src/js/src/AbstractDomElement.js b/src/js/classes/AbstractDomElement.js
similarity index 91%
rename from src/js/src/AbstractDomElement.js
rename to src/js/classes/AbstractDomElement.js
index e95713e0..d42e7476 100644
--- a/src/js/src/AbstractDomElement.js
+++ b/src/js/classes/AbstractDomElement.js
@@ -28,7 +28,7 @@
*/
-const $ = jQuery
+import extend from '../utils/extend.js'
class AbstractDomElement {
constructor(element, options) {
@@ -57,7 +57,7 @@ class AbstractDomElement {
}
this._element = element
- this._settings = $.extend(true, {}, this.constructor.defaults, options)
+ this._settings = extend(true, {}, this.constructor.defaults, options)
this._element.beapi[nameSpace] = this
this._isNewInstance = true
}
@@ -72,7 +72,7 @@ class AbstractDomElement {
}
static init(element, options) {
- foreach(element, el => {
+ foreach(element, (el) => {
new this(el, options)
})
@@ -90,7 +90,7 @@ class AbstractDomElement {
}
static destroy(element) {
- this.foreach(element, el => {
+ this.foreach(element, (el) => {
if (el.beapi && el.beapi[this.nameSpace]) {
el.beapi[this.nameSpace].destroy()
}
@@ -100,7 +100,7 @@ class AbstractDomElement {
}
static foreach(element, callback) {
- foreach(element, el => {
+ foreach(element, (el) => {
if (el.beapi && el.beapi[this.nameSpace]) {
callback(el)
}
@@ -140,7 +140,9 @@ function foreach(element, callback) {
let i
for (i = 0; i < el.length; i++) {
- if (callback(el[i]) === false) break
+ if (callback(el[i]) === false) {
+ break
+ }
}
}
diff --git a/src/js/classes/AccessibleMenu.js b/src/js/classes/AccessibleMenu.js
new file mode 100644
index 00000000..9f6049a9
--- /dev/null
+++ b/src/js/classes/AccessibleMenu.js
@@ -0,0 +1,44 @@
+import AbstractDomElement from './AbstractDomElement'
+import '../vendor/accessible-mega-menu'
+
+class AccessibleMenu extends AbstractDomElement {
+ constructor(element, options) {
+ var instance = super(element, options)
+
+ // avoid double init :
+ if (!instance.isNewInstance()) {
+ return instance
+ }
+
+ this.init()
+ }
+
+ init() {
+ const el = this._element
+ const s = this._settings
+
+ ;(function ($) {
+ // Accesible toggle menu;
+ $(el).accessibleMegaMenu(s.options)
+ })(jQuery)
+ }
+}
+
+AccessibleMenu.defaults = {
+ options: {
+ uuidPrefix: 'amenu',
+ menuClass: 'amenu__main',
+ topNavItemClass: 'amenu__top',
+ panelClass: 'amenu__panel',
+ panelGroupClass: 'sub-menu',
+ hoverClass: 'hover',
+ focusClass: 'focus',
+ openClass: 'open',
+ },
+}
+
+AccessibleMenu.preset = {
+ '#nav-primary': {},
+}
+
+export default AccessibleMenu
diff --git a/src/js/editor.js b/src/js/editor.js
new file mode 100644
index 00000000..94b05e5f
--- /dev/null
+++ b/src/js/editor.js
@@ -0,0 +1,23 @@
+import lazySizes from 'lazysizes'
+import 'lazysizes/plugins/native-loading/ls.native-loading'
+import 'lazysizes/plugins/object-fit/ls.object-fit'
+
+/**
+ * LazySizes configuration
+ * https://github.com/aFarkas/lazysizes/#js-api---options
+ */
+lazySizes.cfg.nativeLoading = {
+ setLoadingAttribute: false,
+}
+
+// Native Gutenberg
+if (typeof wp !== 'undefined') {
+ wp.domReady(() => {
+ // Do stuff
+ })
+}
+
+// ACF Blocks
+if (window.acf) {
+ // Do stuff
+}
diff --git a/src/js/app.js b/src/js/index.js
similarity index 63%
rename from src/js/app.js
rename to src/js/index.js
index 4f6e4af4..3664cc7b 100644
--- a/src/js/app.js
+++ b/src/js/index.js
@@ -1,22 +1,14 @@
-/**
- * Main scripts file
- */
-
-import 'what-input'
-import 'svg4everybody'
-import './polyfill/picturefill'
import lazySizes from 'lazysizes'
import 'lazysizes/plugins/native-loading/ls.native-loading'
import 'lazysizes/plugins/object-fit/ls.object-fit'
-import './vendor/accessible-mega-menu'
-import './src/menu'
-
-// SVG SPRITE INJECTION
-function requireAll(r) {
- r.keys().forEach(r)
-}
+import 'what-input'
+import 'svg4everybody'
+import './polyfill/picturefill'
+import './post-build'
+import AccessibleMenu from './classes/AccessibleMenu'
-requireAll(require.context('../img/icons', true, /\.svg$/))
+// Initializations
+AccessibleMenu.initFromPreset()
/**
* LazySizes configuration
diff --git a/src/js/post-build.js b/src/js/post-build.js
new file mode 100644
index 00000000..26e0a806
--- /dev/null
+++ b/src/js/post-build.js
@@ -0,0 +1,12 @@
+function requireAll(r) {
+ r.keys().forEach(r)
+}
+
+// SVG
+requireAll(require.context('../img/icons', true, /\.svg$/))
+
+// DEFAULT
+requireAll(require.context('../img/default', true, /\.(png|jpe?g)$/))
+
+// STATIC
+requireAll(require.context('../img/static', true, /\.(png|jpe?g|gif)$/))
diff --git a/src/js/src/menu.js b/src/js/src/menu.js
deleted file mode 100644
index 241e02b3..00000000
--- a/src/js/src/menu.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Main Menu
- */
-;(function($) {
- // Accesible toggle menu
- $('#nav-primary').accessibleMegaMenu({
- uuidPrefix: 'amenu',
- menuClass: 'amenu__main',
- topNavItemClass: 'amenu__top',
- panelClass: 'amenu__panel',
- panelGroupClass: 'sub-menu',
- hoverClass: 'hover',
- focusClass: 'focus',
- openClass: 'open',
- })
- // Regular WordPress Menu
- $('.menu-footer-container').accessibleMegaMenu({
- uuidPrefix: 'amenu',
- menuClass: 'menu',
- topNavItemClass: 'menu__top',
- panelClass: 'menu__panel',
- panelGroupClass: 'sub-menu',
- hoverClass: 'hover',
- focusClass: 'focus',
- openClass: 'open',
- })
-})(jQuery)
diff --git a/src/js/src/menu_class.js b/src/js/src/menu_class.js
deleted file mode 100644
index 6ef4dab9..00000000
--- a/src/js/src/menu_class.js
+++ /dev/null
@@ -1,64 +0,0 @@
-class Menu {
- constructor() {
- // Elements to handle toggle menu
- this.menuBody = document.body
- this.menu = document.querySelector('#menu')
- this.menuOpen = document.getElementById('js-menu-open')
- this.menuClose = document.getElementById('js-menu-close')
- this.buttonContainer = document.getElementById('js-menu-trigger')
- this.activeClass = 'menu-mobile--active'
- // Resize breakpoint
- this.resizeBreakpoint = window.matchMedia('(min-width: 1024px)')
- }
- init() {
- if (this.menu) {
- // Events to handle toggle menu
- this.menuOpen.addEventListener('click', this.openMenu.bind(this), false)
- this.menuClose.addEventListener('click', this.closeMenu.bind(this), false)
- // Detect if clicked outside menu
- document.addEventListener('click', event => {
- const menu = this.menu.contains(event.target)
- const buttonContainer = this.buttonContainer.contains(event.target)
- if (!menu && !buttonContainer) {
- this.closeMenu()
- }
- })
- // Event breakpoint
- this.resizeBreakpoint.addListener(this.menuResizing.bind(this))
- } else {
- console.log('No menu')
- }
- }
- /**
- * Open menu
- * @param {event} e
- */
- openMenu(e) {
- if (!this.menuBody.classList.contains(this.activeClass)) {
- this.menuBody.classList.add(this.activeClass)
- }
- }
- /**
- * Close menu
- * @param {event} e
- */
- closeMenu(e) {
- if (this.menuBody.classList.contains(this.activeClass)) {
- this.menuBody.classList.remove(this.activeClass)
- }
- }
- /**
- * Remove menu-mobile active class if breakpoint reach desktop
- * @param {*} mediaQuery
- */
- menuResizing(mediaQuery = this.resizeBreakpoint) {
- if (mediaQuery.matches && this.menuBody.classList) {
- this.menuBody.classList.remove(this.activeClass)
- }
- }
-}
-
-export default Menu
-
-const menu = new Menu()
-menu.init()
diff --git a/src/js/utils/extend.js b/src/js/utils/extend.js
new file mode 100644
index 00000000..61212b6c
--- /dev/null
+++ b/src/js/utils/extend.js
@@ -0,0 +1,23 @@
+import isPlainObject from './isPlainObject'
+
+export default function extend() {
+ const args = arguments
+ const firstArgIsBool = typeof args[0] === 'boolean'
+ const deep = firstArgIsBool ? args[0] : false
+ const start = firstArgIsBool ? 1 : 0
+ const rt = isPlainObject(args[start]) ? args[start] : {}
+ var i
+ var prop
+
+ for (i = start + 1; i < args.length; i++) {
+ for (prop in args[i]) {
+ if (deep && isPlainObject(args[i][prop])) {
+ rt[prop] = extend(true, {}, rt[prop], args[i][prop])
+ } else if (typeof args[i][prop] !== 'undefined') {
+ rt[prop] = args[i][prop]
+ }
+ }
+ }
+
+ return rt
+}
diff --git a/src/js/utils/isPlainObject.js b/src/js/utils/isPlainObject.js
new file mode 100644
index 00000000..246a602b
--- /dev/null
+++ b/src/js/utils/isPlainObject.js
@@ -0,0 +1,39 @@
+/*!
+ * is-plain-object
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+function isObject(o) {
+ return Object.prototype.toString.call(o) === '[object Object]'
+}
+
+export default function isPlainObject(o) {
+ let ctor, prot
+
+ if (isObject(o) === false) {
+ return false
+ }
+
+ // If has modified constructor
+ ctor = o.constructor
+ if (ctor === undefined) {
+ return true
+ }
+
+ // If has modified prototype
+ prot = ctor.prototype
+ if (isObject(prot) === false) {
+ return false
+ }
+
+ // If constructor does not have an Object-specific method
+ // eslint-disable-next-line no-prototype-builtins
+ if (prot.hasOwnProperty('isPrototypeOf') === false) {
+ return false
+ }
+
+ // Most likely a plain Object
+ return true
+}
diff --git a/src/js/vendor/webpack-php-output.js b/src/js/vendor/webpack-php-output.js
deleted file mode 100644
index ceb7e87a..00000000
--- a/src/js/vendor/webpack-php-output.js
+++ /dev/null
@@ -1,118 +0,0 @@
-// TODO: remove lodash and other dependencies
-var _ = require('lodash')
-var path = require('path')
-var url = require('url')
-var fs = require('fs')
-
-function PhpOutputPlugin(options) {
- var defaults = {
- outPutPath: false, // false for default webpack path of pass string to specify
- assetsPathPrefix: '',
- phpClassName: 'WebpackBuiltFiles', //
- phpFileName: 'WebpackBuiltFiles',
- nameSpace: false, // false {nameSpace: 'name', use: ['string'] or empty property or don't pass "use" property}
- path: '',
- extraPurePatches: [],
- }
-
- this.options = _.defaults(options, defaults)
-}
-
-PhpOutputPlugin.prototype.apply = function apply(compiler) {
- var options = this.options
-
- var getCssFiles = function(filelist, filepath) {
- return _.map(
- _.filter(filelist, filename => filename.endsWith('.css') && !filename.startsWith('editor-style')), // filtering
- filename => path.join(options.assetsPathPrefix, filepath, filename) // mapping filtered
- )
- }
-
- var getJsFiles = function(filelist, filepath) {
- let files = _.map(
- _.filter(filelist, filename => filename.endsWith('.js') && !filename.startsWith('editor-style')), // filtering
- filename => path.join(options.assetsPathPrefix, filepath, filename) // mapping filtered
- )
-
- if (options.extraPurePatches.length) {
- files = files.concat(options.extraPurePatches)
- }
-
- // return files.sort().reverse()
- return files
- }
-
- var arrayToPhpStatic = function(list, varname) {
- var out = ' static $' + varname + ' = [\n'
- _.forEach(list, function(item) {
- out += " '" + item + "',"
- })
- out += '\n ];\n'
- return out
- }
-
- var objectToPhpClass = function(obj) {
- // Create a header string for the generated file:
- var out = ' {
- out += 'use ' + use + ';\n'
- })
- }
- }
- out += 'class ' + options.phpClassName + ' {\n'
-
- _.forEach(obj, (list, name) => {
- out += arrayToPhpStatic(list, name)
- })
-
- out += '\n}\n'
- return out
- }
-
- var mkOutputDir = function(dir) {
- // Make webpack output directory if it doesn't already exist
- try {
- fs.mkdirSync(dir)
- } catch (err) {
- // If it does exist, don't worry unless there's another error
- if (err.code !== 'EEXIST') throw err
- }
- }
-
- compiler.hooks.emit.tap('PhpOutputPlugin', (compilation) => {
- var stats = compilation.getStats().toJson()
- var toInclude = []
-
- // Flatten the chunks (lists of files) to one list
- for (var chunkName in stats.assetsByChunkName) {
- var asset = stats.assetsByChunkName[chunkName]
-
- if (typeof asset === 'string') {
- toInclude.push(asset)
- } else if (Array.isArray(asset)) {
- toInclude = _.union(toInclude, asset)
- }
- }
-
- var out = objectToPhpClass({
- jsFiles: getJsFiles(toInclude, options.path),
- cssFiles: getCssFiles(toInclude, options.path),
- })
-
- // Write file using fs
- // Build directory if it doesn't exist
- var outPutPath = options.outPutPath ? options.outPutPath : compiler.options.output.path
-
- mkOutputDir(path.resolve(outPutPath))
- fs.writeFileSync(path.join(outPutPath, options.phpFileName + '.php'), out)
-
- return compilation
- })
-}
-
-module.exports = PhpOutputPlugin
diff --git a/src/scss/abstract/_f-context-align.scss b/src/scss/abstract/_f-context-align.scss
index 503d2ca7..d4f1c734 100644
--- a/src/scss/abstract/_f-context-align.scss
+++ b/src/scss/abstract/_f-context-align.scss
@@ -12,7 +12,7 @@
* ... your css
* }
*
- * return for editor-style.scss :
+ * return for editor.scss :
* [data-align="wide"] > .block {
* ... your css
* }
@@ -29,7 +29,7 @@ $function-context-align-last-value: "";
} @else {
$function-context-align-last-value: $value !global;
- @if ($entry-file-name == "editor-style") {
+ @if ($entry-file-name == "editor") {
@return "[data-align=\"" + $value + "\"]" + $suffix;
}
}
diff --git a/src/scss/abstract/_f-context-selector.scss b/src/scss/abstract/_f-context-selector.scss
index 0eb8bfda..b53b71f6 100644
--- a/src/scss/abstract/_f-context-selector.scss
+++ b/src/scss/abstract/_f-context-selector.scss
@@ -12,7 +12,7 @@
* ... your css
* }
*
- * return for editor-style.scss :
+ * return for editor.scss :
* #editor .block {
* ... your css
* }
@@ -25,13 +25,13 @@
* ... your css
* }
*
- * the variable $entry-file-name is defined in style.scss and editor-style.scss
+ * the variable $entry-file-name is defined in style.scss and editor.scss
*/
@function context-selector($default: "", $editor: "", $selector: "") {
$full-selector: "";
- @if ($entry-file-name == "editor-style") {
+ @if ($entry-file-name == "editor") {
$full-selector: $editor + $selector;
} @else {
$full-selector: $default + $selector;
diff --git a/src/scss/abstract/_index.scss b/src/scss/abstract/_index.scss
index fb7dd0f0..549d483c 100644
--- a/src/scss/abstract/_index.scss
+++ b/src/scss/abstract/_index.scss
@@ -23,7 +23,7 @@
@import "./m-clearfix";
@import "./m-container";
@import "./m-declare-font-face";
-@import "./m-editor-style-only";
+@import "./m-editor-only";
@import "./m-flex-grid-container";
@import "./m-hardware";
@import "./m-hover";
diff --git a/src/scss/abstract/_m-editor-only.scss b/src/scss/abstract/_m-editor-only.scss
new file mode 100644
index 00000000..e4a6cec1
--- /dev/null
+++ b/src/scss/abstract/_m-editor-only.scss
@@ -0,0 +1,17 @@
+/**
+ * Editor style only
+ *
+ * Style inside the mixin while be writed only for editor.scss
+ *
+ * @include editor-only {
+ * ... css only for the gutenberg editor
+ * }
+ *
+ * the variable $entry-file-name is defined in style.scss and editor.scss
+ */
+
+@mixin editor-only {
+ @if ($entry-file-name == "editor") {
+ @content;
+ }
+}
diff --git a/src/scss/abstract/_m-editor-style-only.scss b/src/scss/abstract/_m-editor-style-only.scss
deleted file mode 100644
index 8c0f71b3..00000000
--- a/src/scss/abstract/_m-editor-style-only.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Editor style only
- *
- * Style inside the mixin while be writed only for editor-style.scss
- *
- * @include editor-style-only {
- * ... css only for the gutenberg editor
- * }
- *
- * the variable $entry-file-name is defined in style.scss and editor-style.scss
- */
-
-@mixin editor-style-only {
- @if ($entry-file-name == "editor-style") {
- @content;
- }
-}
diff --git a/src/scss/abstract/_m-style-only.scss b/src/scss/abstract/_m-style-only.scss
index 9ebbdc4c..1ff114f4 100644
--- a/src/scss/abstract/_m-style-only.scss
+++ b/src/scss/abstract/_m-style-only.scss
@@ -7,7 +7,7 @@
* ... css only for the front office
* }
*
- * the variable $entry-file-name is defined in style.scss and editor-style.scss
+ * the variable $entry-file-name is defined in style.scss and editor.scss
*/
@mixin style-only {
diff --git a/src/scss/base/_fonts.scss b/src/scss/base/_fonts.scss
index 94d9529a..49615d04 100644
--- a/src/scss/base/_fonts.scss
+++ b/src/scss/base/_fonts.scss
@@ -2,6 +2,6 @@
// Use this script to add external ressource like typekit: https://github.com/swissspidy/local-webfont
// example: npx local-webfont https://use.typekit.net/bjc8obi.css src/scss/abstract/temp_to_copy_paste_delete.css swap
-@include declare-font-face("Roboto", "./fonts/roboto-v15-latin/roboto-v15-latin-regular");
-@include declare-font-face("Roboto", "./fonts/roboto-v15-latin/roboto-v15-latin-500", 500);
-@include declare-font-face("Roboto", "./fonts/roboto-v15-latin/roboto-v15-latin-700", bold);
+@include declare-font-face("Roboto", "../fonts/roboto-v15-latin/roboto-v15-latin-regular");
+@include declare-font-face("Roboto", "../fonts/roboto-v15-latin/roboto-v15-latin-500", 500);
+@include declare-font-face("Roboto", "../fonts/roboto-v15-latin/roboto-v15-latin-700", bold);
diff --git a/src/scss/editor-style.scss b/src/scss/editor.scss
similarity index 96%
rename from src/scss/editor-style.scss
rename to src/scss/editor.scss
index caf34b95..9e827cef 100644
--- a/src/scss/editor-style.scss
+++ b/src/scss/editor.scss
@@ -1,4 +1,4 @@
-$entry-file-name: "editor-style";
+$entry-file-name: "editor";
// Abstract
diff --git a/src/templates/00-buttons.php b/src/templates/00-buttons.php
deleted file mode 100644
index c6c1b5a3..00000000
--- a/src/templates/00-buttons.php
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/templates/00-cards.php b/src/templates/00-cards.php
deleted file mode 100644
index 523aa96f..00000000
--- a/src/templates/00-cards.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
Cards
-
-
Vertical
-
- 'card', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
- 'card card--reverse', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
-
Horizontal
- 'card card--row', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
- 'card card--row card--reverse', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus. Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
Horizontal Centered
- 'card card--row card--center', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
- 'card card--row card--center card--reverse', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
-
-
\ No newline at end of file
diff --git a/src/templates/01-home.php b/src/templates/01-home.php
deleted file mode 100755
index 921d175f..00000000
--- a/src/templates/01-home.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- 'Welcome to the BFF')); ?>
-
-
This a starter theme so it's empty. Minimum pages are listed in the menu above. It's a base that you have to custom on your need.
-
You can use Composer JS in order to add well known components (html, css or js) like comments, widgets, plugins etc.
-
đĻ Happy Coding ! đĻ
-
-
-
-
-
diff --git a/src/templates/02-single-default.php b/src/templates/02-single-default.php
deleted file mode 100755
index 429d5295..00000000
--- a/src/templates/02-single-default.php
+++ /dev/null
@@ -1,1034 +0,0 @@
-
-
-
-
- 'Single Default', 'heroExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
-
Donec id elit non mi porta gravida at eget metus. Cum sociis natoque penatibus et magnis dis parturient
- montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla.
-
-
-
-
-
-
-
-
-
-
-
-
Heading One
-
-
-
-
Heading Two
-
-
-
-
Heading Three
-
-
-
-
Heading Four
-
-
-
-
Heading Five
-
-
-
-
Heading Six
-
-
-
-
-
-
-
-
Paragraph as Heading
-
-
-
-
Paragraph as H2
-
-
-
-
Using text settings size âHugeâ
-
-
-
-
Paragraph as H3
-
-
-
-
Using text settings size âLargeâ
-
-
-
-
Paragraph as H4
-
-
-
-
Using text settings size âMediumâ
-
-
-
-
-
-
-
-
Ordered List
-
-
-
-
- Nullam id dolor id nibh ultricies vehicula ut id elit.
- Donec ullamcorper nulla non metus auctor fringilla.
-
- Condimentum euismod aenean.
- Purus commodo ridiculus.
- Nibh commodo vestibulum.
-
-
- Cras justo odio, dapibus ac facilisis in.
-
-
-
-
-
-
-
-
-
Unordered List
-
-
-
-
- Nullam id dolor id nibh ultricies vehicula ut id elit.
- Donec ullamcorper nulla non metus auctor fringilla.
-
- Nibh commodo vestibulum.
- Aenean eu leo quam.
- Pellentesque ornare sem lacinia.
-
-
- Cras justo odio, dapibus ac facilisis in.
-
-
-
-
-
-
-
-
-
Verse
-
-
-
-
This is an example of the core Gutenberg verse block.
-
-
-
-
A block for haiku? Why not? Blocks for all the things!
-
-
-
-
Separator
-
-
-
-
Here are examples of the three separator styles of the core Gutenberg separator block.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Table
-
-
-
-
Here is an example of the core Gutenberg table block.
-
-
-
-
-
-
-
- Employee
- Salary
- Position
- Annoying Column for Mobile
-
-
- Jane Doe
- $100k
- CEO
- Lorem ipsum dolor sit amet.
-
-
- John Doe
- $100k
- CTO
- Lorem ipsum dolor sit amet.
-
-
- Jane Bloggs
- $100k
- Engineering
- Lorem ipsum dolor sit amet.
-
-
- Fred Bloggs
- $100k
- Marketing Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam delectus velit aperiam fugit modi harum, accusamus eos aliquam provident adipisci?
- Lorem ipsum dolor sit amet.
-
-
-
-
-
-
-
-
-
-
-
-
Latest Posts, List View
-
-
-
-
Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras justo odio, dapibus ac facilisis
- in, egestas eget quam.
-
-
-
-
-
-
Latest Posts, Grid View
-
-
-
-
And now for the Grid View. The Latest Posts block also displays at wide and full width alignments, so be
- sure to check those styles as well.
-
-
-
-
-
-
-
-
-
-
Blockquote
-
-
-
-
Nulla vitae elit libero, a pharetra augue. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
- Maecenas sed diam eget risus varius blandit sit amet non magna sed diam ed diam eget risus varius eget.
-
-
-
-
-
- Donec sed odio dui. Maecenas faucibus mollis interdum. Duis mollis, est non commodo luctus, nisi erat
- porttitor ligula, eget lacinia odio.
- With two paragraph
Rich Tabor
-
-
-
-
-
Nulla vitae elit libero, a pharetra augue. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
- Maecenas sed diam eget risus varius blandit sit amet non magna sed diam ed diam eget risus varius eget.
-
-
-
-
-
-
-
-
-
Alternate Blockquote
-
-
-
-
The alternate block quote style can be tarageted using the .wp-block-quote.is-large . CSS
- selector. Nulla vitae elit libero, a pharetra augue. Morbi leo risus, porta ac consectetur ac,
- vestibulum at eros.
-
-
-
-
- Donec sed odio dui. Maecenas faucibus mollis interdum. Duis mollis, est non commodo luctus, nisi erat
- porttitor ligula, eget lacinia odio sem nec elit.
Rich Tabor
-
-
-
-
-
Nulla vitae elit libero, a pharetra augue. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
- Maecenas sed diam eget risus varius blandit sit amet non magna sed diam ed diam eget risus varius eget.
-
-
-
-
-
-
-
-
-
Audio
-
-
-
-
Donec sed odio dui. Aenean lacinia bibendum nulla sed consectetur. Nullam id dolor id nibh ultricies
- vehicula ut id elit. Center aligned :
-
-
-
-
- An example of an Audio Block caption
-
-
-
-
-
Curabitur blandit tempus porttitor. Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod.
- Curabitur blandit tempus porttitor.
-
-
-
-
-
-
-
-
Buttons
-
-
-
-
Donec sed odio dui. Aenean lacinia bibendum nulla sed consectetur. Nullam id dolor id nibh ultricies
- vehicula ut id elit. Center aligned :
-
-
-
-
-
-
-
-
-
-
-
-
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante
- venenatis dapibus posuere velit aliquet.
-
-
-
-
-
-
-
-
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante
- venenatis dapibus posuere velit aliquet.
-
-
-
-
-
-
-
-
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante
- venenatis dapibus posuere velit aliquet.
-
-
-
-
-
-
-
-
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante
- venenatis dapibus posuere velit aliquet. Donec ullamcorper nulla non metus auctor fringilla. Maecenas
- sed diam eget risus varius.
-
-
-
-
-
-
-
-
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante
- venenatis dapibus posuere velit aliquet. Donec ullamcorper nulla non metus auctor fringilla. Maecenas
- sed diam eget risus varius.
-
-
-
-
-
-
-
-
-
-
-
-
Categories
-
-
-
-
-
-
-
-
-
-
Archives
-
-
-
-
-
-
-
-
-
-
Columns
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
- sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque
- ornare sem lacinia quam venenatis vestibulum. Donec ullamcorper nulla non metus auctor
- fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
- Curabitur blandit tempus porttitor.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
- sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque
- ornare sem lacinia quam venenatis vestibulum. Donec ullamcorper nulla non metus auctor
- fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
- Curabitur blandit tempus porttitor.
-
-
-
-
-
-
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
- sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque
- ornare sem lacinia quam venenatis vestibulum.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
- sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque
- ornare sem lacinia quam venenatis vestibulum.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
- sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque
- ornare sem lacinia quam venenatis vestibulum.
-
-
-
-
-
-
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condim entum nibh.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condim entum nibh.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condim entum nibh.
-
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condim entum nibh.
-
-
-
-
-
-
-
-
-
-
Pull Quotes
-
-
-
-
Here is an example of the core pull quote block, set to display centered. Nulla vitae elit libero, a
- pharetra augue. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
-
-
-
-
-
- Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere est at
- lobortis.
Rich Tabor, ThemeBeans.com
-
-
-
-
-
-
Wide aligned
-
-
-
-
Here is an example of the core pull quote block, set to display with the wide-aligned attribute, if the
- theme allows it. Nulla vitae elit libero, a pharetra augue. Morbi leo risus, porta ac consectetur ac,
- vestibulum at eros.
-
-
-
-
-
- Here we have a left-aligned pullquote.
Rich Tabor
-
-
-
-
-
-
Donec id elit non mi porta gravida at eget metus. Nullam quis risus eget urna mollis ornare vel eu leo.
- Cras justo odio, dapibus ac facilisis in, egestas eget quam. Integer posuere erat a ante venenatis
- dapibus posuere velit aliquet. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula
- porta felis euismod semper.
-
-
-
-
-
- Here we have a right-aligned pullquote.
Rich Tabor
-
-
-
-
-
-
Donec ullamcorper nulla non metus auctor fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia
- quam venenatis vestibulum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
- ridiculus mus. Etiam porta sem malesuada magna mollis euismod. Morbi leo risus, porta ac consectetur ac,
- vestibulum at eros.
-
-
-
-
-
-
-
-
Image Block
-
-
-
-
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Maecenas
- faucibus mollis interdum.
-
-
-
-
Image Align full
-
-
-
-
-
-
-
-
-
-
-
-
Image Align Wide
-
-
-
-
- And an image with a caption
-
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit
- amet risus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec
- elit.
-
-
-
-
-
-
-
-
-
-
Left aligned: dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
- fermentum massa justo sit amet risus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
- vestibulum.
-
-
-
-
-
- This one is captioned
-
-
-
-
-
-
Nullam quis risus eget urna mollis ornare vel eu leo. Praesent commodo cursus magna, vel scelerisque nisl
- consectetur et. Maecenas faucibus mollis interdum. Vestibulum id ligula porta felis euismod semper.
- Nullam quis risus.
-
-
-
-
-
-
-
-
Video Block
-
-
-
-
Lets check out the positioning and styling of the video core block. We will check the wide and full
- alignments too.
-
-
-
-
-
- VIDEO
-
-
-
-
-
-
Cover Image Block
-
-
-
-
Check out the positioning and styling of the cover image core block. We will check the wide and full
- alignments, as well as left/right.
-
-
-
-
-
-
Awesome Cover Block
-
-
-
-
Align on left
-
-
-
-
-
-
Left aligned: dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
- fermentum massa justo sit amet risus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
- vestibulum. Etiam porta sem malesuada magna mollis euismod. Aenean lacinia bibendum nulla sed
- consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
-
-
-
-
-
-
Awesome Cover Block
-
-
-
-
Align on right
-
-
-
-
-
-
Right aligned: scelerisque nisl consectetur et. Nulla vitae elit libero, a pharetra
- augue. Nullam id dolor id nibh ultricies vehicula ut id elit.
-
-
-
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit
- amet risus. Nullam id dolor id nibh ultricies vehicula ut id elit. Vel scelerisque nisl consectetur et.
- Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.
- īģŋCenter aligned:
-
-
-
-
-
-
Awesome Cover Block
-
-
-
-
Align center !
-
-
-
-
-
-
-
-
-
-
Gallery Blocks
-
-
-
-
Let us check out the positioning and styling of the gallery blocks.
-
-
-
-
Two Column Gallery
-
-
-
-
Below we have a Gallery Block inserted with two columns and two images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Three Column
-
-
-
-
Below we have a Gallery Block inserted with three columns and three images.
-
-
-
-
-
-
-
-
-
-
Four Column
-
-
-
-
Below we have a Gallery Block inserted with four columns and four images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Five Column
-
-
-
-
Below we have a Gallery Block inserted with five columns and five images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Four Column, Five Images
-
-
-
-
Let us switch things up a bit. Now we have a Gallery Block inserted with four columns and five images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Three Column, Five Images
-
-
-
-
Now we have a Gallery Block inserted with three columns and five images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Below you will find a Gallery Block inserted with two columns and five images.
-
-
-
-
Two Column, Five Images
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Three Column, Four Images
-
-
-
-
Below you will find a Gallery Block inserted with three columns and four images.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/templates/03-archive-default.php b/src/templates/03-archive-default.php
deleted file mode 100755
index 0f9e7414..00000000
--- a/src/templates/03-archive-default.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- 'Archive Default', 'heroExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
Archive list
-
-
-
- 'card card--row card--center', 'cardTitle' => 'Card Title', 'cardExcerpt' => 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod ex ad porro harum nemo assumenda enim nam, similique temporibus! Aliquid unde, reiciendis nesciunt asperiores veritatis tenetur eum! Omnis, neque natus.')); ?>
-
-
-
-
-
-
diff --git a/src/templates/04-page-404.php b/src/templates/04-page-404.php
deleted file mode 100755
index 8eecc17e..00000000
--- a/src/templates/04-page-404.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
Erreur 404
-
- DÊsolÊ mais la page que vous recherchez n'existe plus.
- Vous pouvez effectuer une recherche :
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/templates/blocks/_acf-example.php b/src/templates/blocks/_acf-example.php
deleted file mode 100755
index c18223f3..00000000
--- a/src/templates/blocks/_acf-example.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/blocks/_gutenberg-example.php b/src/templates/blocks/_gutenberg-example.php
deleted file mode 100755
index c18223f3..00000000
--- a/src/templates/blocks/_gutenberg-example.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/components/checkbox.php b/src/templates/components/checkbox.php
deleted file mode 100755
index 827685e9..00000000
--- a/src/templates/components/checkbox.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/components/radio.php b/src/templates/components/radio.php
deleted file mode 100755
index 803cd694..00000000
--- a/src/templates/components/radio.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/components/searchform.php b/src/templates/components/searchform.php
deleted file mode 100755
index c18223f3..00000000
--- a/src/templates/components/searchform.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/functions/_init.php b/src/templates/functions/_init.php
deleted file mode 100755
index cd12159e..00000000
--- a/src/templates/functions/_init.php
+++ /dev/null
@@ -1,47 +0,0 @@
-console.error('YOU MUST INSTALL ADVANCED RESPONSIVE IMAGES : https://github.com/asadowski10/advanced-responsive-images');";
- return false;
- }
- require $file_path;
-}
-
-// All inc files to include.
-$modes = array(
- 'mode',
- 'lazysize',
- 'lazysize-front',
- 'picture',
- 'picture-lazyload',
- 'picture-lazyload-front',
- 'srcset',
- 'srcset-front',
-);
-
-foreach ( $modes as $file ) {
- require dirname( __FILE__ ) . '/../../../../plugins/advanced-responsive-images/classes/modes/' . $file . '.php';
-}
\ No newline at end of file
diff --git a/src/templates/functions/compat.php b/src/templates/functions/compat.php
deleted file mode 100755
index 81c34a2c..00000000
--- a/src/templates/functions/compat.php
+++ /dev/null
@@ -1,33 +0,0 @@
-get_location( $attr['data-location'] );
- if ( empty( $location_array ) ) {
- return 'No location found in source file';
- }
-
- /**
- * @var $mode \ARI\Modes
- */
- $mode = \ARI\Modes::get_instance();
- try {
- $_mode_instance = $mode->get_mode( $attr );
- if ( false === $_mode_instance ) {
- return 'No mode found';
- }
-
- $_mode_instance->set_attachment_id( $post_id );
- $_mode_instance->set_img_name( $size_or_img_name );
- $_mode_instance->render_image();
- } catch ( \Exception $e ) {
- $args['data-location'] = $e->getMessage();
- }
-}
\ No newline at end of file
diff --git a/src/templates/functions/url.php b/src/templates/functions/url.php
deleted file mode 100755
index 128e0c8d..00000000
--- a/src/templates/functions/url.php
+++ /dev/null
@@ -1,47 +0,0 @@
- $key ) {
- array_splice( $address, $key - ( $keypos * 2 + 1 ), 2 );
- }
-
- $address = implode( '/', $address );
- $address = str_replace( './', '', $address );
-
- return $address;
-}
diff --git a/src/templates/functions/vendor/timthumb-config.php b/src/templates/functions/vendor/timthumb-config.php
deleted file mode 100755
index a672802e..00000000
--- a/src/templates/functions/vendor/timthumb-config.php
+++ /dev/null
@@ -1,5 +0,0 @@
- /dev/null 2>&1 &
- Then set WEBSHOT_XVFB_RUNNING = true below. This will save your server having to fire off a new Xvfb server and shut it down every time a new shot is generated.
- You will need to take responsibility for keeping Xvfb running in case it crashes. (It seems pretty stable)
- You will also need to take responsibility for server security if you're running Xvfb as root.
-
-
-*/
-if(! defined('WEBSHOT_ENABLED') ) define ('WEBSHOT_ENABLED', false); //Beta feature. Adding webshot=1 to your query string will cause the script to return a browser screenshot rather than try to fetch an image.
-if(! defined('WEBSHOT_CUTYCAPT') ) define ('WEBSHOT_CUTYCAPT', '/usr/local/bin/CutyCapt'); //The path to CutyCapt.
-if(! defined('WEBSHOT_XVFB') ) define ('WEBSHOT_XVFB', '/usr/bin/xvfb-run'); //The path to the Xvfb server
-if(! defined('WEBSHOT_SCREEN_X') ) define ('WEBSHOT_SCREEN_X', '1024'); //1024 works ok
-if(! defined('WEBSHOT_SCREEN_Y') ) define ('WEBSHOT_SCREEN_Y', '768'); //768 works ok
-if(! defined('WEBSHOT_COLOR_DEPTH') ) define ('WEBSHOT_COLOR_DEPTH', '24'); //I haven't tested anything besides 24
-if(! defined('WEBSHOT_IMAGE_FORMAT') ) define ('WEBSHOT_IMAGE_FORMAT', 'png'); //png is about 2.5 times the size of jpg but is a LOT better quality
-if(! defined('WEBSHOT_TIMEOUT') ) define ('WEBSHOT_TIMEOUT', '20'); //Seconds to wait for a webshot
-if(! defined('WEBSHOT_USER_AGENT') ) define ('WEBSHOT_USER_AGENT', "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18"); //I hate to do this, but a non-browser robot user agent might not show what humans see. So we pretend to be Firefox
-if(! defined('WEBSHOT_JAVASCRIPT_ON') ) define ('WEBSHOT_JAVASCRIPT_ON', true); //Setting to false might give you a slight speedup and block ads. But it could cause other issues.
-if(! defined('WEBSHOT_JAVA_ON') ) define ('WEBSHOT_JAVA_ON', false); //Have only tested this as fase
-if(! defined('WEBSHOT_PLUGINS_ON') ) define ('WEBSHOT_PLUGINS_ON', true); //Enable flash and other plugins
-if(! defined('WEBSHOT_PROXY') ) define ('WEBSHOT_PROXY', ''); //In case you're behind a proxy server.
-if(! defined('WEBSHOT_XVFB_RUNNING') ) define ('WEBSHOT_XVFB_RUNNING', false); //ADVANCED: Enable this if you've got Xvfb running in the background.
-
-
-// If ALLOW_EXTERNAL is true and ALLOW_ALL_EXTERNAL_SITES is false, then external images will only be fetched from these domains and their subdomains.
-if(! isset($ALLOWED_SITES)){
- $ALLOWED_SITES = array (
- 'flickr.com',
- 'staticflickr.com',
- 'picasa.com',
- 'img.youtube.com',
- 'upload.wikimedia.org',
- 'photobucket.com',
- 'imgur.com',
- 'imageshack.us',
- 'tinypic.com',
- );
-}
-// -------------------------------------------------------------
-// -------------- STOP EDITING CONFIGURATION HERE --------------
-// -------------------------------------------------------------
-
-timthumb::start();
-
-class timthumb {
- protected $src = "";
- protected $is404 = false;
- protected $docRoot = "";
- protected $lastURLError = false;
- protected $localImage = "";
- protected $localImageMTime = 0;
- protected $url = false;
- protected $myHost = "";
- protected $isURL = false;
- protected $cachefile = '';
- protected $errors = array();
- protected $toDeletes = array();
- protected $cacheDirectory = '';
- protected $startTime = 0;
- protected $lastBenchTime = 0;
- protected $cropTop = false;
- protected $salt = "";
- protected $fileCacheVersion = 1; //Generally if timthumb.php is modifed (upgraded) then the salt changes and all cache files are recreated. This is a backup mechanism to force regen.
- protected $filePrependSecurityBlock = "handleErrors();
- $tim->securityChecks();
- if($tim->tryBrowserCache()){
- exit(0);
- }
- $tim->handleErrors();
- if(FILE_CACHE_ENABLED && $tim->tryServerCache()){
- exit(0);
- }
- $tim->handleErrors();
- $tim->run();
- $tim->handleErrors();
- exit(0);
- }
- public function __construct(){
- global $ALLOWED_SITES;
- $this->startTime = microtime(true);
- date_default_timezone_set('UTC');
- $this->debug(1, "Starting new request from " . $this->getIP() . " to " . $_SERVER['REQUEST_URI']);
- $this->calcDocRoot();
- //On windows systems I'm assuming fileinode returns an empty string or a number that doesn't change. Check this.
- $this->salt = @filemtime(__FILE__) . '-' . @fileinode(__FILE__);
- $this->debug(3, "Salt is: " . $this->salt);
- if(FILE_CACHE_DIRECTORY){
- if(! is_dir(FILE_CACHE_DIRECTORY)){
- @mkdir(FILE_CACHE_DIRECTORY);
- if(! is_dir(FILE_CACHE_DIRECTORY)){
- $this->error("Could not create the file cache directory.");
- return false;
- }
- }
- $this->cacheDirectory = FILE_CACHE_DIRECTORY;
- if (!touch($this->cacheDirectory . '/index.html')) {
- $this->error("Could not create the index.html file - to fix this create an empty file named index.html file in the cache directory.");
- }
- } else {
- $this->cacheDirectory = sys_get_temp_dir();
- }
- //Clean the cache before we do anything because we don't want the first visitor after FILE_CACHE_TIME_BETWEEN_CLEANS expires to get a stale image.
- $this->cleanCache();
-
- $this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']);
- $this->src = $this->param('src');
- $this->url = parse_url($this->src);
- $this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);
-
- if(strlen($this->src) <= 3){
- $this->error("No image specified");
- return false;
- }
- if(BLOCK_EXTERNAL_LEECHERS && array_key_exists('HTTP_REFERER', $_SERVER) && (! preg_match('/^https?:\/\/(?:www\.)?' . $this->myHost . '(?:$|\/)/i', $_SERVER['HTTP_REFERER']))){
- // base64 encoded red image that says 'no hotlinkers'
- // nothing to worry about! :)
- $imgData = base64_decode("R0lGODlhUAAMAIAAAP8AAP///yH5BAAHAP8ALAAAAABQAAwAAAJpjI+py+0Po5y0OgAMjjv01YUZ\nOGplhWXfNa6JCLnWkXplrcBmW+spbwvaVr/cDyg7IoFC2KbYVC2NQ5MQ4ZNao9Ynzjl9ScNYpneb\nDULB3RP6JuPuaGfuuV4fumf8PuvqFyhYtjdoeFgAADs=");
- header('Content-Type: image/gif');
- header('Content-Length: ' . strlen($imgData));
- header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
- header("Pragma: no-cache");
- header('Expires: ' . gmdate ('D, d M Y H:i:s', time()));
- echo $imgData;
- return false;
- exit(0);
- }
- if(preg_match('/^https?:\/\/[^\/]+/i', $this->src)){
- $this->debug(2, "Is a request for an external URL: " . $this->src);
- $this->isURL = true;
- } else {
- $this->debug(2, "Is a request for an internal file: " . $this->src);
- }
- if($this->isURL && (! ALLOW_EXTERNAL)){
- $this->error("You are not allowed to fetch images from an external website.");
- return false;
- }
- if($this->isURL){
- if(ALLOW_ALL_EXTERNAL_SITES){
- $this->debug(2, "Fetching from all external sites is enabled.");
- } else {
- $this->debug(2, "Fetching only from selected external sites is enabled.");
- $allowed = false;
- foreach($ALLOWED_SITES as $site){
- if ((strtolower(substr($this->url['host'],-strlen($site)-1)) === strtolower(".$site")) || (strtolower($this->url['host'])===strtolower($site))) {
- $this->debug(3, "URL hostname {$this->url['host']} matches $site so allowing.");
- $allowed = true;
- }
- }
- if(! $allowed){
- return $this->error("You may not fetch images from that site. To enable this site in timthumb, you can either add it to \$ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs.");
- }
- }
- }
-
- $cachePrefix = ($this->isURL ? '_ext_' : '_int_');
- if($this->isURL){
- $arr = explode('&', $_SERVER ['QUERY_STRING']);
- asort($arr);
- $this->cachefile = $this->cacheDirectory . '/' . FILE_CACHE_PREFIX . $cachePrefix . md5($this->salt . implode('', $arr) . $this->fileCacheVersion) . FILE_CACHE_SUFFIX;
- } else {
- $this->localImage = $this->getLocalImagePath($this->src);
- if(! $this->localImage){
- $this->debug(1, "Could not find the local image: {$this->localImage}");
- $this->error("Could not find the internal image you specified.");
- $this->set404();
- return false;
- }
- $this->debug(1, "Local image path is {$this->localImage}");
- $this->localImageMTime = @filemtime($this->localImage);
- //We include the mtime of the local file in case in changes on disk.
- $this->cachefile = $this->cacheDirectory . '/' . FILE_CACHE_PREFIX . $cachePrefix . md5($this->salt . $this->localImageMTime . $_SERVER ['QUERY_STRING'] . $this->fileCacheVersion) . FILE_CACHE_SUFFIX;
- }
- $this->debug(2, "Cache file is: " . $this->cachefile);
-
- return true;
- }
- public function __destruct(){
- foreach($this->toDeletes as $del){
- $this->debug(2, "Deleting temp file $del");
- @unlink($del);
- }
- }
- public function run(){
- if($this->isURL){
- if(! ALLOW_EXTERNAL){
- $this->debug(1, "Got a request for an external image but ALLOW_EXTERNAL is disabled so returning error msg.");
- $this->error("You are not allowed to fetch images from an external website.");
- return false;
- }
- $this->debug(3, "Got request for external image. Starting serveExternalImage.");
- if($this->param('webshot')){
- if(WEBSHOT_ENABLED){
- $this->debug(3, "webshot param is set, so we're going to take a webshot.");
- $this->serveWebshot();
- } else {
- $this->error("You added the webshot parameter but webshots are disabled on this server. You need to set WEBSHOT_ENABLED == true to enable webshots.");
- }
- } else {
- $this->debug(3, "webshot is NOT set so we're going to try to fetch a regular image.");
- $this->serveExternalImage();
-
- }
- } else {
- $this->debug(3, "Got request for internal image. Starting serveInternalImage()");
- $this->serveInternalImage();
- }
- return true;
- }
- protected function handleErrors(){
- if($this->haveErrors()){
- if(NOT_FOUND_IMAGE && $this->is404()){
- if($this->serveImg(NOT_FOUND_IMAGE)){
- exit(0);
- } else {
- $this->error("Additionally, the 404 image that is configured could not be found or there was an error serving it.");
- }
- }
- if(ERROR_IMAGE){
- if($this->serveImg(ERROR_IMAGE)){
- exit(0);
- } else {
- $this->error("Additionally, the error image that is configured could not be found or there was an error serving it.");
- }
- }
- $this->serveErrors();
- exit(0);
- }
- return false;
- }
- protected function tryBrowserCache(){
- if(BROWSER_CACHE_DISABLE){ $this->debug(3, "Browser caching is disabled"); return false; }
- if(!empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ){
- $this->debug(3, "Got a conditional get");
- $mtime = false;
- //We've already checked if the real file exists in the constructor
- if(! is_file($this->cachefile)){
- //If we don't have something cached, regenerate the cached image.
- return false;
- }
- if($this->localImageMTime){
- $mtime = $this->localImageMTime;
- $this->debug(3, "Local real file's modification time is $mtime");
- } else if(is_file($this->cachefile)){ //If it's not a local request then use the mtime of the cached file to determine the 304
- $mtime = @filemtime($this->cachefile);
- $this->debug(3, "Cached file's modification time is $mtime");
- }
- if(! $mtime){ return false; }
-
- $iftime = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
- $this->debug(3, "The conditional get's if-modified-since unixtime is $iftime");
- if($iftime < 1){
- $this->debug(3, "Got an invalid conditional get modified since time. Returning false.");
- return false;
- }
- if($iftime < $mtime){ //Real file or cache file has been modified since last request, so force refetch.
- $this->debug(3, "File has been modified since last fetch.");
- return false;
- } else { //Otherwise serve a 304
- $this->debug(3, "File has not been modified since last get, so serving a 304.");
- header ($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified');
- $this->debug(1, "Returning 304 not modified");
- return true;
- }
- }
- return false;
- }
- protected function tryServerCache(){
- $this->debug(3, "Trying server cache");
- if(file_exists($this->cachefile)){
- $this->debug(3, "Cachefile {$this->cachefile} exists");
- if($this->isURL){
- $this->debug(3, "This is an external request, so checking if the cachefile is empty which means the request failed previously.");
- if(filesize($this->cachefile) < 1){
- $this->debug(3, "Found an empty cachefile indicating a failed earlier request. Checking how old it is.");
- //Fetching error occured previously
- if(time() - @filemtime($this->cachefile) > WAIT_BETWEEN_FETCH_ERRORS){
- $this->debug(3, "File is older than " . WAIT_BETWEEN_FETCH_ERRORS . " seconds. Deleting and returning false so app can try and load file.");
- @unlink($this->cachefile);
- return false; //to indicate we didn't serve from cache and app should try and load
- } else {
- $this->debug(3, "Empty cachefile is still fresh so returning message saying we had an error fetching this image from remote host.");
- $this->set404();
- $this->error("An error occured fetching image.");
- return false;
- }
- }
- } else {
- $this->debug(3, "Trying to serve cachefile {$this->cachefile}");
- }
- if($this->serveCacheFile()){
- $this->debug(3, "Succesfully served cachefile {$this->cachefile}");
- return true;
- } else {
- $this->debug(3, "Failed to serve cachefile {$this->cachefile} - Deleting it from cache.");
- //Image serving failed. We can't retry at this point, but lets remove it from cache so the next request recreates it
- @unlink($this->cachefile);
- return true;
- }
- }
- }
- protected function error($err){
- $this->debug(3, "Adding error message: $err");
- $this->errors[] = $err;
- return false;
-
- }
- protected function haveErrors(){
- if(sizeof($this->errors) > 0){
- return true;
- }
- return false;
- }
- protected function serveErrors(){
- header ($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
- if ( ! DISPLAY_ERROR_MESSAGES ) {
- return;
- }
- $html = '';
- foreach($this->errors as $err){
- $html .= '' . htmlentities($err) . ' ';
- }
- $html .= ' ';
- echo 'A TimThumb error has occured The following error(s) occured: ' . $html . ' ';
- echo ' Query String : ' . htmlentities( $_SERVER['QUERY_STRING'], ENT_QUOTES );
- echo ' TimThumb version : ' . VERSION . '';
- }
- protected function serveInternalImage(){
- $this->debug(3, "Local image path is $this->localImage");
- if(! $this->localImage){
- $this->sanityFail("localImage not set after verifying it earlier in the code.");
- return false;
- }
- $fileSize = filesize($this->localImage);
- if($fileSize > MAX_FILE_SIZE){
- $this->error("The file you specified is greater than the maximum allowed file size.");
- return false;
- }
- if($fileSize <= 0){
- $this->error("The file you specified is <= 0 bytes.");
- return false;
- }
- $this->debug(3, "Calling processImageAndWriteToCache() for local image.");
- if($this->processImageAndWriteToCache($this->localImage)){
- $this->serveCacheFile();
- return true;
- } else {
- return false;
- }
- }
- protected function cleanCache(){
- if (FILE_CACHE_TIME_BETWEEN_CLEANS < 0) {
- return;
- }
- $this->debug(3, "cleanCache() called");
- $lastCleanFile = $this->cacheDirectory . '/timthumb_cacheLastCleanTime.touch';
-
- //If this is a new timthumb installation we need to create the file
- if(! is_file($lastCleanFile)){
- $this->debug(1, "File tracking last clean doesn't exist. Creating $lastCleanFile");
- if (!touch($lastCleanFile)) {
- $this->error("Could not create cache clean timestamp file.");
- }
- return;
- }
- if(@filemtime($lastCleanFile) < (time() - FILE_CACHE_TIME_BETWEEN_CLEANS) ){ //Cache was last cleaned more than 1 day ago
- $this->debug(1, "Cache was last cleaned more than " . FILE_CACHE_TIME_BETWEEN_CLEANS . " seconds ago. Cleaning now.");
- // Very slight race condition here, but worst case we'll have 2 or 3 servers cleaning the cache simultaneously once a day.
- if (!touch($lastCleanFile)) {
- $this->error("Could not create cache clean timestamp file.");
- }
- $files = glob($this->cacheDirectory . '/*' . FILE_CACHE_SUFFIX);
- if ($files) {
- $timeAgo = time() - FILE_CACHE_MAX_FILE_AGE;
- foreach($files as $file){
- if(@filemtime($file) < $timeAgo){
- $this->debug(3, "Deleting cache file $file older than max age: " . FILE_CACHE_MAX_FILE_AGE . " seconds");
- @unlink($file);
- }
- }
- }
- return true;
- } else {
- $this->debug(3, "Cache was cleaned less than " . FILE_CACHE_TIME_BETWEEN_CLEANS . " seconds ago so no cleaning needed.");
- }
- return false;
- }
- protected function processImageAndWriteToCache($localImage){
- $sData = getimagesize($localImage);
- $origType = $sData[2];
- $mimeType = $sData['mime'];
-
- $this->debug(3, "Mime type of image is $mimeType");
- if(! preg_match('/^image\/(?:gif|jpg|jpeg|png)$/i', $mimeType)){
- return $this->error("The image being resized is not a valid gif, jpg or png.");
- }
-
- if (!function_exists ('imagecreatetruecolor')) {
- return $this->error('GD Library Error: imagecreatetruecolor does not exist - please contact your webhost and ask them to install the GD library');
- }
-
- if (function_exists ('imagefilter') && defined ('IMG_FILTER_NEGATE')) {
- $imageFilters = array (
- 1 => array (IMG_FILTER_NEGATE, 0),
- 2 => array (IMG_FILTER_GRAYSCALE, 0),
- 3 => array (IMG_FILTER_BRIGHTNESS, 1),
- 4 => array (IMG_FILTER_CONTRAST, 1),
- 5 => array (IMG_FILTER_COLORIZE, 4),
- 6 => array (IMG_FILTER_EDGEDETECT, 0),
- 7 => array (IMG_FILTER_EMBOSS, 0),
- 8 => array (IMG_FILTER_GAUSSIAN_BLUR, 0),
- 9 => array (IMG_FILTER_SELECTIVE_BLUR, 0),
- 10 => array (IMG_FILTER_MEAN_REMOVAL, 0),
- 11 => array (IMG_FILTER_SMOOTH, 0),
- );
- }
-
- // get standard input properties
- $new_width = (int) abs ($this->param('w', 0));
- $new_height = (int) abs ($this->param('h', 0));
- $zoom_crop = (int) $this->param('zc', DEFAULT_ZC);
- $quality = (int) abs ($this->param('q', DEFAULT_Q));
- $align = $this->cropTop ? 't' : $this->param('a', 'c');
- $filters = $this->param('f', DEFAULT_F);
- $sharpen = (bool) $this->param('s', DEFAULT_S);
- $canvas_color = $this->param('cc', DEFAULT_CC);
- $canvas_trans = (bool) $this->param('ct', '1');
-
- // set default width and height if neither are set already
- if ($new_width == 0 && $new_height == 0) {
- $new_width = (int) DEFAULT_WIDTH;
- $new_height = (int) DEFAULT_HEIGHT;
- }
-
- // ensure size limits can not be abused
- $new_width = min ($new_width, MAX_WIDTH);
- $new_height = min ($new_height, MAX_HEIGHT);
-
- // set memory limit to be able to have enough space to resize larger images
- $this->setMemoryLimit();
-
- // open the existing image
- $image = $this->openImage ($mimeType, $localImage);
- if ($image === false) {
- return $this->error('Unable to open image.');
- }
-
- // Get original width and height
- $width = imagesx ($image);
- $height = imagesy ($image);
- $origin_x = 0;
- $origin_y = 0;
-
- // generate new w/h if not provided
- if ($new_width && !$new_height) {
- $new_height = floor ($height * ($new_width / $width));
- } else if ($new_height && !$new_width) {
- $new_width = floor ($width * ($new_height / $height));
- }
-
- // scale down and add borders
- if ($zoom_crop == 3) {
-
- $final_height = $height * ($new_width / $width);
-
- if ($final_height > $new_height) {
- $new_width = $width * ($new_height / $height);
- } else {
- $new_height = $final_height;
- }
-
- }
-
- // create a new true color image
- $canvas = imagecreatetruecolor ($new_width, $new_height);
- imagealphablending ($canvas, false);
-
- if (strlen($canvas_color) == 3) { //if is 3-char notation, edit string into 6-char notation
- $canvas_color = str_repeat(substr($canvas_color, 0, 1), 2) . str_repeat(substr($canvas_color, 1, 1), 2) . str_repeat(substr($canvas_color, 2, 1), 2);
- } else if (strlen($canvas_color) != 6) {
- $canvas_color = DEFAULT_CC; // on error return default canvas color
- }
-
- $canvas_color_R = hexdec (substr ($canvas_color, 0, 2));
- $canvas_color_G = hexdec (substr ($canvas_color, 2, 2));
- $canvas_color_B = hexdec (substr ($canvas_color, 4, 2));
-
- // Create a new transparent color for image
- // If is a png and PNG_IS_TRANSPARENT is false then remove the alpha transparency
- // (and if is set a canvas color show it in the background)
- if(preg_match('/^image\/png$/i', $mimeType) && !PNG_IS_TRANSPARENT && $canvas_trans){
- $color = imagecolorallocatealpha ($canvas, $canvas_color_R, $canvas_color_G, $canvas_color_B, 127);
- }else{
- $color = imagecolorallocatealpha ($canvas, $canvas_color_R, $canvas_color_G, $canvas_color_B, 0);
- }
-
-
- // Completely fill the background of the new image with allocated color.
- imagefill ($canvas, 0, 0, $color);
-
- // scale down and add borders
- if ($zoom_crop == 2) {
-
- $final_height = $height * ($new_width / $width);
-
- if ($final_height > $new_height) {
-
- $origin_x = $new_width / 2;
- $new_width = $width * ($new_height / $height);
- $origin_x = round ($origin_x - ($new_width / 2));
-
- } else {
-
- $origin_y = $new_height / 2;
- $new_height = $final_height;
- $origin_y = round ($origin_y - ($new_height / 2));
-
- }
-
- }
-
- // Restore transparency blending
- imagesavealpha ($canvas, true);
-
- if ($zoom_crop > 0) {
-
- $src_x = $src_y = 0;
- $src_w = $width;
- $src_h = $height;
-
- $cmp_x = $width / $new_width;
- $cmp_y = $height / $new_height;
-
- // calculate x or y coordinate and width or height of source
- if ($cmp_x > $cmp_y) {
-
- $src_w = round ($width / $cmp_x * $cmp_y);
- $src_x = round (($width - ($width / $cmp_x * $cmp_y)) / 2);
-
- } else if ($cmp_y > $cmp_x) {
-
- $src_h = round ($height / $cmp_y * $cmp_x);
- $src_y = round (($height - ($height / $cmp_y * $cmp_x)) / 2);
-
- }
-
- // positional cropping!
- if ($align) {
- if (strpos ($align, 't') !== false) {
- $src_y = 0;
- }
- if (strpos ($align, 'b') !== false) {
- $src_y = $height - $src_h;
- }
- if (strpos ($align, 'l') !== false) {
- $src_x = 0;
- }
- if (strpos ($align, 'r') !== false) {
- $src_x = $width - $src_w;
- }
- }
-
- imagecopyresampled ($canvas, $image, $origin_x, $origin_y, $src_x, $src_y, $new_width, $new_height, $src_w, $src_h);
-
- } else {
-
- // copy and resize part of an image with resampling
- imagecopyresampled ($canvas, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
-
- }
-
- if ($filters != '' && function_exists ('imagefilter') && defined ('IMG_FILTER_NEGATE')) {
- // apply filters to image
- $filterList = explode ('|', $filters);
- foreach ($filterList as $fl) {
-
- $filterSettings = explode (',', $fl);
- if (isset ($imageFilters[$filterSettings[0]])) {
-
- for ($i = 0; $i < 4; $i ++) {
- if (!isset ($filterSettings[$i])) {
- $filterSettings[$i] = null;
- } else {
- $filterSettings[$i] = (int) $filterSettings[$i];
- }
- }
-
- switch ($imageFilters[$filterSettings[0]][1]) {
-
- case 1:
-
- imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1]);
- break;
-
- case 2:
-
- imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2]);
- break;
-
- case 3:
-
- imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3]);
- break;
-
- case 4:
-
- imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3], $filterSettings[4]);
- break;
-
- default:
-
- imagefilter ($canvas, $imageFilters[$filterSettings[0]][0]);
- break;
-
- }
- }
- }
- }
-
- // sharpen image
- if ($sharpen && function_exists ('imageconvolution')) {
-
- $sharpenMatrix = array (
- array (-1,-1,-1),
- array (-1,16,-1),
- array (-1,-1,-1),
- );
-
- $divisor = 8;
- $offset = 0;
-
- imageconvolution ($canvas, $sharpenMatrix, $divisor, $offset);
-
- }
- //Straight from Wordpress core code. Reduces filesize by up to 70% for PNG's
- if ( (IMAGETYPE_PNG == $origType || IMAGETYPE_GIF == $origType) && function_exists('imageistruecolor') && !imageistruecolor( $image ) && imagecolortransparent( $image ) > 0 ){
- imagetruecolortopalette( $canvas, false, imagecolorstotal( $image ) );
- }
-
- $imgType = "";
- $tempfile = tempnam($this->cacheDirectory, 'timthumb_tmpimg_');
- if(preg_match('/^image\/(?:jpg|jpeg)$/i', $mimeType)){
- $imgType = 'jpg';
- imagejpeg($canvas, $tempfile, $quality);
- } else if(preg_match('/^image\/png$/i', $mimeType)){
- $imgType = 'png';
- imagepng($canvas, $tempfile, floor($quality * 0.09));
- } else if(preg_match('/^image\/gif$/i', $mimeType)){
- $imgType = 'gif';
- imagegif($canvas, $tempfile);
- } else {
- return $this->sanityFail("Could not match mime type after verifying it previously.");
- }
-
- if($imgType == 'png' && OPTIPNG_ENABLED && OPTIPNG_PATH && @is_file(OPTIPNG_PATH)){
- $exec = OPTIPNG_PATH;
- $this->debug(3, "optipng'ing $tempfile");
- $presize = filesize($tempfile);
- $out = `$exec -o1 $tempfile`; //you can use up to -o7 but it really slows things down
- clearstatcache();
- $aftersize = filesize($tempfile);
- $sizeDrop = $presize - $aftersize;
- if($sizeDrop > 0){
- $this->debug(1, "optipng reduced size by $sizeDrop");
- } else if($sizeDrop < 0){
- $this->debug(1, "optipng increased size! Difference was: $sizeDrop");
- } else {
- $this->debug(1, "optipng did not change image size.");
- }
- } else if($imgType == 'png' && PNGCRUSH_ENABLED && PNGCRUSH_PATH && @is_file(PNGCRUSH_PATH)){
- $exec = PNGCRUSH_PATH;
- $tempfile2 = tempnam($this->cacheDirectory, 'timthumb_tmpimg_');
- $this->debug(3, "pngcrush'ing $tempfile to $tempfile2");
- $out = `$exec $tempfile $tempfile2`;
- $todel = "";
- if(is_file($tempfile2)){
- $sizeDrop = filesize($tempfile) - filesize($tempfile2);
- if($sizeDrop > 0){
- $this->debug(1, "pngcrush was succesful and gave a $sizeDrop byte size reduction");
- $todel = $tempfile;
- $tempfile = $tempfile2;
- } else {
- $this->debug(1, "pngcrush did not reduce file size. Difference was $sizeDrop bytes.");
- $todel = $tempfile2;
- }
- } else {
- $this->debug(3, "pngcrush failed with output: $out");
- $todel = $tempfile2;
- }
- @unlink($todel);
- }
-
- $this->debug(3, "Rewriting image with security header.");
- $tempfile4 = tempnam($this->cacheDirectory, 'timthumb_tmpimg_');
- $context = stream_context_create ();
- $fp = fopen($tempfile,'r',0,$context);
- file_put_contents($tempfile4, $this->filePrependSecurityBlock . $imgType . ' ?' . '>'); //6 extra bytes, first 3 being image type
- file_put_contents($tempfile4, $fp, FILE_APPEND);
- fclose($fp);
- @unlink($tempfile);
- $this->debug(3, "Locking and replacing cache file.");
- $lockFile = $this->cachefile . '.lock';
- $fh = fopen($lockFile, 'w');
- if(! $fh){
- return $this->error("Could not open the lockfile for writing an image.");
- }
- if(flock($fh, LOCK_EX)){
- @unlink($this->cachefile); //rename generally overwrites, but doing this in case of platform specific quirks. File might not exist yet.
- rename($tempfile4, $this->cachefile);
- flock($fh, LOCK_UN);
- fclose($fh);
- @unlink($lockFile);
- } else {
- fclose($fh);
- @unlink($lockFile);
- @unlink($tempfile4);
- return $this->error("Could not get a lock for writing.");
- }
- $this->debug(3, "Done image replace with security header. Cleaning up and running cleanCache()");
- imagedestroy($canvas);
- imagedestroy($image);
- return true;
- }
- protected function calcDocRoot(){
- $docRoot = @$_SERVER['DOCUMENT_ROOT'];
- if (defined('LOCAL_FILE_BASE_DIRECTORY')) {
- $docRoot = LOCAL_FILE_BASE_DIRECTORY;
- }
- if(!isset($docRoot)){
- $this->debug(3, "DOCUMENT_ROOT is not set. This is probably windows. Starting search 1.");
- if(isset($_SERVER['SCRIPT_FILENAME'])){
- $docRoot = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
- $this->debug(3, "Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot");
- }
- }
- if(!isset($docRoot)){
- $this->debug(3, "DOCUMENT_ROOT still is not set. Starting search 2.");
- if(isset($_SERVER['PATH_TRANSLATED'])){
- $docRoot = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
- $this->debug(3, "Generated docRoot using PATH_TRANSLATED and PHP_SELF as: $docRoot");
- }
- }
- if($docRoot && $_SERVER['DOCUMENT_ROOT'] != '/'){ $docRoot = preg_replace('/\/$/', '', $docRoot); }
- $this->debug(3, "Doc root is: " . $docRoot);
- $this->docRoot = $docRoot;
-
- }
- protected function getLocalImagePath($src){
- $src = ltrim($src, '/'); //strip off the leading '/'
- if(! $this->docRoot){
- $this->debug(3, "We have no document root set, so as a last resort, lets check if the image is in the current dir and serve that.");
- //We don't support serving images outside the current dir if we don't have a doc root for security reasons.
- $file = preg_replace('/^.*?([^\/\\\\]+)$/', '$1', $src); //strip off any path info and just leave the filename.
- if(is_file($file)){
- return $this->realpath($file);
- }
- return $this->error("Could not find your website document root and the file specified doesn't exist in timthumbs directory. We don't support serving files outside timthumb's directory without a document root for security reasons.");
- } else if ( ! is_dir( $this->docRoot ) ) {
- $this->error("Server path does not exist. Ensure variable \$_SERVER['DOCUMENT_ROOT'] is set correctly");
- }
-
- //Do not go past this point without docRoot set
-
- //Try src under docRoot
- if(file_exists ($this->docRoot . '/' . $src)) {
- $this->debug(3, "Found file as " . $this->docRoot . '/' . $src);
- $real = $this->realpath($this->docRoot . '/' . $src);
- if(stripos($real, $this->docRoot) === 0){
- return $real;
- } else {
- $this->debug(1, "Security block: The file specified occurs outside the document root.");
- //allow search to continue
- }
- }
- //Check absolute paths and then verify the real path is under doc root
- $absolute = $this->realpath('/' . $src);
- if($absolute && file_exists($absolute)){ //realpath does file_exists check, so can probably skip the exists check here
- $this->debug(3, "Found absolute path: $absolute");
- if(! $this->docRoot){ $this->sanityFail("docRoot not set when checking absolute path."); }
- if(stripos($absolute, $this->docRoot) === 0){
- return $absolute;
- } else {
- $this->debug(1, "Security block: The file specified occurs outside the document root.");
- //and continue search
- }
- }
-
- $base = $this->docRoot;
-
- // account for Windows directory structure
- if (strstr($_SERVER['SCRIPT_FILENAME'],':')) {
- $sub_directories = explode('\\', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME']));
- } else {
- $sub_directories = explode('/', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME']));
- }
-
- foreach ($sub_directories as $sub){
- $base .= $sub . '/';
- $this->debug(3, "Trying file as: " . $base . $src);
- if(file_exists($base . $src)){
- $this->debug(3, "Found file as: " . $base . $src);
- $real = $this->realpath($base . $src);
- if(stripos($real, $this->realpath($this->docRoot)) === 0){
- return $real;
- } else {
- $this->debug(1, "Security block: The file specified occurs outside the document root.");
- //And continue search
- }
- }
- }
- return false;
- }
- protected function realpath($path){
- //try to remove any relative paths
- $remove_relatives = '/\w+\/\.\.\//';
- while(preg_match($remove_relatives,$path)){
- $path = preg_replace($remove_relatives, '', $path);
- }
- //if any remain use PHP realpath to strip them out, otherwise return $path
- //if using realpath, any symlinks will also be resolved
- return preg_match('#^\.\./|/\.\./#', $path) ? realpath($path) : $path;
- }
- protected function toDelete($name){
- $this->debug(3, "Scheduling file $name to delete on destruct.");
- $this->toDeletes[] = $name;
- }
- protected function serveWebshot(){
- $this->debug(3, "Starting serveWebshot");
- $instr = "Please follow the instructions at http://code.google.com/p/timthumb/ to set your server up for taking website screenshots.";
- if(! is_file(WEBSHOT_CUTYCAPT)){
- return $this->error("CutyCapt is not installed. $instr");
- }
- if(! is_file(WEBSHOT_XVFB)){
- return $this->Error("Xvfb is not installed. $instr");
- }
- $cuty = WEBSHOT_CUTYCAPT;
- $xv = WEBSHOT_XVFB;
- $screenX = WEBSHOT_SCREEN_X;
- $screenY = WEBSHOT_SCREEN_Y;
- $colDepth = WEBSHOT_COLOR_DEPTH;
- $format = WEBSHOT_IMAGE_FORMAT;
- $timeout = WEBSHOT_TIMEOUT * 1000;
- $ua = WEBSHOT_USER_AGENT;
- $jsOn = WEBSHOT_JAVASCRIPT_ON ? 'on' : 'off';
- $javaOn = WEBSHOT_JAVA_ON ? 'on' : 'off';
- $pluginsOn = WEBSHOT_PLUGINS_ON ? 'on' : 'off';
- $proxy = WEBSHOT_PROXY ? ' --http-proxy=' . WEBSHOT_PROXY : '';
- $tempfile = tempnam($this->cacheDirectory, 'timthumb_webshot');
- $url = $this->src;
- if(! preg_match('/^https?:\/\/[a-zA-Z0-9\.\-]+/i', $url)){
- return $this->error("Invalid URL supplied.");
- }
- $url = preg_replace('/[^A-Za-z0-9\-\.\_:\/\?\&\+\;\=]+/', '', $url); //RFC 3986 plus ()$ chars to prevent exploit below. Plus the following are also removed: @*!~#[]',
- // 2014 update by Mark Maunder: This exploit: http://cxsecurity.com/issue/WLB-2014060134
- // uses the $(command) shell execution syntax to execute arbitrary shell commands as the web server user.
- // So we're now filtering out the characters: '$', '(' and ')' in the above regex to avoid this.
- // We are also filtering out chars rarely used in URLs but legal accoring to the URL RFC which might be exploitable. These include: @*!~#[]',
- // We're doing this because we're passing this URL to the shell and need to make very sure it's not going to execute arbitrary commands.
- if(WEBSHOT_XVFB_RUNNING){
- putenv('DISPLAY=:100.0');
- $command = "$cuty $proxy --max-wait=$timeout --user-agent=\"$ua\" --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\"$url\" --out-format=$format --out=$tempfile";
- } else {
- $command = "$xv --server-args=\"-screen 0, {$screenX}x{$screenY}x{$colDepth}\" $cuty $proxy --max-wait=$timeout --user-agent=\"$ua\" --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\"$url\" --out-format=$format --out=$tempfile";
- }
- $this->debug(3, "Executing command: $command");
- $out = `$command`;
- $this->debug(3, "Received output: $out");
- if(! is_file($tempfile)){
- $this->set404();
- return $this->error("The command to create a thumbnail failed.");
- }
- $this->cropTop = true;
- if($this->processImageAndWriteToCache($tempfile)){
- $this->debug(3, "Image processed succesfully. Serving from cache");
- return $this->serveCacheFile();
- } else {
- return false;
- }
- }
- protected function serveExternalImage(){
- if(! preg_match('/^https?:\/\/[a-zA-Z0-9\-\.]+/i', $this->src)){
- $this->error("Invalid URL supplied.");
- return false;
- }
- $tempfile = tempnam($this->cacheDirectory, 'timthumb');
- $this->debug(3, "Fetching external image into temporary file $tempfile");
- $this->toDelete($tempfile);
- #fetch file here
- if(! $this->getURL($this->src, $tempfile)){
- @unlink($this->cachefile);
- touch($this->cachefile);
- $this->debug(3, "Error fetching URL: " . $this->lastURLError);
- $this->error("Error reading the URL you specified from remote host." . $this->lastURLError);
- return false;
- }
-
- $mimeType = $this->getMimeType($tempfile);
- if(! preg_match("/^image\/(?:jpg|jpeg|gif|png)$/i", $mimeType)){
- $this->debug(3, "Remote file has invalid mime type: $mimeType");
- @unlink($this->cachefile);
- touch($this->cachefile);
- $this->error("The remote file is not a valid image. Mimetype = '" . $mimeType . "'" . $tempfile);
- return false;
- }
- if($this->processImageAndWriteToCache($tempfile)){
- $this->debug(3, "Image processed succesfully. Serving from cache");
- return $this->serveCacheFile();
- } else {
- return false;
- }
- }
- public static function curlWrite($h, $d){
- fwrite(self::$curlFH, $d);
- self::$curlDataWritten += strlen($d);
- if(self::$curlDataWritten > MAX_FILE_SIZE){
- return 0;
- } else {
- return strlen($d);
- }
- }
- protected function serveCacheFile(){
- $this->debug(3, "Serving {$this->cachefile}");
- if(! is_file($this->cachefile)){
- $this->error("serveCacheFile called in timthumb but we couldn't find the cached file.");
- return false;
- }
- $fp = fopen($this->cachefile, 'rb');
- if(! $fp){ return $this->error("Could not open cachefile."); }
- fseek($fp, strlen($this->filePrependSecurityBlock), SEEK_SET);
- $imgType = fread($fp, 3);
- fseek($fp, 3, SEEK_CUR);
- if(ftell($fp) != strlen($this->filePrependSecurityBlock) + 6){
- @unlink($this->cachefile);
- return $this->error("The cached image file seems to be corrupt.");
- }
- $imageDataSize = filesize($this->cachefile) - (strlen($this->filePrependSecurityBlock) + 6);
- $this->sendImageHeaders($imgType, $imageDataSize);
- $bytesSent = @fpassthru($fp);
- fclose($fp);
- if($bytesSent > 0){
- return true;
- }
- $content = file_get_contents ($this->cachefile);
- if ($content != FALSE) {
- $content = substr($content, strlen($this->filePrependSecurityBlock) + 6);
- echo $content;
- $this->debug(3, "Served using file_get_contents and echo");
- return true;
- } else {
- $this->error("Cache file could not be loaded.");
- return false;
- }
- }
- protected function sendImageHeaders($mimeType, $dataSize){
- if(! preg_match('/^image\//i', $mimeType)){
- $mimeType = 'image/' . $mimeType;
- }
- if(strtolower($mimeType) == 'image/jpg'){
- $mimeType = 'image/jpeg';
- }
- $gmdate_expires = gmdate ('D, d M Y H:i:s', strtotime ('now +10 days')) . ' GMT';
- $gmdate_modified = gmdate ('D, d M Y H:i:s') . ' GMT';
- // send content headers then display image
- header ('Content-Type: ' . $mimeType);
- header ('Accept-Ranges: none'); //Changed this because we don't accept range requests
- header ('Last-Modified: ' . $gmdate_modified);
- header ('Content-Length: ' . $dataSize);
- if(BROWSER_CACHE_DISABLE){
- $this->debug(3, "Browser cache is disabled so setting non-caching headers.");
- header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
- header("Pragma: no-cache");
- header('Expires: ' . gmdate ('D, d M Y H:i:s', time()));
- } else {
- $this->debug(3, "Browser caching is enabled");
- header('Cache-Control: max-age=' . BROWSER_CACHE_MAX_AGE . ', must-revalidate');
- header('Expires: ' . $gmdate_expires);
- }
- return true;
- }
- protected function securityChecks(){
- }
- protected function param($property, $default = ''){
- if (isset ($_GET[$property])) {
- return $_GET[$property];
- } else {
- return $default;
- }
- }
- protected function openImage($mimeType, $src){
- switch ($mimeType) {
- case 'image/jpeg':
- $image = imagecreatefromjpeg ($src);
- break;
-
- case 'image/png':
- $image = imagecreatefrompng ($src);
- imagealphablending( $image, true );
- imagesavealpha( $image, true );
- break;
-
- case 'image/gif':
- $image = imagecreatefromgif ($src);
- break;
-
- default:
- $this->error("Unrecognised mimeType");
- }
-
- return $image;
- }
- protected function getIP(){
- $rem = @$_SERVER["REMOTE_ADDR"];
- $ff = @$_SERVER["HTTP_X_FORWARDED_FOR"];
- $ci = @$_SERVER["HTTP_CLIENT_IP"];
- if(preg_match('/^(?:192\.168|172\.16|10\.|127\.)/', $rem)){
- if($ff){ return $ff; }
- if($ci){ return $ci; }
- return $rem;
- } else {
- if($rem){ return $rem; }
- if($ff){ return $ff; }
- if($ci){ return $ci; }
- return "UNKNOWN";
- }
- }
- protected function debug($level, $msg){
- if(DEBUG_ON && $level <= DEBUG_LEVEL){
- $execTime = sprintf('%.6f', microtime(true) - $this->startTime);
- $tick = sprintf('%.6f', 0);
- if($this->lastBenchTime > 0){
- $tick = sprintf('%.6f', microtime(true) - $this->lastBenchTime);
- }
- $this->lastBenchTime = microtime(true);
- error_log("TimThumb Debug line " . __LINE__ . " [$execTime : $tick]: $msg");
- }
- }
- protected function sanityFail($msg){
- return $this->error("There is a problem in the timthumb code. Message: Please report this error at timthumb's bug tracking page : $msg");
- }
- protected function getMimeType($file){
- $info = getimagesize($file);
- if(is_array($info) && $info['mime']){
- return $info['mime'];
- }
- return '';
- }
- protected function setMemoryLimit(){
- $inimem = ini_get('memory_limit');
- $inibytes = timthumb::returnBytes($inimem);
- $ourbytes = timthumb::returnBytes(MEMORY_LIMIT);
- if($inibytes < $ourbytes){
- ini_set ('memory_limit', MEMORY_LIMIT);
- $this->debug(3, "Increased memory from $inimem to " . MEMORY_LIMIT);
- } else {
- $this->debug(3, "Not adjusting memory size because the current setting is " . $inimem . " and our size of " . MEMORY_LIMIT . " is smaller.");
- }
- }
- protected static function returnBytes($size_str){
- switch (substr ($size_str, -1))
- {
- case 'M': case 'm': return (int)$size_str * 1048576;
- case 'K': case 'k': return (int)$size_str * 1024;
- case 'G': case 'g': return (int)$size_str * 1073741824;
- default: return $size_str;
- }
- }
-
- protected function getURL($url, $tempfile){
- $this->lastURLError = false;
- $url = preg_replace('/ /', '%20', $url);
- if(function_exists('curl_init')){
- $this->debug(3, "Curl is installed so using it to fetch URL.");
- self::$curlFH = fopen($tempfile, 'w');
- if(! self::$curlFH){
- $this->error("Could not open $tempfile for writing.");
- return false;
- }
- self::$curlDataWritten = 0;
- $this->debug(3, "Fetching url with curl: $url");
- $curl = curl_init($url);
- curl_setopt ($curl, CURLOPT_TIMEOUT, CURL_TIMEOUT);
- curl_setopt ($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30");
- curl_setopt ($curl, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt ($curl, CURLOPT_HEADER, 0);
- curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt ($curl, CURLOPT_WRITEFUNCTION, 'timthumb::curlWrite');
- @curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, true);
- @curl_setopt ($curl, CURLOPT_MAXREDIRS, 10);
-
- $curlResult = curl_exec($curl);
- fclose(self::$curlFH);
- $httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);
- if($httpStatus == 404){
- $this->set404();
- }
- if($httpStatus == 302){
- $this->error("External Image is Redirecting. Try alternate image url");
- return false;
- }
- if($curlResult){
- curl_close($curl);
- return true;
- } else {
- $this->lastURLError = curl_error($curl);
- curl_close($curl);
- return false;
- }
- } else {
- $img = @file_get_contents ($url);
- if($img === false){
- $err = error_get_last();
- if(is_array($err) && $err['message']){
- $this->lastURLError = $err['message'];
- } else {
- $this->lastURLError = $err;
- }
- if(preg_match('/404/', $this->lastURLError)){
- $this->set404();
- }
-
- return false;
- }
- if(! file_put_contents($tempfile, $img)){
- $this->error("Could not write to $tempfile.");
- return false;
- }
- return true;
- }
-
- }
- protected function serveImg($file){
- $s = getimagesize($file);
- if(! ($s && $s['mime'])){
- return false;
- }
- header ('Content-Type: ' . $s['mime']);
- header ('Content-Length: ' . filesize($file) );
- header ('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
- header ("Pragma: no-cache");
- $bytes = @readfile($file);
- if($bytes > 0){
- return true;
- }
- $content = @file_get_contents ($file);
- if ($content != FALSE){
- echo $content;
- return true;
- }
- return false;
-
- }
- protected function set404(){
- $this->is404 = true;
- }
- protected function is404(){
- return $this->is404;
- }
-}
\ No newline at end of file
diff --git a/src/templates/index.php b/src/templates/index.php
deleted file mode 100755
index 214d304a..00000000
--- a/src/templates/index.php
+++ /dev/null
@@ -1,269 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-";
- return $rtn;
-}
-
-
-// RECURSIVE FUNCTION TO BUILD THE BLOCKS
-function build_blocks( $items, $folder )
-{
- global $ignore_file_list, $ignore_ext_list, $sort_by, $toggle_sub_folders, $ignore_empty_folders;
-
- $objects = array();
- $objects['directories'] = array();
- $objects['files'] = array();
-
- foreach($items as $c => $item)
- {
- if( $item == ".." OR $item == ".") continue;
-
- // IGNORE FILE
- if(in_array($item, $ignore_file_list)) { continue; }
-
- if( $folder && $item )
- {
- $item = "$folder/$item";
- }
-
- $file_ext = getFileExt($item);
-
- // IGNORE EXT
- if(in_array($file_ext, $ignore_ext_list)) { continue; }
-
- // DIRECTORIES
- if( is_dir($item) )
- {
- $objects['directories'][] = $item;
- continue;
- }
-
- // FILE DATE
- $file_time = date("U", filemtime($item));
-
- // FILES
- if( $item )
- {
- $objects['files'][$file_time . "-" . $item] = $item;
- }
- }
-
- foreach($objects['directories'] as $c => $file)
- {
- $sub_items = (array) scandir( $file );
-
- if( $ignore_empty_folders )
- {
- $has_sub_items = false;
- foreach( $sub_items as $sub_item )
- {
- $sub_fileExt = getFileExt( $sub_item );
- if( $sub_item == ".." OR $sub_item == ".") continue;
- if(in_array($sub_item, $ignore_file_list)) continue;
- if(in_array($sub_fileExt, $ignore_ext_list)) continue;
-
- $has_sub_items = true;
- break;
- }
-
- if( $has_sub_items ) echo display_block( $file );
- }
- else
- {
- echo display_block( $file );
- }
-
- if( $toggle_sub_folders )
- {
- if( $sub_items )
- {
- echo "";
- build_blocks( $sub_items, $file );
- echo "
";
- }
- }
- }
-
- // SORT BEFORE LOOP
- if( $sort_by == "date_asc" ) { ksort($objects['files']); }
- elseif( $sort_by == "date_desc" ) { krsort($objects['files']); }
- elseif( $sort_by == "name_asc" ) { natsort($objects['files']); }
- elseif( $sort_by == "name_desc" ) { arsort($objects['files']); }
-
- foreach($objects['files'] as $t => $file)
- {
- $fileExt = getFileExt($file);
- if(in_array($file, $ignore_file_list)) { continue; }
- if(in_array($fileExt, $ignore_ext_list)) { continue; }
- echo display_block( $file );
- }
-}
-
-// GET THE BLOCKS STARTED, FALSE TO INDICATE MAIN FOLDER
-$items = scandir( dirname(__FILE__) );
-build_blocks( $items, false );
-?>
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/templates/init.php b/src/templates/init.php
deleted file mode 100644
index 19551293..00000000
--- a/src/templates/init.php
+++ /dev/null
@@ -1,70 +0,0 @@
- $variables );
- }
-
- $output = null;
- if ( file_exists( $filePath ) ) {
- // Extract the variables to a local namespace
- extract( $variables );
-
- // Start output buffering
- ob_start();
-
- // Include the template file
- include $filePath;
-
- // End buffering and return its contents
- $output = ob_get_clean();
- }
- if ( $print ) {
- print $output;
- }
-
- return $output;
-}
-
-// shortcut for including partials/ files
-function get_partials( $file, $variables = array(), $print = true ) {
- return includeWithVariables( 'partials/' . $file . '.php', $variables, $print );
-}
-
-// shortcut for including cards/ files
-function get_cards( $file, $variables = array(), $print = true ) {
- return includeWithVariables( 'cards/' . $file . '.php', $variables, $print );
-}
-
-// random lorem size of lorem ipsum
-function get_lorem( $min, $max ) {
- $lorem = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio quibusdam ipsam maiores? Consectetur, corrupti vitae cumque atque vero tempore nostrum temporibus in illo similique error. Vitae non accusamus quo maiores soluta aliquid totam voluptatem dignissimos, mollitia explicabo, illum quam natus, consectetur eveniet debitis cupiditate sint labore tempora veniam consequatur rerum ex quod nihil. Animi esse numquam mollitia ullam. Inventore facere voluptatem nisi consectetur ipsum suscipit similique vero. Amet exercitationem earum, quae soluta aliquam assumenda enim dicta, inventore modi rem maxime sequi sit, dolores quod mollitia est accusantium. Cupiditate officia laudantium et qui maxime tempora quibusdam tempore sunt, excepturi sapiente voluptatem distinctio non nulla expedita similique necessitatibus fugit pariatur aut odio consequuntur quasi asperiores, illum labore beatae! Optio corporis iusto neque odit perspiciatis consequatur, laudantium tempore odio, vitae nostrum magni sed eos officiis dolor hic aut vel accusamus esse repellat dolores, alias deleniti blanditiis quisquam. Cumque a sunt quia. Odit ea tenetur culpa quo quod ratione praesentium dolore ipsa quae cumque debitis aliquam distinctio magni unde, doloremque velit veritatis iste temporibus! Rerum nobis libero recusandae mollitia, rem quibusdam reiciendis sapiente, voluptates exercitationem iste dolorem odit repellendus fuga dolore aliquid laudantium. Quidem repellendus culpa sed cumque beatae voluptatum ipsam aliquam explicabo magni magnam ut vero accusantium rem, aliquid at harum id. Illo, eos! Distinctio cupiditate, voluptates cum facilis dignissimos unde placeat nemo a inventore quas atque optio, soluta ea fuga omnis! Ullam consequatur quam dolores tempore, totam quidem laboriosam expedita blanditiis ipsam ut obcaecati. Quaerat velit vero fugiat amet cupiditate? Similique quisquam unde itaque totam quas vel magni, nisi asperiores rerum consectetur eum, ratione doloremque, optio aliquid. Ullam distinctio deserunt sapiente veritatis, saepe molestiae reprehenderit culpa nesciunt neque facilis itaque voluptatum dignissimos deleniti iste ad? Sequi ab consequuntur facere, omnis harum porro corporis at nesciunt, quaerat iusto impedit animi dolorem error, excepturi dolores nemo magnam ea modi a? Delectus possimus quibusdam beatae natus, dolore ipsam voluptas blanditiis officiis quod doloremque eligendi, nobis quia nemo deserunt a doloribus vitae dolor necessitatibus velit iusto voluptatum esse reiciendis dolorem similique. Aliquam provident totam, laborum hic temporibus blanditiis exercitationem nobis quam molestiae quidem excepturi ipsum cum. Ad optio sequi iste assumenda minus eveniet dolor nobis autem exercitationem magnam qui harum architecto mollitia nostrum aliquid, omnis necessitatibus ipsa! Autem iusto blanditiis, totam eum id saepe aliquid sequi. Earum, ea provident. Id, cupiditate molestiae! Quos ullam quis iste neque soluta deserunt aut perspiciatis laudantium, eum qui! Possimus, quaerat. Explicabo quam temporibus minima, ducimus totam ab dolore ea accusamus reprehenderit rem! Nihil, iure corporis ut quibusdam quos dolorum cupiditate porro maiores hic vel. Dolorum cum quidem dicta laboriosam minima unde dignissimos veniam impedit ad odit. Inventore, beatae officiis odit doloribus accusamus nemo perferendis ipsam laudantium officia commodi doloremque molestiae iste labore tempora magnam voluptates aliquam odio saepe. Porro, dignissimos culpa. Eligendi, corrupti nobis sit maxime, mollitia et eos eius ut unde quis ducimus, reprehenderit quia iste repellat nam dolore harum sint. Ducimus accusamus, sit repellat autem quae eaque aliquam numquam consequatur, placeat, incidunt itaque facilis atque enim harum delectus.";
-
- $min = max( $min, 0 );
- $max = min( $max, strlen( $lorem ) - 1 );
-
- echo substr( $lorem, 0, rand( $min, $max ) );
-}
-
-/**
- * @param $fileName
- * @param $additional_classes
- *
- * @return string
- */
-function get_the_icon( $fileName, $additional_classes = [] ) {
- $classes[] = 'icon';
- $classes[] = sprintf( 'icon-%s', $fileName );
- $classes = array_merge( $classes, $additional_classes );
-
- return sprintf( '
', implode( ' ', $classes ), '/dist/assets/img/icons/icons.svg', $fileName );
-}
-
-function the_icon( $fileName, $additional_classes = [] ) {
- echo get_the_icon( $fileName, $additional_classes );
-}
-
-?>
-
diff --git a/src/templates/loops/cards.php b/src/templates/loops/cards.php
deleted file mode 100644
index 799148e8..00000000
--- a/src/templates/loops/cards.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- 'entry-img-01', 'class' => 'card__img', 'alt' => '#' ) ); ?>
-
-
-
\ No newline at end of file
diff --git a/src/templates/partials/gutenberg.5.3.css b/src/templates/partials/gutenberg.5.3.css
deleted file mode 100644
index 1ef16f29..00000000
--- a/src/templates/partials/gutenberg.5.3.css
+++ /dev/null
@@ -1,1538 +0,0 @@
-/**
- * Colors
- */
-/**
- * Breakpoints & Media Queries
- */
-/**
- * Often re-used variables
- */
-/**
- * Breakpoint mixins
- */
-/**
- * Long content fade mixin
- *
- * Creates a fading overlay to signify that the content is longer
- * than the space allows.
- */
-/**
- * Button states and focus styles
- */
-/**
- * Applies editor left position to the selector passed as argument
- */
-/**
- * Applies editor right position to the selector passed as argument
- */
-/**
- * Styles that are reused verbatim in a few places
- */
-/**
- * Allows users to opt-out of animations via OS-level preferences.
- */
-/**
- * Reset default styles for JavaScript UI based pages.
- * This is a WP-admin agnostic reset
- */
-/**
- * Reset the WP Admin page styles for Gutenberg-like pages.
- */
- .wp-block-audio figcaption {
- margin-top: 0.5em;
- margin-bottom: 1em; }
-
-.wp-block-audio audio {
- width: 100%;
- min-width: 300px; }
-
-.wp-block-button {
- color: #fff; }
- .wp-block-button.aligncenter {
- text-align: center; }
- .wp-block-button.alignright {
- /*rtl:ignore*/
- text-align: right; }
-
-.wp-block-button__link {
- background-color: #32373c;
- border: none;
- border-radius: 28px;
- box-shadow: none;
- color: inherit;
- cursor: pointer;
- display: inline-block;
- font-size: 18px;
- margin: 0;
- padding: 12px 24px;
- text-align: center;
- text-decoration: none;
- overflow-wrap: break-word; }
- .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active, .wp-block-button__link:visited {
- color: inherit; }
-
-.is-style-squared .wp-block-button__link {
- border-radius: 0; }
-
-.no-border-radius.wp-block-button__link {
- border-radius: 0 !important; }
-
-.is-style-outline {
- color: #32373c; }
- .is-style-outline .wp-block-button__link {
- background-color: transparent;
- border: 2px solid; }
-
-.wp-block-calendar {
- text-align: center; }
- .wp-block-calendar th,
- .wp-block-calendar tbody td {
- padding: 4px;
- border: 1px solid #e2e4e7; }
- .wp-block-calendar tfoot td {
- border: none; }
- .wp-block-calendar table {
- width: 100%;
- border-collapse: collapse;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
- .wp-block-calendar table th {
- font-weight: 400;
- background: #edeff0; }
- .wp-block-calendar a {
- text-decoration: underline; }
- .wp-block-calendar tfoot a {
- color: #00739c; }
- .wp-block-calendar table tbody,
- .wp-block-calendar table caption {
- color: #40464d; }
-
-.wp-block-categories.alignleft {
- /*rtl:ignore*/
- margin-right: 2em; }
-
-.wp-block-categories.alignright {
- /*rtl:ignore*/
- margin-left: 2em; }
-
-.wp-block-columns {
- display: flex;
- margin-bottom: 28px;
- flex-wrap: wrap; }
- @media (min-width: 782px) {
- .wp-block-columns {
- flex-wrap: nowrap; } }
-
-.wp-block-column {
- flex-grow: 1;
- min-width: 0;
- word-break: break-word;
- overflow-wrap: break-word; }
- @media (max-width: 599px) {
- .wp-block-column {
- flex-basis: 100% !important; } }
- @media (min-width: 600px) {
- .wp-block-column {
- flex-basis: calc(50% - 16px);
- flex-grow: 0; }
- .wp-block-column:nth-child(even) {
- margin-left: 32px; } }
- @media (min-width: 782px) {
- .wp-block-column:not(:first-child) {
- margin-left: 32px; } }
-
-/**
- * All Columns Alignment
- */
-.wp-block-columns.are-vertically-aligned-top {
- align-items: flex-start; }
-
-.wp-block-columns.are-vertically-aligned-center {
- align-items: center; }
-
-.wp-block-columns.are-vertically-aligned-bottom {
- align-items: flex-end; }
-
-/**
- * Individual Column Alignment
- */
-.wp-block-column.is-vertically-aligned-top {
- align-self: flex-start; }
-
-.wp-block-column.is-vertically-aligned-center {
- -ms-grid-row-align: center;
- align-self: center; }
-
-.wp-block-column.is-vertically-aligned-bottom {
- align-self: flex-end; }
-
-.wp-block-cover-image,
-.wp-block-cover {
- position: relative;
- background-color: #000;
- background-size: cover;
- background-position: center center;
- min-height: 430px;
- height: 100%;
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- overflow: hidden; }
- .wp-block-cover-image.has-parallax,
- .wp-block-cover.has-parallax {
- background-attachment: fixed; }
- @supports (-webkit-overflow-scrolling: touch) {
- .wp-block-cover-image.has-parallax,
- .wp-block-cover.has-parallax {
- background-attachment: scroll; } }
- @media (prefers-reduced-motion: reduce) {
- .wp-block-cover-image.has-parallax,
- .wp-block-cover.has-parallax {
- background-attachment: scroll; } }
- .wp-block-cover-image.has-background-dim::before,
- .wp-block-cover.has-background-dim::before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background-color: inherit;
- opacity: 0.5;
- z-index: 1; }
- .wp-block-cover-image.has-background-dim.has-background-dim-10::before,
- .wp-block-cover.has-background-dim.has-background-dim-10::before {
- opacity: 0.1; }
- .wp-block-cover-image.has-background-dim.has-background-dim-20::before,
- .wp-block-cover.has-background-dim.has-background-dim-20::before {
- opacity: 0.2; }
- .wp-block-cover-image.has-background-dim.has-background-dim-30::before,
- .wp-block-cover.has-background-dim.has-background-dim-30::before {
- opacity: 0.3; }
- .wp-block-cover-image.has-background-dim.has-background-dim-40::before,
- .wp-block-cover.has-background-dim.has-background-dim-40::before {
- opacity: 0.4; }
- .wp-block-cover-image.has-background-dim.has-background-dim-50::before,
- .wp-block-cover.has-background-dim.has-background-dim-50::before {
- opacity: 0.5; }
- .wp-block-cover-image.has-background-dim.has-background-dim-60::before,
- .wp-block-cover.has-background-dim.has-background-dim-60::before {
- opacity: 0.6; }
- .wp-block-cover-image.has-background-dim.has-background-dim-70::before,
- .wp-block-cover.has-background-dim.has-background-dim-70::before {
- opacity: 0.7; }
- .wp-block-cover-image.has-background-dim.has-background-dim-80::before,
- .wp-block-cover.has-background-dim.has-background-dim-80::before {
- opacity: 0.8; }
- .wp-block-cover-image.has-background-dim.has-background-dim-90::before,
- .wp-block-cover.has-background-dim.has-background-dim-90::before {
- opacity: 0.9; }
- .wp-block-cover-image.has-background-dim.has-background-dim-100::before,
- .wp-block-cover.has-background-dim.has-background-dim-100::before {
- opacity: 1; }
- .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
- .wp-block-cover.alignleft,
- .wp-block-cover.alignright {
- max-width: 305px;
- width: 100%; }
- .wp-block-cover-image::after,
- .wp-block-cover::after {
- display: block;
- content: "";
- font-size: 0;
- min-height: inherit; }
- @supports ((position: -webkit-sticky) or (position: sticky)) {
- .wp-block-cover-image::after,
- .wp-block-cover::after {
- content: none; } }
- .wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
- .wp-block-cover.aligncenter,
- .wp-block-cover.alignleft,
- .wp-block-cover.alignright {
- display: flex; }
- .wp-block-cover-image .wp-block-cover__inner-container,
- .wp-block-cover .wp-block-cover__inner-container {
- width: calc(100% - 70px);
- z-index: 1;
- color: #f8f9f9; }
- .wp-block-cover-image p:not(.has-text-color),
- .wp-block-cover-image h1:not(.has-text-color),
- .wp-block-cover-image h2:not(.has-text-color),
- .wp-block-cover-image h3:not(.has-text-color),
- .wp-block-cover-image h4:not(.has-text-color),
- .wp-block-cover-image h5:not(.has-text-color),
- .wp-block-cover-image h6:not(.has-text-color),
- .wp-block-cover-image .wp-block-subhead:not(.has-text-color),
- .wp-block-cover p:not(.has-text-color),
- .wp-block-cover h1:not(.has-text-color),
- .wp-block-cover h2:not(.has-text-color),
- .wp-block-cover h3:not(.has-text-color),
- .wp-block-cover h4:not(.has-text-color),
- .wp-block-cover h5:not(.has-text-color),
- .wp-block-cover h6:not(.has-text-color),
- .wp-block-cover .wp-block-subhead:not(.has-text-color) {
- color: inherit; }
-
-.wp-block-cover__video-background {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- width: 100%;
- height: 100%;
- z-index: 0;
- -o-object-fit: cover;
- object-fit: cover; }
-
-section.wp-block-cover-image h2,
-.wp-block-cover-image-text,
-.wp-block-cover-text {
- color: #fff; }
- section.wp-block-cover-image h2 a,
- section.wp-block-cover-image h2 a:hover,
- section.wp-block-cover-image h2 a:focus,
- section.wp-block-cover-image h2 a:active,
- .wp-block-cover-image-text a,
- .wp-block-cover-image-text a:hover,
- .wp-block-cover-image-text a:focus,
- .wp-block-cover-image-text a:active,
- .wp-block-cover-text a,
- .wp-block-cover-text a:hover,
- .wp-block-cover-text a:focus,
- .wp-block-cover-text a:active {
- color: #fff; }
-
-.wp-block-cover-image
-.wp-block-cover.has-left-content {
- justify-content: flex-start; }
-
-.wp-block-cover-image
-.wp-block-cover.has-right-content {
- justify-content: flex-end; }
-
-section.wp-block-cover-image.has-left-content > h2,
-.wp-block-cover-image.has-left-content .wp-block-cover-image-text,
-.wp-block-cover.has-left-content .wp-block-cover-text {
- margin-left: 0;
- text-align: left; }
-
-section.wp-block-cover-image.has-right-content > h2,
-.wp-block-cover-image.has-right-content .wp-block-cover-image-text,
-.wp-block-cover.has-right-content .wp-block-cover-text {
- margin-right: 0;
- text-align: right; }
-
-section.wp-block-cover-image > h2,
-.wp-block-cover-image .wp-block-cover-image-text,
-.wp-block-cover .wp-block-cover-text {
- font-size: 2em;
- line-height: 1.25;
- z-index: 1;
- margin-bottom: 0;
- max-width: 610px;
- padding: 14px;
- text-align: center; }
-
-.block-editor-block-list__block[data-type="core/embed"][data-align="left"] .block-editor-block-list__block-edit,
-.block-editor-block-list__block[data-type="core/embed"][data-align="right"] .block-editor-block-list__block-edit,
-.wp-block-embed.alignleft,
-.wp-block-embed.alignright {
- max-width: 360px;
- width: 100%; }
-
-.wp-block-embed {
- margin-bottom: 1em; }
- .wp-block-embed figcaption {
- margin-top: 0.5em;
- margin-bottom: 1em; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper,
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper {
- position: relative; }
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
- content: "";
- display: block;
- padding-top: 50%; }
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper iframe,
- .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper iframe {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 100%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before {
- padding-top: 42.85%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before {
- padding-top: 50%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
- padding-top: 56.25%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before {
- padding-top: 75%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
- padding-top: 100%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
- padding-top: 177.78%; }
-
-.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {
- padding-top: 200%; }
-
-.wp-block-file {
- margin-bottom: 1.5em; }
- .wp-block-file.aligncenter {
- text-align: center; }
- .wp-block-file.alignright {
- /*rtl:ignore*/
- text-align: right; }
- .wp-block-file .wp-block-file__button {
- background: #32373c;
- border-radius: 2em;
- color: #fff;
- font-size: 13px;
- padding: 0.5em 1em; }
- .wp-block-file a.wp-block-file__button {
- text-decoration: none; }
- .wp-block-file a.wp-block-file__button:hover, .wp-block-file a.wp-block-file__button:visited, .wp-block-file a.wp-block-file__button:focus, .wp-block-file a.wp-block-file__button:active {
- box-shadow: none;
- color: #fff;
- opacity: 0.85;
- text-decoration: none; }
- .wp-block-file * + .wp-block-file__button {
- margin-left: 0.75em; }
-
-.wp-block-gallery,
-.blocks-gallery-grid {
- display: flex;
- flex-wrap: wrap;
- list-style-type: none;
- padding: 0;
- margin: 0; }
- .wp-block-gallery .blocks-gallery-image,
- .wp-block-gallery .blocks-gallery-item,
- .blocks-gallery-grid .blocks-gallery-image,
- .blocks-gallery-grid .blocks-gallery-item {
- margin: 0 16px 16px 0;
- display: flex;
- flex-grow: 1;
- flex-direction: column;
- justify-content: center;
- position: relative; }
- .wp-block-gallery .blocks-gallery-image figure,
- .wp-block-gallery .blocks-gallery-item figure,
- .blocks-gallery-grid .blocks-gallery-image figure,
- .blocks-gallery-grid .blocks-gallery-item figure {
- margin: 0;
- height: 100%; }
- @supports ((position: -webkit-sticky) or (position: sticky)) {
- .wp-block-gallery .blocks-gallery-image figure,
- .wp-block-gallery .blocks-gallery-item figure,
- .blocks-gallery-grid .blocks-gallery-image figure,
- .blocks-gallery-grid .blocks-gallery-item figure {
- display: flex;
- align-items: flex-end;
- justify-content: flex-start; } }
- .wp-block-gallery .blocks-gallery-image img,
- .wp-block-gallery .blocks-gallery-item img,
- .blocks-gallery-grid .blocks-gallery-image img,
- .blocks-gallery-grid .blocks-gallery-item img {
- display: block;
- max-width: 100%;
- height: auto; }
- .wp-block-gallery .blocks-gallery-image img,
- .wp-block-gallery .blocks-gallery-item img,
- .blocks-gallery-grid .blocks-gallery-image img,
- .blocks-gallery-grid .blocks-gallery-item img {
- width: 100%; }
- @supports ((position: -webkit-sticky) or (position: sticky)) {
- .wp-block-gallery .blocks-gallery-image img,
- .wp-block-gallery .blocks-gallery-item img,
- .blocks-gallery-grid .blocks-gallery-image img,
- .blocks-gallery-grid .blocks-gallery-item img {
- width: auto; } }
- .wp-block-gallery .blocks-gallery-image figcaption,
- .wp-block-gallery .blocks-gallery-item figcaption,
- .blocks-gallery-grid .blocks-gallery-image figcaption,
- .blocks-gallery-grid .blocks-gallery-item figcaption {
- position: absolute;
- bottom: 0;
- width: 100%;
- max-height: 100%;
- overflow: auto;
- padding: 40px 10px 9px;
- color: #fff;
- text-align: center;
- font-size: 13px;
- background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); }
- .wp-block-gallery .blocks-gallery-image figcaption img,
- .wp-block-gallery .blocks-gallery-item figcaption img,
- .blocks-gallery-grid .blocks-gallery-image figcaption img,
- .blocks-gallery-grid .blocks-gallery-item figcaption img {
- display: inline; }
- .wp-block-gallery.is-cropped .blocks-gallery-image a,
- .wp-block-gallery.is-cropped .blocks-gallery-image img,
- .wp-block-gallery.is-cropped .blocks-gallery-item a,
- .wp-block-gallery.is-cropped .blocks-gallery-item img,
- .blocks-gallery-grid.is-cropped .blocks-gallery-image a,
- .blocks-gallery-grid.is-cropped .blocks-gallery-image img,
- .blocks-gallery-grid.is-cropped .blocks-gallery-item a,
- .blocks-gallery-grid.is-cropped .blocks-gallery-item img {
- width: 100%; }
- @supports ((position: -webkit-sticky) or (position: sticky)) {
- .wp-block-gallery.is-cropped .blocks-gallery-image a,
- .wp-block-gallery.is-cropped .blocks-gallery-image img,
- .wp-block-gallery.is-cropped .blocks-gallery-item a,
- .wp-block-gallery.is-cropped .blocks-gallery-item img,
- .blocks-gallery-grid.is-cropped .blocks-gallery-image a,
- .blocks-gallery-grid.is-cropped .blocks-gallery-image img,
- .blocks-gallery-grid.is-cropped .blocks-gallery-item a,
- .blocks-gallery-grid.is-cropped .blocks-gallery-item img {
- height: 100%;
- flex: 1;
- -o-object-fit: cover;
- object-fit: cover; } }
- .wp-block-gallery .blocks-gallery-image,
- .wp-block-gallery .blocks-gallery-item,
- .blocks-gallery-grid .blocks-gallery-image,
- .blocks-gallery-grid .blocks-gallery-item {
- width: calc((100% - 16px) / 2); }
- .wp-block-gallery .blocks-gallery-image:nth-of-type(even),
- .wp-block-gallery .blocks-gallery-item:nth-of-type(even),
- .blocks-gallery-grid .blocks-gallery-image:nth-of-type(even),
- .blocks-gallery-grid .blocks-gallery-item:nth-of-type(even) {
- margin-right: 0; }
- .wp-block-gallery.columns-1 .blocks-gallery-image,
- .wp-block-gallery.columns-1 .blocks-gallery-item,
- .blocks-gallery-grid.columns-1 .blocks-gallery-image,
- .blocks-gallery-grid.columns-1 .blocks-gallery-item {
- width: 100%;
- margin-right: 0; }
- @media (min-width: 600px) {
- .wp-block-gallery.columns-3 .blocks-gallery-image,
- .wp-block-gallery.columns-3 .blocks-gallery-item,
- .blocks-gallery-grid.columns-3 .blocks-gallery-image,
- .blocks-gallery-grid.columns-3 .blocks-gallery-item {
- width: calc((100% - 16px * 2) / 3);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-3 .blocks-gallery-image,
- .wp-block-gallery.columns-3 .blocks-gallery-item,
- .blocks-gallery-grid.columns-3 .blocks-gallery-image,
- .blocks-gallery-grid.columns-3 .blocks-gallery-item {
- width: calc((100% - 16px * 2) / 3 - 1px); } }
- .wp-block-gallery.columns-4 .blocks-gallery-image,
- .wp-block-gallery.columns-4 .blocks-gallery-item,
- .blocks-gallery-grid.columns-4 .blocks-gallery-image,
- .blocks-gallery-grid.columns-4 .blocks-gallery-item {
- width: calc((100% - 16px * 3) / 4);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-4 .blocks-gallery-image,
- .wp-block-gallery.columns-4 .blocks-gallery-item,
- .blocks-gallery-grid.columns-4 .blocks-gallery-image,
- .blocks-gallery-grid.columns-4 .blocks-gallery-item {
- width: calc((100% - 16px * 3) / 4 - 1px); } }
- .wp-block-gallery.columns-5 .blocks-gallery-image,
- .wp-block-gallery.columns-5 .blocks-gallery-item,
- .blocks-gallery-grid.columns-5 .blocks-gallery-image,
- .blocks-gallery-grid.columns-5 .blocks-gallery-item {
- width: calc((100% - 16px * 4) / 5);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-5 .blocks-gallery-image,
- .wp-block-gallery.columns-5 .blocks-gallery-item,
- .blocks-gallery-grid.columns-5 .blocks-gallery-image,
- .blocks-gallery-grid.columns-5 .blocks-gallery-item {
- width: calc((100% - 16px * 4) / 5 - 1px); } }
- .wp-block-gallery.columns-6 .blocks-gallery-image,
- .wp-block-gallery.columns-6 .blocks-gallery-item,
- .blocks-gallery-grid.columns-6 .blocks-gallery-image,
- .blocks-gallery-grid.columns-6 .blocks-gallery-item {
- width: calc((100% - 16px * 5) / 6);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-6 .blocks-gallery-image,
- .wp-block-gallery.columns-6 .blocks-gallery-item,
- .blocks-gallery-grid.columns-6 .blocks-gallery-image,
- .blocks-gallery-grid.columns-6 .blocks-gallery-item {
- width: calc((100% - 16px * 5) / 6 - 1px); } }
- .wp-block-gallery.columns-7 .blocks-gallery-image,
- .wp-block-gallery.columns-7 .blocks-gallery-item,
- .blocks-gallery-grid.columns-7 .blocks-gallery-image,
- .blocks-gallery-grid.columns-7 .blocks-gallery-item {
- width: calc((100% - 16px * 6) / 7);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-7 .blocks-gallery-image,
- .wp-block-gallery.columns-7 .blocks-gallery-item,
- .blocks-gallery-grid.columns-7 .blocks-gallery-image,
- .blocks-gallery-grid.columns-7 .blocks-gallery-item {
- width: calc((100% - 16px * 6) / 7 - 1px); } }
- .wp-block-gallery.columns-8 .blocks-gallery-image,
- .wp-block-gallery.columns-8 .blocks-gallery-item,
- .blocks-gallery-grid.columns-8 .blocks-gallery-image,
- .blocks-gallery-grid.columns-8 .blocks-gallery-item {
- width: calc((100% - 16px * 7) / 8);
- margin-right: 16px; }
- @supports (-ms-ime-align: auto) {
- .wp-block-gallery.columns-8 .blocks-gallery-image,
- .wp-block-gallery.columns-8 .blocks-gallery-item,
- .blocks-gallery-grid.columns-8 .blocks-gallery-image,
- .blocks-gallery-grid.columns-8 .blocks-gallery-item {
- width: calc((100% - 16px * 7) / 8 - 1px); } }
- .wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),
- .wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n),
- .blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),
- .blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n) {
- margin-right: 0; }
- .wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),
- .wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n),
- .blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),
- .blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n) {
- margin-right: 0; }
- .wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),
- .wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n),
- .blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),
- .blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n) {
- margin-right: 0; }
- .wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),
- .wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n),
- .blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),
- .blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n) {
- margin-right: 0; }
- .wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),
- .wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n),
- .blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),
- .blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n) {
- margin-right: 0; }
- .wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),
- .wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n),
- .blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),
- .blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n) {
- margin-right: 0; }
- .wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),
- .wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n),
- .blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),
- .blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n) {
- margin-right: 0; }
- .wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),
- .wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n),
- .blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),
- .blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n) {
- margin-right: 0; } }
- .wp-block-gallery .blocks-gallery-image:last-child,
- .wp-block-gallery .blocks-gallery-item:last-child,
- .blocks-gallery-grid .blocks-gallery-image:last-child,
- .blocks-gallery-grid .blocks-gallery-item:last-child {
- margin-right: 0; }
- .wp-block-gallery.alignleft, .wp-block-gallery.alignright,
- .blocks-gallery-grid.alignleft,
- .blocks-gallery-grid.alignright {
- max-width: 305px;
- width: 100%; }
- .wp-block-gallery.aligncenter .blocks-gallery-item figure,
- .blocks-gallery-grid.aligncenter .blocks-gallery-item figure {
- justify-content: center; }
-
-.wp-block-image {
- max-width: 100%;
- margin-bottom: 1em; }
- .wp-block-image img {
- max-width: 100%; }
- .wp-block-image.aligncenter {
- text-align: center; }
- .wp-block-image.alignfull img,
- .wp-block-image.alignwide img {
- width: 100%; }
- .wp-block-image .alignleft,
- .wp-block-image .alignright,
- .wp-block-image .aligncenter, .wp-block-image.is-resized {
- display: table;
- margin-left: 0;
- margin-right: 0; }
- .wp-block-image .alignleft > figcaption,
- .wp-block-image .alignright > figcaption,
- .wp-block-image .aligncenter > figcaption, .wp-block-image.is-resized > figcaption {
- display: table-caption;
- caption-side: bottom; }
- .wp-block-image .alignleft {
- /*rtl:ignore*/
- float: left;
- /*rtl:ignore*/
- margin-right: 1em; }
- .wp-block-image .alignright {
- /*rtl:ignore*/
- float: right;
- /*rtl:ignore*/
- margin-left: 1em; }
- .wp-block-image .aligncenter {
- margin-left: auto;
- margin-right: auto; }
- .wp-block-image figcaption {
- margin-top: 0.5em;
- margin-bottom: 1em; }
-
-.is-style-circle-mask img {
- border-radius: 9999px; }
- @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
- .is-style-circle-mask img {
- /* stylelint-disable */
- -webkit-mask-image: url('data:image/svg+xml;utf8,
');
- mask-image: url('data:image/svg+xml;utf8,
');
- /* stylelint-enable */
- mask-mode: alpha;
- -webkit-mask-repeat: no-repeat;
- mask-repeat: no-repeat;
- -webkit-mask-size: contain;
- mask-size: contain;
- -webkit-mask-position: center;
- mask-position: center;
- border-radius: none; } }
-
-.wp-block-latest-comments__comment {
- font-size: 15px;
- line-height: 1.1;
- list-style: none;
- margin-bottom: 1em; }
- .has-avatars .wp-block-latest-comments__comment {
- min-height: 36px;
- list-style: none; }
- .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,
- .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt {
- margin-left: 52px; }
- .has-dates .wp-block-latest-comments__comment,
- .has-excerpts .wp-block-latest-comments__comment {
- line-height: 1.5; }
-
-.wp-block-latest-comments__comment-excerpt p {
- font-size: 14px;
- line-height: 1.8;
- margin: 5px 0 20px; }
-
-.wp-block-latest-comments__comment-date {
- color: #8f98a1;
- display: block;
- font-size: 12px; }
-
-.wp-block-latest-comments .avatar,
-.wp-block-latest-comments__comment-avatar {
- border-radius: 24px;
- display: block;
- float: left;
- height: 40px;
- margin-right: 12px;
- width: 40px; }
-
-.wp-block-latest-posts.alignleft {
- /*rtl:ignore*/
- margin-right: 2em; }
-
-.wp-block-latest-posts.alignright {
- /*rtl:ignore*/
- margin-left: 2em; }
-
-.wp-block-latest-posts.wp-block-latest-posts__list {
- list-style: none; }
-
-.wp-block-latest-posts.is-grid {
- display: flex;
- flex-wrap: wrap;
- padding: 0; }
- .wp-block-latest-posts.is-grid li {
- margin: 0 16px 16px 0;
- width: 100%; }
-
-@media (min-width: 600px) {
- .wp-block-latest-posts.columns-2 li {
- width: calc((100% / 2) - 16px); }
- .wp-block-latest-posts.columns-3 li {
- width: calc((100% / 3) - 16px); }
- .wp-block-latest-posts.columns-4 li {
- width: calc((100% / 4) - 16px); }
- .wp-block-latest-posts.columns-5 li {
- width: calc((100% / 5) - 16px); }
- .wp-block-latest-posts.columns-6 li {
- width: calc((100% / 6) - 16px); } }
-
-.wp-block-latest-posts__post-date {
- display: block;
- color: #6c7781;
- font-size: 13px; }
-
-.wp-block-latest-posts__post-excerpt {
- margin-top: 8px;
- margin-bottom: 16px; }
-
-.wp-block-media-text {
- display: -ms-grid;
- display: grid;
- -ms-grid-rows: auto;
- grid-template-rows: auto;
- -ms-grid-columns: 50% 1fr;
- grid-template-columns: 50% 1fr; }
- .wp-block-media-text .has-media-on-the-right {
- -ms-grid-columns: 1fr 50%;
- grid-template-columns: 1fr 50%; }
-
-.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,
-.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media {
- -ms-grid-row-align: start;
- align-self: start; }
-
-.wp-block-media-text .wp-block-media-text__content,
-.wp-block-media-text .wp-block-media-text__media,
-.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,
-.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media {
- -ms-grid-row-align: center;
- align-self: center; }
-
-.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,
-.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media {
- -ms-grid-row-align: end;
- align-self: end; }
-
-.wp-block-media-text .wp-block-media-text__media {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 1;
- grid-row: 1;
- margin: 0; }
-
-.wp-block-media-text .wp-block-media-text__content {
- -ms-grid-column: 2;
- grid-column: 2;
- -ms-grid-row: 1;
- grid-row: 1;
- word-break: break-word;
- padding: 0 8% 0 8%; }
-
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
- -ms-grid-column: 2;
- grid-column: 2;
- -ms-grid-row: 1;
- grid-row: 1; }
-
-.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 1;
- grid-row: 1; }
-
-.wp-block-media-text > figure > img,
-.wp-block-media-text > figure > video {
- max-width: unset;
- width: 100%;
- vertical-align: middle; }
-
-.wp-block-media-text.is-image-fill figure {
- height: 100%;
- min-height: 250px;
- background-size: cover; }
-
-.wp-block-media-text.is-image-fill figure > img {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- margin: -1px;
- overflow: hidden;
- clip: rect(0, 0, 0, 0);
- border: 0; }
-
-/*
-* Here we here not able to use a mobile first CSS approach.
-* Custom widths are set using inline styles, and on mobile,
-* we need 100% width, so we use important to overwrite the inline style.
-* If the style were set on mobile first, on desktop styles,
-* we would have no way of setting the style again to the inline style.
-*/
-@media (max-width: 600px) {
- .wp-block-media-text.is-stacked-on-mobile {
- -ms-grid-columns: 100% !important;
- grid-template-columns: 100% !important; }
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 1;
- grid-row: 1; }
- .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 2;
- grid-row: 2; }
- .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 2;
- grid-row: 2; }
- .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content {
- -ms-grid-column: 1;
- grid-column: 1;
- -ms-grid-row: 1;
- grid-row: 1; } }
-
-.is-small-text {
- font-size: 14px; }
-
-.is-regular-text {
- font-size: 16px; }
-
-.is-large-text {
- font-size: 36px; }
-
-.is-larger-text {
- font-size: 48px; }
-
-.has-drop-cap:not(:focus)::first-letter {
- float: left;
- font-size: 8.4em;
- line-height: 0.68;
- font-weight: 100;
- margin: 0.05em 0.1em 0 0;
- text-transform: uppercase;
- font-style: normal; }
-
-.has-drop-cap:not(:focus)::after {
- content: "";
- display: table;
- clear: both;
- padding-top: 14px; }
-
-p.has-background {
- padding: 20px 30px; }
-
-p.has-text-color a {
- color: inherit; }
-
-.wp-block-pullquote {
- padding: 3em 0;
- margin-left: 0;
- margin-right: 0;
- text-align: center; }
- .wp-block-pullquote.alignleft, .wp-block-pullquote.alignright {
- max-width: 305px; }
- .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p {
- font-size: 20px; }
- .wp-block-pullquote p {
- font-size: 28px;
- line-height: 1.6; }
- .wp-block-pullquote cite,
- .wp-block-pullquote footer {
- position: relative; }
- .wp-block-pullquote .has-text-color a {
- color: inherit; }
-
-.wp-block-pullquote:not(.is-style-solid-color) {
- background: none; }
-
-.wp-block-pullquote.is-style-solid-color {
- border: none; }
- .wp-block-pullquote.is-style-solid-color blockquote {
- margin-left: auto;
- margin-right: auto;
- text-align: left;
- max-width: 60%; }
- .wp-block-pullquote.is-style-solid-color blockquote p {
- margin-top: 0;
- margin-bottom: 0;
- font-size: 32px; }
- .wp-block-pullquote.is-style-solid-color blockquote cite {
- text-transform: none;
- font-style: normal; }
-
-.wp-block-pullquote cite {
- color: inherit; }
-
-.wp-block-quote.is-style-large, .wp-block-quote.is-large {
- margin: 0 0 16px;
- padding: 0 1em; }
- .wp-block-quote.is-style-large p, .wp-block-quote.is-large p {
- font-size: 24px;
- font-style: italic;
- line-height: 1.6; }
- .wp-block-quote.is-style-large cite,
- .wp-block-quote.is-style-large footer, .wp-block-quote.is-large cite,
- .wp-block-quote.is-large footer {
- font-size: 18px;
- text-align: right; }
-
-.wp-block-rss.alignleft {
- /*rtl:ignore*/
- margin-right: 2em; }
-
-.wp-block-rss.alignright {
- /*rtl:ignore*/
- margin-left: 2em; }
-
-.wp-block-rss.is-grid {
- display: flex;
- flex-wrap: wrap;
- padding: 0;
- list-style: none; }
- .wp-block-rss.is-grid li {
- margin: 0 16px 16px 0;
- width: 100%; }
-
-@media (min-width: 600px) {
- .wp-block-rss.columns-2 li {
- width: calc(( 100% / 2 ) - 16px); }
- .wp-block-rss.columns-3 li {
- width: calc(( 100% / 3 ) - 16px); }
- .wp-block-rss.columns-4 li {
- width: calc(( 100% / 4 ) - 16px); }
- .wp-block-rss.columns-5 li {
- width: calc(( 100% / 5 ) - 16px); }
- .wp-block-rss.columns-6 li {
- width: calc(( 100% / 6 ) - 16px); } }
-
-.wp-block-rss__item-publish-date,
-.wp-block-rss__item-author {
- display: block;
- color: #6c7781;
- font-size: 13px; }
-
-.wp-block-search {
- display: flex;
- flex-wrap: wrap; }
- .wp-block-search .wp-block-search__label {
- width: 100%; }
- .wp-block-search .wp-block-search__input {
- flex-grow: 1; }
- .wp-block-search .wp-block-search__button {
- margin-left: 10px; }
-
-.wp-block-separator.is-style-wide {
- border-bottom-width: 1px; }
-
-.wp-block-separator.is-style-dots {
- background: none !important;
- border: none;
- text-align: center;
- max-width: none;
- line-height: 1;
- height: auto; }
- .wp-block-separator.is-style-dots::before {
- content: "\00b7 \00b7 \00b7";
- color: currentColor;
- font-size: 20px;
- letter-spacing: 2em;
- padding-left: 2em;
- font-family: serif; }
-
-.wp-block-social-links {
- display: flex;
- justify-content: flex-start;
- padding-left: 0;
- padding-right: 0;
- margin-left: 0; }
-
-.wp-social-link {
- display: block;
- width: 36px;
- height: 36px;
- border-radius: 36px;
- margin-right: 8px;
- transition: transform 0.1s ease; }
- .wp-social-link a {
- padding: 6px;
- display: block;
- line-height: 0;
- transition: transform 0.1s ease; }
- .wp-social-link a,
- .wp-social-link a:hover,
- .wp-social-link a:active,
- .wp-social-link a:visited,
- .wp-social-link svg {
- color: currentColor;
- fill: currentColor; }
- .wp-social-link:hover {
- transform: scale(1.1); }
-
-.wp-block-social-links.aligncenter {
- justify-content: center;
- display: flex; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
- background-color: #f0f0f0;
- color: #444; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon {
- background-color: #f90;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp {
- background-color: #1ea0c3;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance {
- background-color: #0757fe;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen {
- background-color: #1e1f26;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart {
- background-color: #02e49b;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble {
- background-color: #e94c89;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox {
- background-color: #4280ff;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy {
- background-color: #f45800;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook {
- background-color: #1977f2;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx {
- background-color: #000;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr {
- background-color: #0461dd;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare {
- background-color: #e65678;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github {
- background-color: #24292d;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads {
- background-color: #eceadd;
- color: #382110; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google {
- background-color: #ea4434;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram {
- background-color: #f00075;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm {
- background-color: #e21b24;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin {
- background-color: #0577b5;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon {
- background-color: #3288d4;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium {
- background-color: #02ab6c;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup {
- background-color: #f6405f;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest {
- background-color: #e60122;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket {
- background-color: #ef4155;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit {
- background-color: #fe4500;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype {
- background-color: #0478d7;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat {
- background-color: #fefc00;
- color: #fff;
- stroke: #000; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud {
- background-color: #ff5600;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify {
- background-color: #1bd760;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr {
- background-color: #011835;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch {
- background-color: #6440a4;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter {
- background-color: #21a1f3;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo {
- background-color: #1eb7ea;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk {
- background-color: #4680c2;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress {
- background-color: #3499cd;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp {
- background-color: #d32422;
- color: #fff; }
-
-.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube {
- background-color: #ff0100;
- color: #fff; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link {
- background: none;
- padding: 4px; }
- .wp-block-social-links.is-style-logos-only .wp-social-link svg {
- width: 28px;
- height: 28px; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-amazon {
- color: #f90; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp {
- color: #1ea0c3; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-behance {
- color: #0757fe; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-codepen {
- color: #1e1f26; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart {
- color: #02e49b; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble {
- color: #e94c89; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox {
- color: #4280ff; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-etsy {
- color: #f45800; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-facebook {
- color: #1977f2; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx {
- color: #000; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-flickr {
- color: #0461dd; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare {
- color: #e65678; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-github {
- color: #24292d; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads {
- color: #382110; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-google {
- color: #ea4434; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-instagram {
- color: #f00075; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm {
- color: #e21b24; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin {
- color: #0577b5; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon {
- color: #3288d4; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-medium {
- color: #02ab6c; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-meetup {
- color: #f6405f; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest {
- color: #e60122; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-pocket {
- color: #ef4155; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-reddit {
- color: #fe4500; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-skype {
- color: #0478d7; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat {
- color: #fff;
- stroke: #000; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud {
- color: #ff5600; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-spotify {
- color: #1bd760; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr {
- color: #011835; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-twitch {
- color: #6440a4; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-twitter {
- color: #21a1f3; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo {
- color: #1eb7ea; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-vk {
- color: #4680c2; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress {
- color: #3499cd; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-yelp {
- background-color: #d32422;
- color: #fff; }
-
-.wp-block-social-links.is-style-logos-only .wp-social-link-youtube {
- color: #ff0100; }
-
-.wp-block-social-links.is-style-pill-shape .wp-social-link {
- width: auto; }
-
-.wp-block-social-links.is-style-pill-shape .wp-social-link a {
- padding-left: 16px;
- padding-right: 16px; }
-
-.wp-block-spacer {
- clear: both; }
-
-p.wp-block-subhead {
- font-size: 1.1em;
- font-style: italic;
- opacity: 0.75; }
-
-.wp-block-table {
- overflow-x: auto; }
- .wp-block-table table {
- width: 100%; }
- .wp-block-table .has-fixed-layout {
- table-layout: fixed;
- width: 100%; }
- .wp-block-table .has-fixed-layout td,
- .wp-block-table .has-fixed-layout th {
- word-break: break-word; }
- .wp-block-table.alignleft, .wp-block-table.aligncenter, .wp-block-table.alignright {
- display: table;
- width: auto; }
- .wp-block-table.alignleft td,
- .wp-block-table.alignleft th, .wp-block-table.aligncenter td,
- .wp-block-table.aligncenter th, .wp-block-table.alignright td,
- .wp-block-table.alignright th {
- word-break: break-word; }
- .wp-block-table .has-subtle-light-gray-background-color {
- background-color: #f3f4f5; }
- .wp-block-table .has-subtle-pale-green-background-color {
- background-color: #e9fbe5; }
- .wp-block-table .has-subtle-pale-blue-background-color {
- background-color: #e7f5fe; }
- .wp-block-table .has-subtle-pale-pink-background-color {
- background-color: #fcf0ef; }
- .wp-block-table.is-style-stripes {
- border-spacing: 0;
- border-collapse: inherit;
- background-color: transparent;
- border-bottom: 1px solid #f3f4f5; }
- .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
- background-color: #f3f4f5; }
- .wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) {
- background-color: #f3f4f5; }
- .wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
- background-color: #e9fbe5; }
- .wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
- background-color: #e7f5fe; }
- .wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
- background-color: #fcf0ef; }
- .wp-block-table.is-style-stripes th,
- .wp-block-table.is-style-stripes td {
- border-color: transparent; }
-
-.wp-block-text-columns {
- display: flex; }
- .wp-block-text-columns.aligncenter {
- display: flex; }
- .wp-block-text-columns .wp-block-column {
- margin: 0 16px;
- padding: 0; }
- .wp-block-text-columns .wp-block-column:first-child {
- margin-left: 0; }
- .wp-block-text-columns .wp-block-column:last-child {
- margin-right: 0; }
- .wp-block-text-columns.columns-2 .wp-block-column {
- width: calc(100% / 2); }
- .wp-block-text-columns.columns-3 .wp-block-column {
- width: calc(100% / 3); }
- .wp-block-text-columns.columns-4 .wp-block-column {
- width: calc(100% / 4); }
-
-pre.wp-block-verse {
- white-space: nowrap;
- overflow: auto; }
-
-.wp-block-video {
- margin-left: 0;
- margin-right: 0; }
- .wp-block-video video {
- max-width: 100%; }
- @supports ((position: -webkit-sticky) or (position: sticky)) {
- .wp-block-video [poster] {
- -o-object-fit: cover;
- object-fit: cover; } }
- .wp-block-video.aligncenter {
- text-align: center; }
- .wp-block-video figcaption {
- margin-top: 0.5em;
- margin-bottom: 1em; }
-
-:root .has-pale-pink-background-color {
- background-color: #f78da7; }
-
-:root .has-vivid-red-background-color {
- background-color: #cf2e2e; }
-
-:root .has-luminous-vivid-orange-background-color {
- background-color: #ff6900; }
-
-:root .has-luminous-vivid-amber-background-color {
- background-color: #fcb900; }
-
-:root .has-light-green-cyan-background-color {
- background-color: #7bdcb5; }
-
-:root .has-vivid-green-cyan-background-color {
- background-color: #00d084; }
-
-:root .has-pale-cyan-blue-background-color {
- background-color: #8ed1fc; }
-
-:root .has-vivid-cyan-blue-background-color {
- background-color: #0693e3; }
-
-:root .has-vivid-purple-background-color {
- background-color: #9b51e0; }
-
-:root .has-very-light-gray-background-color {
- background-color: #eee; }
-
-:root .has-cyan-bluish-gray-background-color {
- background-color: #abb8c3; }
-
-:root .has-very-dark-gray-background-color {
- background-color: #313131; }
-
-:root .has-pale-pink-color {
- color: #f78da7; }
-
-:root .has-vivid-red-color {
- color: #cf2e2e; }
-
-:root .has-luminous-vivid-orange-color {
- color: #ff6900; }
-
-:root .has-luminous-vivid-amber-color {
- color: #fcb900; }
-
-:root .has-light-green-cyan-color {
- color: #7bdcb5; }
-
-:root .has-vivid-green-cyan-color {
- color: #00d084; }
-
-:root .has-pale-cyan-blue-color {
- color: #8ed1fc; }
-
-:root .has-vivid-cyan-blue-color {
- color: #0693e3; }
-
-:root .has-vivid-purple-color {
- color: #9b51e0; }
-
-:root .has-very-light-gray-color {
- color: #eee; }
-
-:root .has-cyan-bluish-gray-color {
- color: #abb8c3; }
-
-:root .has-very-dark-gray-color {
- color: #313131; }
-
-.has-small-font-size {
- font-size: 13px; }
-
-.has-regular-font-size,
-.has-normal-font-size {
- font-size: 16px; }
-
-.has-medium-font-size {
- font-size: 20px; }
-
-.has-large-font-size {
- font-size: 36px; }
-
-.has-larger-font-size,
-.has-huge-font-size {
- font-size: 42px; }
-
-.has-text-align-center {
- text-align: center; }
-
-.has-text-align-left {
- /*rtl:ignore*/
- text-align: left; }
-
-.has-text-align-right {
- /*rtl:ignore*/
- text-align: right; }
diff --git a/src/templates/partials/gutenberg_theme.5.3.css b/src/templates/partials/gutenberg_theme.5.3.css
deleted file mode 100644
index d935bc5b..00000000
--- a/src/templates/partials/gutenberg_theme.5.3.css
+++ /dev/null
@@ -1,145 +0,0 @@
-/**
- * Colors
- */
-/**
- * Breakpoints & Media Queries
- */
-/**
- * Often re-used variables
- */
-/**
- * Breakpoint mixins
- */
-/**
- * Long content fade mixin
- *
- * Creates a fading overlay to signify that the content is longer
- * than the space allows.
- */
-/**
- * Button states and focus styles
- */
-/**
- * Applies editor left position to the selector passed as argument
- */
-/**
- * Applies editor right position to the selector passed as argument
- */
-/**
- * Styles that are reused verbatim in a few places
- */
-/**
- * Allows users to opt-out of animations via OS-level preferences.
- */
-/**
- * Reset default styles for JavaScript UI based pages.
- * This is a WP-admin agnostic reset
- */
-/**
- * Reset the WP Admin page styles for Gutenberg-like pages.
- */
- .wp-block-audio figcaption {
- color: #555d66;
- font-size: 13px;
- text-align: center; }
-
- .wp-block-code {
- font-family: Menlo, Consolas, monaco, monospace;
- font-size: 14px;
- color: #23282d;
- padding: 0.8em 1em;
- border: 1px solid #e2e4e7;
- border-radius: 4px; }
-
- .wp-block-embed figcaption {
- color: #555d66;
- font-size: 13px;
- text-align: center; }
-
- .blocks-gallery-caption {
- color: #555d66;
- font-size: 13px;
- text-align: center; }
-
- .wp-block-image figcaption {
- color: #555d66;
- font-size: 13px;
- text-align: center; }
-
- .wp-block-preformatted pre {
- font-family: Menlo, Consolas, monaco, monospace;
- color: #23282d;
- /* Fonts smaller than 16px causes mobile safari to zoom. */
- font-size: 16px; }
- @media (min-width: 600px) {
- .wp-block-preformatted pre {
- font-size: 14px; } }
-
- .wp-block-pullquote {
- border-top: 4px solid #555d66;
- border-bottom: 4px solid #555d66;
- margin-bottom: 28px;
- color: #40464d; }
- .wp-block-pullquote cite,
- .wp-block-pullquote footer, .wp-block-pullquote__citation {
- color: #40464d;
- text-transform: uppercase;
- font-size: 13px;
- font-style: normal; }
-
- .wp-block-quote {
- border-left: 4px solid #000;
- margin: 0 0 28px 0;
- padding-left: 1em; }
- .wp-block-quote cite,
- .wp-block-quote footer, .wp-block-quote__citation {
- color: #6c7781;
- font-size: 13px;
- margin-top: 1em;
- position: relative;
- font-style: normal; }
- .wp-block-quote.has-text-align-right, .wp-block-quote.has-text-align-right {
- border-left: none;
- border-right: 4px solid #000;
- padding-left: 0;
- padding-right: 1em; }
- .wp-block-quote.has-text-align-center, .wp-block-quote.has-text-align-center {
- border: none;
- padding-left: 0; }
- .wp-block-quote.is-style-large, .wp-block-quote.is-large {
- border: none; }
-
- .wp-block-search .wp-block-search__label {
- font-weight: bold; }
-
- .wp-block-group.has-background {
- padding: 20px 30px;
- margin-top: 0;
- margin-bottom: 0; }
-
- .wp-block-separator {
- border: none;
- border-bottom: 2px solid #8f98a1;
- margin-left: auto;
- margin-right: auto; }
- .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
- max-width: 100px; }
- .wp-block-separator.has-background:not(.is-style-dots) {
- border-bottom: none;
- height: 1px; }
- .wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {
- height: 2px; }
-
- .wp-block-table {
- border-collapse: collapse; }
- .wp-block-table td,
- .wp-block-table th {
- padding: 0.5em;
- border: 1px solid;
- word-break: normal; }
-
- .wp-block-video figcaption {
- color: #555d66;
- font-size: 13px;
- text-align: center; }
-
\ No newline at end of file
diff --git a/src/templates/partials/hero.php b/src/templates/partials/hero.php
deleted file mode 100644
index 8af0b28d..00000000
--- a/src/templates/partials/hero.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- 'hero-img', 'class' => 'hero__img', 'alt' => '#' ) ); ?>
-
\ No newline at end of file
diff --git a/src/templates/partials/ie.php b/src/templates/partials/ie.php
deleted file mode 100644
index b0e218f4..00000000
--- a/src/templates/partials/ie.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/src/templates/sections/footer.php b/src/templates/sections/footer.php
deleted file mode 100755
index 02738b35..00000000
--- a/src/templates/sections/footer.php
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-