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
INPUT DATA TO FORM | |
import { Validators } from '@angular/forms'; | |
export class InputData { | |
field: string; | |
icon: string; | |
validation: Validators[]; | |
errorMessage: string; |
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
1) Add to local site 2 files | wp-config.php | wp-config-local.php | |
2) Change in wp-config-local.php to your test | define('DB_NAME', 'test7.f5-cloud.top'); | |
3) Change in wp-config.php db prefix | |
4) Change project folder name to test domain, example "test5.f5.cloud.top"; |
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
img { | |
max-width: 100%; | |
height: auto; | |
vertical-align: middle; | |
outline: none; | |
user-select: none; | |
&:hover, &:focus { | |
outline: none; | |
user-select: none; |
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
DON'T FORGET ** | |
- change to your value $image, setPostType(), html response tpl, html classes | |
- hide by deffault in css 'page-stories__item' | |
IN YOUR TEMPLATE | |
================ | |
<!-- get all custom taxonomy categories --> | |
<div class="stories-category__wrapper"> |
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
/** | |
* Hide all ACF field by default | |
*/ | |
add_action('acf/input/admin_head', 'my_acf_input_admin_head'); | |
function my_acf_input_admin_head() { ?> | |
<script type="text/javascript"> | |
jQuery(function(){ | |
jQuery('.acf-postbox').addClass('closed'); | |
}); | |
</script> |
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
/** | |
* Add description to Featured image box | |
*/ | |
function admin_post_thumbnail_descr( $content, $post_id, $thumbnail_id ) { | |
$caption = '<p style="color: #c04747;">' . esc_html__( 'Minimum image size: ', 'i18n-tag' ) . '</p>'; | |
$caption2 = '<p style="color: #c04747;">' . esc_html__( 'width:800px; height: 300px;', 'i18n-tag' ) . '</p>'; | |
return $content . $caption . $caption2; | |
} | |
add_filter( 'admin_post_thumbnail_html', 'admin_post_thumbnail_descr', 10, 3 ); |
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 | |
=== | |
<!-- section-hero --> | |
<?php | |
$select_value = get_field('hero_section_background_setting'); | |
$opacity = get_field('hero_section_shadow_gradient_opacity'); | |
if($opacity < 0 || $opacity == NULL) { | |
$opacity = 0.75; | |
} |
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
//youtube | |
<?php | |
$url = 'https://www.youtube.com/embed/5DEdR5lqnDE'; //change url | |
$list_id = array_pop(explode('/', $url)); | |
$autoplay = '?autoplay=1'; | |
$controls = '&controls=0'; | |
$loop = '&loop=1'; | |
$rel = '&rel=0'; | |
$mute = '&mute=1'; | |
$playlist = '&playlist='.$list_id.''; |
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
https://michalsnik.github.io/aos/ |
NewerOlder