/** * @param $post */ function euzakupki_shop_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_shop_properties_metabox_nonce'); ?> <table> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'shop', 'url', __('URL магазина:', 'euzakupki'), 'table', 50); ?> <?php euzakupki_shop_metabox_control_input($post, 'shop', 'fee', __('Комиссия:', 'euzakupki'), 'table', 10, '%'); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_textarea($post, 'shop', 'shipping_info', __('Информация о доставке:', 'euzakupki'), 'table', 50, 10); ?> </tr> </tbody> </table> <?php }
/** * @param $post */ function euzakupki_page_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_page_properties_metabox_nonce'); ?> <table> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'page', 'video_title', __('Заголовок видеосекции:', 'euzakupki'), 'table', 50, __('Работает в page full width шаблоне', 'euzakupki')); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'page', 'url', __('Ссылка на видео:', 'euzakupki'), 'table', 50, __('Работает в page full width шаблоне', 'euzakupki')); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'page', 'sub_heading', __('Подзаголовок страницы:', 'euzakupki'), 'table', 50); ?> </tr> </tbody> </table> <?php }
/** * @param $post */ function euzakupki_sale_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_sale_properties_metabox_nonce'); ?> <table> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'sale', 'url', __('Внешняя ссылка на акцию:', 'euzakupki'), 'table', 50); ?> </tr> </tbody> </table> <?php }
/** * @param $post */ function euzakupki_order_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_order_properties_metabox_nonce'); ?> <table class="ga-table"> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'status', __('Статус:', 'euzakupki'), 'table'); ?> <?php euzakupki_shop_metabox_control_input($post, 'order', 'customer', __('Клиент:', 'euzakupki'), 'table', '', '', true); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'price', __('Цена:', 'euzakupki'), 'table', ''); ?> <?php euzakupki_shop_metabox_control_input($post, 'order', 'order_id', __('ID заказа:', 'euzakupki'), 'table', '', '', true); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'order', 'qty', __('Количество:', 'euzakupki'), 'table', '', '', true); ?> <td class="label"><label><?php echo __('URL продукта:', 'euzakupki'); ?> </label></label><?php echo euzakupki_get_postmeta($post->ID, 'order', 'product_url'); ?> </td> </tr> </tbody> </table> <?php }
/** * @param $post */ function euzakupki_testimonial_properties_metabox($post) { // Add an nonce field so we can check for it later. wp_nonce_field(plugin_basename(__FILE__), 'euzakupki_testimonial_properties_metabox_nonce'); ?> <table> <tbody> <tr> <?php euzakupki_shop_metabox_control_input($post, 'testimonial', 'author', __('Автор:', 'euzakupki'), 'table', 30); ?> </tr> <tr> <?php euzakupki_shop_metabox_control_input($post, 'testimonial', 'location', __('Город:', 'euzakupki'), 'table', 30); ?> </tr> </tbody> </table> <?php }