<?xml version="1.0" encoding="utf-8"?>
<svg class="icon icon_service-map" role="img">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="service-man" viewBox="0 0 300 300" width="100%" height="100%">
<g fill="none">
<path fill="#E74825" d="M150.03 52.645v-.004c.014 0 .028.004.051.004V0c-42.19.004-75.758 34.202-75.758 76.387 0 17.719 8.488 38.257 18.613 51.218-16.332 6.244-25.937 12.008-34.103 19.213C44.413 159.542 30.97 175.653 31 228.953v72.356h119.054v-59.527H90.527c0-13.49-.47-25.686 1.624-36.238 2.665-13.366 11.68-35.915 57.914-35.915l.015-17.937v-43.075c-.023 0-.037.004-.052.004v-.007c-13.495-.083-25.095-15.907-25.095-30.141 0-14.233 10.873-25.768 25.096-25.828"></path>
<path fill="#CD965E" d="M150.107 52.645v-.004c-.014 0-.029.004-.052.004V0c42.19.004 76.962 34.202 76.962 76.387 0 17.719-8.488 38.257-18.612 51.218 16.33 6.244 25.936 12.008 34.101 19.213 11.867 10.469 21.568 23.19 25.343 57.09.815 7.302 1.26 15.589 1.26 25.045v46.844H150.056V216.29h59.528c0-3.846-.323-5.625-1.427-10.747-2.87-13.325-11.852-35.915-58.087-35.915l-.014-61.012c.022 0 .036.004.052.004v-.007c13.494-.083 26.3-15.907 26.3-30.141 0-14.233-12.077-25.768-26.3-25.828"></path>
</g>
</svg>
</svg>
add_action( 'add_attachment', 'my_add_attachment_function' );
function my_add_attachment_function( $post_ID ) {
if ( wp_attachment_is_image( $post_ID ) ) {
$my_image_meta = array(
'ID' => $post_ID,
'post_title' => 'Заголовок', // Title
'post_excerpt' => 'Подпись', // Caption
'post_content' => 'Описание', // Description
);
wp_update_post( $my_image_meta );
}
}
$file = 'result.xlsx';
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment; filename="result.xlsx"');
header('Cache-Control: max-age=0');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: cache, must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
<html>
<head>
<style type="text/css">
.btn {
display: block;
width: 300px;
height: 50px;
background: #003399;
text-align: center;
padding: 30px 40px 0 40px;
position: relative;
margin: 0 10px 0 0;
color: #fff;
}
.btn:after {
content: "";
border-top: 40px solid transparent;
border-bottom: 40px solid transparent;
border-left: 40px solid #003399;
position: absolute; right: -40px; top: 0;
}
</style>
</head>
<body>
<a class="btn">NEXT</a>
</body>
</html>
.btn {
display: block;
position: relative;
width: 300px;
height: 35px;
background: #003399;
border: 2px solid #3399cc;
border-radius: 5px;
text-align: center;
padding: 15px 20px 0 0;
color: #fff;
}
.btn:after {
content: "";
position: absolute;
width: 38px;
height: 38px;
transform: rotate(45deg);
right: -18px;
top: 5px;
background: #003399;
border-top: 2px solid #3399cc;
border-right: 2px solid #3399cc;
border-radius: 5px;
}
function remove_files( $dirname ) {
$type = array( 'jpg', 'jpeg', 'png' );
if ( is_dir($dirname) ) { $dir_handle = opendir( $dirname ); }
if ( !$dir_handle ) { return false; }
while( $file = readdir( $dir_handle ) ) {
$ext = explode( '.', $file );
if( !in_array( end( $ext ), $type ) ) { continue; }
if ( $file != '.' && $file != '..' && !is_dir( $dirname . '/' . $file )) {
unlink( $dirname . '/' . $file );
}
}
closedir($dir_handle);
return true;
}
remove_files( '/usr/share/nginx/html/upload' );
define('WP_DEBUG', true);
<p></p>
, а так как параграф пустой, то он заменяется на
. Возможны несколько способов решения этого:<a rel="nofollow" href="vyvod-iz-zapoya-na-domu.html">
<i class="fa fa-home pm-icon-btn"></i>
</a>
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
function lvl_home_post_slides( $atts ) {
...
$options = array(
'post_type' => $args['type'],
'posts_per_page' => $args['posts'],
'post_status' => 'publish',
'orderby' => array(
'post_date' => 'DESC',
'meta_value' => 'ASC'
),
'meta_key' => 'event_date'
);
$query = new WP_Query( $options );
...
}
function load_scripts() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_enqueue_script('jquery', '//code.jquery.com/jquery-3.4.1.min.js', array(), 'cdn', false);
add_filter('script_loader_src', 'jquery_local_fallback', 10, 2);
}
}
add_action('wp_enqueue_scripts', 'load_scripts', 100);
function jquery_local_fallback($src, $handle = null) {
static $add_jquery_fallback = false;
if ($add_jquery_fallback) {
echo '<script>window.jQuery || document.write(\'<script src="';
echo get_template_directory_uri() . '/assets/js/jquery-3.4.1.min.js';
echo '"><\/script>\')</script>' . "\n";
$add_jquery_fallback = false;
}
if ($handle === 'jquery') {
$add_jquery_fallback = true;
}
return $src;
}
add_action('wp_head', 'jquery_local_fallback');
.ipad {
display: block;
margin: 60px auto 0;
}
.ipad {
display: block;
margin: 60px auto 0;
max-height: 320px;
width: auto !important;
}
[remotegif src=»<img src=» <img src="http://i.yapx.ru/Fn3wd.gif">» />»]
[remotegif src="http://i.yapx.ru/Fn3wd.gif"]
the_content();
echo apply_filters( 'the_content', $post_content );
echo apply_filters( 'the_content', $wp_query->post->post_content );
remove_shortcode();
remove_filter('the_content', 'wpautop');