function drawText(deg, text,color) {
ctx.save();
ctx.translate(center, center);
ctx.rotate(deg2rad(deg));
ctx.textAlign = "right";
ctx.fillStyle = color;
ctx.font = '400 ' + wheel_text_size + 'px Helvetica';
ctx.shadowOffsetX = 0;
ctx.shadowOffsetY = 0;
text = text.replace(/&#(\d{1,4});/g, function (fullStr, code) {
return String.fromCharCode(code);
});
var textWidth = canvas_width * 0.2,
lines = fragmentText(text, textWidth),
linesLength = lines.length,
marginTop = wheel_text_size*linesLength/1.5; // для вертикального выравнивая строк
lines.forEach(function(line, i) {
ctx.fillText(line, 7 * center / 8, ((i+1) * (wheel_text_size+2))-marginTop);
});
ctx.restore();
}
function attrName_to_termMetaOrder() {
$terms = get_terms(array(
'hide_empty' => 0,
'order' => 'ASC',
'taxonomy' => 'pa_proizvoditelnost',
'pad_counts' => 1
));
if (!empty($terms) && !is_wp_error($terms)){
foreach ($terms as $term) {
update_term_meta($term->term_id, 'order_pa_proizvoditelnost', intval($term->name), "");
}
}
}
<div id="footer">
<div class="footer-row footer-row--1">
<div class="select select--lng">
<select name="lng">
<option value="Русский">Русский</option>
<option value="Английский">Английский</option>
...
</select>
</div>
<div class="menu menu--footer">
<ul>
<li><a href="#">О нас</a></li>
<li><a href="#">Как играть</a></li>
...
</ul>
</div>
</div>
<div class="footer-row footer-row--2">
<div class="policy--footer">
<p>18+</p>
</div>
<div class="info--footer">
<p>Что такое</p>
</div>
<div class="soc soc--footer">
<ul>
<li><a href="#">twitter</a></li>
<li><a href="#">facebook</a></li>
...
</ul>
</div>
</div>
</div>
.col-2>.header--logo
<script>
<? if( have_rows('galls') ): ?>
<? $numg = 1; ?>
<? while( have_rows('galls') ): the_row(); ?>
<? $images = get_sub_field('gall'); ?>
<? if( $images ): ?>
var photos<?=$numg;?> = [
<? foreach( $images as $image ): ?>
{src: '<? echo $image['url']; ?>'},
<? endforeach; ?>
];
$("ul.fancybox-list li:eq(<?=$numg-1;?>) a").on('click', function(event) {
$.fancybox.open(photos<?=$numg;?>,{});
event.preventDefault();
});
<? endif; ?>
<? $numg = $numg +1; ?>
<? endwhile; ?>
<? endif; ?>
</script>
<? foreach($arResult["SECTIONS"] as $arSection): ?>
<li><a href="#">Увеличение груди</a></li>
<? endforeach ?>
<? foreach($arResult["SECTIONS"] as $arSection): ?>
<? $link ='<a href="'.$arSection["SECTION_PAGE_URL"].'">'.$arSection["NAME"].'</a>'; ?>
<li><? =$link; ?></li>
<? endforeach ?>
$chosen = is_array($_POST['choice']) ? $_POST['choice'] : array();
$chosen = implode (', ', $chosen );