<html>
<head>
<title>reCAPTCHA demo: Explicit render after an onload callback</title>
<script type="text/javascript">
var onSubmit = function(token) {
console.log('success!');
};
var onloadCallback = function() {
grecaptcha.render('submit', {
'sitekey' : 'your_site_key',
'callback' : onSubmit
});
};
</script>
</head>
<body>
<form action="?" method="POST">
<input id='submit' type="submit" value="Submit">
</form>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>
</body>
</html>
<?php
$args = array(
'type' => 'post',
'child_of' => 0,
'parent' => $cat,
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 1,
'hierarchical' => 1,
'exclude' => '',
'include' => '',
'number' => 0,
'taxonomy' => 'category',
'pad_counts' => false,
// полный список параметров смотрите в описании функции http://wp-kama.ru/function/get_terms
);
$i=1;
$cat = get_query_var('cat');
$categories = get_categories( $args );
foreach ($categories as $category) { $i++; }
if ($i > 1) {
foreach ($categories as $category) { ?>
<div class="smartphone wow fadeIn">
<div class="smartphone-logo">
<img src="<?php echo z_taxonomy_image_url($category->term_id); ?>"/>
</div>
<div class="smartphone-content">
<span><?php echo $category->name; ?></span>
<p></p>
<a href="<?php echo get_category_link($category->term_id); ?>" class="blick"><span>Подробнее</span><img src="<?php bloginfo('template_directory'); ?>/img/icons/arrow-blue-icon.svg" width="7" height="11"></a>
</div>
</div>
<?php }
} else {
}
?>