WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Blocks\BlockTypes

Cart::get_skeleton() protected WC 1.0

Render skeleton markup for the cart block.

{} Это метод класса: Cart{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_skeleton();

Код Cart::get_skeleton() WC 4.7.1

<?php
protected function get_skeleton() {
	return '
		<div class="wc-block-skeleton wc-block-components-sidebar-layout wc-block-cart wc-block-cart--is-loading wc-block-cart--skeleton hidden" aria-hidden="true">
			<div class="wc-block-components-main wc-block-cart__main">
				<h2><span></span></h2>
				<table class="wc-block-cart-items">
					<thead>
						<tr class="wc-block-cart-items__header">
							<th class="wc-block-cart-items__header-image"><span /></th>
							<th class="wc-block-cart-items__header-product"><span /></th>
							<th class="wc-block-cart-items__header-quantity"><span /></th>
							<th class="wc-block-cart-items__header-total"><span /></th>
						</tr>
					</thead>
					<tbody>
						<tr class="wc-block-cart-items__row">
							<td class="wc-block-cart-item__image">
								<div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=" width="1" height="1" /></div>
							</td>
							<td class="wc-block-cart-item__product">
								<div class="wc-block-cart-item__product-name"></div>
								<div class="wc-block-cart-item__product-metadata"></div>
							</td>
							<td class="wc-block-cart-item__quantity">
							<div class="wc-block-components-quantity-selector">
								<input class="wc-block-components-quantity-selector__input" type="number" step="1" min="0" value="1" />
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus">-</button>
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus">+</button>
							</div>
							</td>
							<td class="wc-block-cart-item__total">
								<div class="wc-block-cart-item__price"></div>
							</td>
						</tr>
						<tr class="wc-block-cart-items__row">
							<td class="wc-block-cart-item__image">
								<div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=" width="1" height="1" /></div>
							</td>
							<td class="wc-block-cart-item__product">
								<div class="wc-block-cart-item__product-name">&nbsp;</div>
								<div class="wc-block-cart-item__product-metadata">&nbsp;</div>
							</td>
							<td class="wc-block-cart-item__quantity">
							<div class="wc-block-components-quantity-selector">
								<input class="wc-block-components-quantity-selector__input" type="number" step="1" min="0" value="1" />
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus">-</button>
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus">+</button>
							</div>
							</td>
							<td class="wc-block-cart-item__total">
								<div class="wc-block-cart-item__price"></div>
							</td>
						</tr>
						<tr class="wc-block-cart-items__row">
							<td class="wc-block-cart-item__image">
								<div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=" width="1" height="1" /></div>
							</td>
							<td class="wc-block-cart-item__product">
								<div class="wc-block-cart-item__product-name"></div>
								<div class="wc-block-cart-item__product-metadata"></div>
							</td>
							<td class="wc-block-cart-item__quantity">
							<div class="wc-block-components-quantity-selector">
								<input class="wc-block-components-quantity-selector__input" type="number" step="1" min="0" value="1" />
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus">-</button>
								<button class="wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus">+</button>
							</div>
							</td>
							<td class="wc-block-cart-item__total">
								<div class="wc-block-cart-item__price"></div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="wc-block-components-sidebar wc-block-cart__sidebar">
				<div class="components-card"></div>
			</div>
		</div>
	' . $this->get_skeleton_inline_script();
}