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
jQuery('.after-forgot-password').html(''); | |
jQuery('.after-forgot-password').append(`<p><?php _e('DEMOs BOOOM'); ?><p>`); |
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
<style> | |
#map { | |
height: 360px; | |
width: 100%; | |
} | |
</style> | |
<script type="text/javascript"> | |
function createMap(){ |
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 the_modified_time('n j, Y');?> | |
<br> | |
<?php echo date( 'n j, Y');?> | |
<br> | |
<?php echo get_field('datapicer') ?> | |
<?php | |
$post_n = get_field('datapicer'); | |
$post_t = date('m d, Y'); |
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 if (is_user_logged()) { ?> | |
<a href="<?php echo do_shortcode(''); ?>" class="btn btn-primary btn-xs"><?php _e('Trade now', 'oh'); ?></a> | |
<?php } else { ?> | |
<a href="<?php echo do_shortcode(''); ?>" class="btn btn-primary btn-xs"><?php _e('Sign Up', 'oh'); ?></a> | |
<?php } ?> |
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
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); |
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
wp-json/wp/v2/posts?_embed&per_page=24&page=1 | |
wp-json/wp/v2/blog/?_embed&per_page=24&page=1 | |
blog - // category | |
?_embed - // echo list img and list topic | |
http://domennn/wp-json/wp/v2/blog?_embed&categories=16 | |
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
Добавим этот код functions.php ( для удобства разместите в конце файла ). | |
function getPostViews($postID){ | |
$count_key = 'post_views_count'; | |
$count = get_post_meta($postID, $count_key, true); | |
if($count==''){ | |
delete_post_meta($postID, $count_key); | |
add_post_meta($postID, $count_key, '0'); | |
return "0 просмотров"; | |
} |
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
<script type='text/javascript'> | |
$( document ).ready(function() { | |
$('footer').addClass('none'); | |
var anchors = []; | |
var currentAnchor = -1; | |
var isAnimating = 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
/------------------------------------------------- PHP --------------------------------------------------/ | |
<div id="conclusion_concludion"> | |
<?php ml_calendar(false); ?> | |
</div> | |
<script type='text/javascript'> | |
var ajax_url = "<?= admin_url('admin-ajax.php'); ?>"; | |
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
function remove_scripts() { | |
wp_dequeue_script( 'script-name' ); | |
} | |
function remove_styles() { | |
wp_dequeue_style( 'style-name' ); | |
} | |
add_action( 'wp_print_scripts', 'remove_scripts' ); | |
add_action( 'wp_print_styles', 'remove_styles' ); |