This file contains hidden or 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 | |
| class Script_Module { | |
| private array $js_handles; | |
| private array $js_localization; | |
| private array $wpjs_strategies; | |
| private string $current_js_handler; | |
| public function __construct() { | |
| $this->wpjs_strategies = array( | |
| 'in_footer' => true, |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| deploy: | |
| restart_policy: | |
| condition: on-failure |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| deploy: | |
| restart_policy: | |
| condition: on-failure |
This file contains hidden or 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
| version: '2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - ./db:/docker-entrypoint-initdb.d | |
| - ./db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
This file contains hidden or 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
| version: '2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - ./db:/docker-entrypoint-initdb.d | |
| - ./db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
This file contains hidden or 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 | |
| /** | |
| * Wordpress Image Handling. | |
| * | |
| * @param array $file $_FILE. File Path Request. | |
| * @return array $status Status | |
| */ | |
| function imageHandling( $file ) | |
| { | |
| $imageArray = wp_handle_upload( $file, ['test_form' => false] ); |
This file contains hidden or 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
| $breakpoints: ( | |
| "phone": 400px, | |
| "phone-wide": 480px, | |
| "phablet": 560px, | |
| "tablet-small": 640px, | |
| "tablet": 768px, | |
| "tablet-wide": 1024px, | |
| "desktop": 1248px, | |
| "desktop-wide": 1440px | |
| ); |
This file contains hidden or 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
| $flex-justify: ( | |
| 'start' : 'flex-start', | |
| 'end' : 'flex-end', | |
| 'center' : 'center', | |
| 'between' : 'space-between', | |
| 'around' : 'space-around' | |
| ); | |
| $flex-align: ( | |
| 'start' : 'flex-start', |
This file contains hidden or 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
| // Best added in :before or :after | |
| @mixin img_overlay($width, $height, $url : '../img/video-player.png' ) { | |
| background-image: url($url); | |
| max-width: #{$width}px; | |
| max-height: #{$height}px; | |
| content: ' '; | |
| display: block; | |
| width: 100%; | |
| position: absolute; | |
| height: 100%; |
This file contains hidden or 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
| /** | |
| * Allows to switch between excerpt and content. | |
| * If excerpt is not set we will use content but limit the words. | |
| * Ideally use for custom queries. | |
| * | |
| * @param string $content | |
| * @param string $excerpt | |
| * @param int $word_limit | |
| * @param string $more | |
| * @return string $trimmed_content |
NewerOlder