This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ .(scripts|styles|images|views)/(.*)/(.*)$ { | |
try_files $uri $uri/ /../frontend/app/$1/$2/$3; | |
} | |
location ~ .(scripts|styles|images|views)/(.*)$ { | |
try_files $uri $uri/ /../frontend/app/$1/$2; | |
} | |
location ~ .(bower_components)/(.*)/(.*)$ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#php_flag display_startup_errors on | |
#php_flag display_errors on | |
#php_flag html_errors on | |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install https://github.com/regenrek/WP-Aqua-Resizer Wordpress plugin | |
$att_id = get_post_thumbnail_id(get_the_ID()); | |
$image = aq_resize(wp_get_attachment_url( $att_id ), 400, 400,true, false); ?> | |
<img src="<?php echo $image[0]; ?>" alt="img" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is an extension Class which works with Bitbucket Server. | |
* See here https://github.com/YahnisElsts/plugin-update-checker/issues/119#issuecomment-318436920 | |
*/ | |
if ( !class_exists('BitbucketServerApi', false) ): | |
class BitbucketServerApi extends Puc_v4p2_Vcs_Api { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "package", | |
"package": { | |
"name": "macherjek/white-label-branding", | |
"version": "4.1.6.75841", | |
"type": "wordpress-plugin", | |
"dist": { | |
"type": "zip", | |
"url": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "DB_HOST='db' | |
DB_NAME='$MYSQL_DATABASE' | |
DB_PASSWORD='$MYSQL_PASSWORD' | |
DB_USER='$MYSQL_USER' | |
DISABLE_WP_CRON='True' | |
WP_ENV='development' | |
WP_HOME='http://${VIRTUAL_HOST}' | |
WP_SITEURL='http://${VIRTUAL_HOST}/wp' | |
ACF_PRO_KEY='${ACF_PRO_KEY}" > .env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// bootstrap.php | |
private function _includes(){ | |
global $ae_template; | |
require_once AE_PRO_PATH.'includes/themes/Ae_Theme_Base.php'; | |
if(file_exists(AE_PRO_PATH.'includes/themes/'.$ae_template.'/Ae_Theme.php')){ | |
require_once AE_PRO_PATH.'includes/themes/'.$ae_template.'/Ae_Theme.php'; | |
}else{ | |
add_action( 'after_setup_theme', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* /!\ This is a copy of Walker_Nav_Menu_Edit class in core | |
* | |
* Create HTML list of nav menu input items. | |
* | |
* @package WordPress | |
* @since 3.0.0 | |
* @uses Walker_Nav_Menu | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<figure :class="[objectFit !== '' ? 'is-' + objectFit : '']"> | |
<picture v-if="imageFetchMode === 'srcset'"> | |
<source :data-srcset="image.webp" type="image/webp" /> | |
<source :data-srcset="image.opt" type="image/jpg" /> | |
<img | |
:src="image.placeholder" | |
class="lazyload blur" | |
:data-src="image.opt" | |
/> |
OlderNewer