<div id="n" class="some-class">111</div>
.some-class {display:none;}
.some-class.active {display:block}
<a href="#anchor1"></a>
<div id="anchor1"></div>
$("a[href^='#anchor']").on('click', function (event) {
event.preventDefault();
event.stopPropagation();
var $this = $(this),
$target = $($this.attr('href'));
$target.toggleClass('active');
});
echo show_rubrics(); //index.php
echo show_rubrics(get_query_var('cat')); //category.php
$rubrics = '';
foreach ($heading as $categories_item) {
$term_taxonomy_id = $categories_item->term_taxonomy_id;
$image_id = get_term_meta ( $term_taxonomy_id, 'id-cat-images', true );
$img = wp_get_attachment_image ( $image_id, 'thumbnail' );
$rubrics .= '<div class="my-class"><div class="my-class"><a href="' . get_category_link( $categories_item->term_id ) . '">' . $img . '<span class="my-class">' . $categories_item->name . '</span></a><span class="my-class">' . $categories_item->category_description . '</span></div></div>';
//echo $rubrics;
}
return $rubrics;
function show_rubrics($cat = 0) {
$heading = get_categories(array(
'parent' => $cat,
....
);
...
}
echo show_rubrics();
echo show_rubrics(get_query_var('cat'));
use Test\File2;
new File2\ClassName();
use Test\File1\ClassName;
use Test\File2\ClassName as ClassName2;
new ClassName2();
new ClassName();
Как инициирует на клиенте/сервере? Какие библиотеки? Handshake нормально проходит?
Смотрите логи сервера, события на клиенте.