$a = glob('*.PNG');
foreach($a as $name)
{
$name_new = str_replace(".PNG", ".png", $name);
rename($name, $name_new);
}
strcmp()
.$uri = $_SERVER['REQUEST_URI'];
if(strcmp($uri,'/wp-admin/post-new.php?post_type=slide')===0) echo 'Соответствует!';
else echo 'Не соответствует!';
<script src="/inc/bootstrap.js"></script>
. Аналогично подключил и стили.<?php
echo '<div class="goods-single-thumb-container">';
if (has_post_thumbnail()) {
$large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
echo '<a title="' . the_title_attribute('echo=0') . '" >';
the_post_thumbnail('medium', array('class' => 'goods-single-thumb'));
echo '</a>';
} else {
// show default image if the thumbnail is not found
echo '<img class="goods-item-thumb" src="' . plugins_url( '/img/gi.png' , dirname(__FILE__) ) . '" alt="">';
}
echo '</div>';
?>