esc_html__( 'Header', 'hello-elementor' ) ] ); register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] ); } if ( apply_filters( 'hello_elementor_post_type_support', true ) ) { add_post_type_support( 'page', 'excerpt' ); } if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) { add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'title-tag' ); add_theme_support( 'html5', [ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style', 'navigation-widgets', ] ); add_theme_support( 'custom-logo', [ 'height' => 100, 'width' => 350, 'flex-height' => true, 'flex-width' => true, ] ); add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'editor-styles' ); add_editor_style( 'assets/css/editor-styles.css' ); if ( apply_filters( 'hello_elementor_add_woocommerce_support', true ) ) { add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); } } } } add_action( 'after_setup_theme', 'hello_elementor_setup' ); function hello_maybe_update_theme_version_in_db() { $theme_version_option_name = 'hello_theme_version'; $hello_theme_db_version = get_option( $theme_version_option_name ); if ( ! $hello_theme_db_version || version_compare( $hello_theme_db_version, HELLO_ELEMENTOR_VERSION, '<' ) ) { update_option( $theme_version_option_name, HELLO_ELEMENTOR_VERSION ); } } if ( ! function_exists( 'hello_elementor_display_header_footer' ) ) { function hello_elementor_display_header_footer() { $hello_elementor_header_footer = true; return apply_filters( 'hello_elementor_header_footer', $hello_elementor_header_footer ); } } if ( ! function_exists( 'hello_elementor_scripts_styles' ) ) { function hello_elementor_scripts_styles() { if ( apply_filters( 'hello_elementor_enqueue_style', true ) ) { wp_enqueue_style( 'hello-elementor', HELLO_THEME_STYLE_URL . 'reset.css', [], HELLO_ELEMENTOR_VERSION ); } if ( apply_filters( 'hello_elementor_enqueue_theme_style', true ) ) { wp_enqueue_style( 'hello-elementor-theme-style', HELLO_THEME_STYLE_URL . 'theme.css', [], HELLO_ELEMENTOR_VERSION ); } if ( hello_elementor_display_header_footer() ) { wp_enqueue_style( 'hello-elementor-header-footer', HELLO_THEME_STYLE_URL . 'header-footer.css', [], HELLO_ELEMENTOR_VERSION ); } } } add_action( 'wp_enqueue_scripts', 'hello_elementor_scripts_styles' ); if ( ! function_exists( 'hello_elementor_register_elementor_locations' ) ) { function hello_elementor_register_elementor_locations( $elementor_theme_manager ) { if ( apply_filters( 'hello_elementor_register_elementor_locations', true ) ) { $elementor_theme_manager->register_all_core_location(); } } } add_action( 'elementor/theme/register_locations', 'hello_elementor_register_elementor_locations' ); if ( ! function_exists( 'hello_elementor_content_width' ) ) { function hello_elementor_content_width() { $GLOBALS['content_width'] = apply_filters( 'hello_elementor_content_width', 800 ); } } add_action( 'after_setup_theme', 'hello_elementor_content_width', 0 ); if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) { function hello_elementor_add_description_meta_tag() { if ( ! apply_filters( 'hello_elementor_description_meta_tag', true ) ) { return; } if ( ! is_singular() ) { return; } $post = get_queried_object(); if ( empty( $post->post_excerpt ) ) { return; } echo '' . "\n"; } } add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' ); require get_template_directory() . '/includes/settings-functions.php'; require get_template_directory() . '/includes/elementor-functions.php'; if ( ! function_exists( 'hello_elementor_customizer' ) ) { function hello_elementor_customizer() { if ( ! is_customize_preview() ) { return; } if ( ! hello_elementor_display_header_footer() ) { return; } require get_template_directory() . '/includes/customizer-functions.php'; } } add_action( 'init', 'hello_elementor_customizer' ); if ( ! function_exists( 'hello_elementor_check_hide_title' ) ) { function hello_elementor_check_hide_title( $val ) { if ( defined( 'ELEMENTOR_VERSION' ) ) { $current_doc = Elementor\Plugin::instance()->documents->get( get_the_ID() ); if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) { $val = false; } } return $val; } } add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' ); if ( ! function_exists( 'hello_elementor_body_open' ) ) { function hello_elementor_body_open() { wp_body_open(); } } require HELLO_THEME_PATH . '/theme.php'; HelloTheme\Theme::instance(); // ============================================================================= // CUSTOM CODE (migrated from Avada child theme) // ============================================================================= // Disable WooCommerce related products add_filter( 'woocommerce_product_related_posts_query', '__return_empty_array', 100 ); // Change "Out of stock" text to "SOLD OUT" function availability_filter( $availability ) { $availability['availability'] = str_ireplace( 'Out of stock', 'SOLD OUT', $availability['availability'] ); return $availability; } add_filter( 'woocommerce_get_availability', 'availability_filter' ); // Flush rewrite rules on init add_action( 'init', 'flush_rewrite', 99 ); function flush_rewrite() { flush_rewrite_rules(); } // Show events shortcode [show_events] function show_events( $content ) { ob_start(); extract( shortcode_atts( array( 'post_type' => 'product', 'number' => '4', 'offset' => '', 'type' => '', ), $content ) ); $args = array( 'post_type' => $post_type, 'posts_per_page' => $number, 'offset' => $offset, ); $the_query = new WP_Query( $args ); $s = ( $type == 'slider' ) ? 'owl-carousel owl-theme' : 'eventlist'; ?> have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); $product = wc_get_product( get_the_id() ); $location = get_post_meta( get_the_id(), 'WooCommerceEventsLocation', true ); $date = get_field( 'event-date' ); $subtitle = get_field( 'sub_title' ); ?> get_stock_quantity() <= 0 ) : ?> prefix . 'amelia_appointments'; $recurring_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $table_name WHERE service_id = %d AND recurring = 1 AND recurring_type != 'none' AND status NOT IN ('canceled', 'rejected')", $service_id ) ); return $recurring_count; } // Display billing birthdate field add_filter( 'woocommerce_billing_fields', 'display_birthdate_billing_field', 20, 1 ); function display_birthdate_billing_field( $billing_fields ) { $billing_fields['billing_birthdate'] = array( 'type' => 'date', 'label' => __( '生年月日' ), 'class' => array( 'form-row-wide' ), 'priority' => 25, 'required' => true, 'clear' => false, ); return $billing_fields; } // Save billing birthdate add_action( 'woocommerce_checkout_update_customer', 'save_account_billing_birthdate_field', 10, 2 ); function save_account_billing_birthdate_field( $customer, $data ) { if ( isset( $_POST['billing_birthdate'] ) && ! empty( $_POST['billing_birthdate'] ) ) { $customer->update_meta_data( 'billing_birthdate', sanitize_text_field( $_POST['billing_birthdate'] ) ); } } // Admin order billing birthdate field add_filter( 'woocommerce_admin_billing_fields', 'admin_order_billing_birthdate_editable_field' ); function admin_order_billing_birthdate_editable_field( $fields ) { $fields['birthdate'] = array( 'label' => __( '生年月日', 'woocommerce' ) ); return $fields; } // WordPress user billing birthdate field add_filter( 'woocommerce_customer_meta_fields', 'wordpress_user_account_billing_birthdate_field' ); function wordpress_user_account_billing_birthdate_field( $fields ) { $fields['billing']['fields']['billing_birthdate'] = array( 'label' => __( '生年月日', 'woocommerce' ), 'description' => __( '', 'woocommerce' ), ); return $fields; } // Change checkout name labels add_filter( 'woocommerce_billing_fields', 'change_billing_name_labels', 20, 1 ); function change_billing_name_labels( $fields ) { $fields['billing_first_name']['label'] = '名(漢字)'; $fields['billing_last_name']['label'] = '姓(漢字)'; return $fields; } // Add Romaji name fields add_filter( 'woocommerce_billing_fields', 'add_romaji_name_fields', 20 ); function add_romaji_name_fields( $fields ) { $fields['billing_first_name_romaji'] = array( 'label' => '名 (ローマ字)', 'placeholder' => 'Taro', 'required' => true, 'class' => array( 'form-row-first' ), 'priority' => 22, ); $fields['billing_last_name_romaji'] = array( 'label' => '姓 (ローマ字)', 'placeholder' => 'Tanaka', 'required' => true, 'class' => array( 'form-row-last' ), 'priority' => 23, 'clear' => true, ); return $fields; } // Save Romaji fields to order meta add_action( 'woocommerce_checkout_update_order_meta', 'save_romaji_order_meta' ); function save_romaji_order_meta( $order_id ) { if ( isset( $_POST['billing_first_name_romaji'] ) ) { update_post_meta( $order_id, '_billing_first_name_romaji', sanitize_text_field( $_POST['billing_first_name_romaji'] ) ); } if ( isset( $_POST['billing_last_name_romaji'] ) ) { update_post_meta( $order_id, '_billing_last_name_romaji', sanitize_text_field( $_POST['billing_last_name_romaji'] ) ); } } // Save Romaji fields to customer account add_action( 'woocommerce_checkout_update_customer', 'save_customer_romaji_fields', 10, 2 ); function save_customer_romaji_fields( $customer, $data ) { if ( isset( $_POST['billing_first_name_romaji'] ) ) { $customer->update_meta_data( 'billing_first_name_romaji', sanitize_text_field( $_POST['billing_first_name_romaji'] ) ); } if ( isset( $_POST['billing_last_name_romaji'] ) ) { $customer->update_meta_data( 'billing_last_name_romaji', sanitize_text_field( $_POST['billing_last_name_romaji'] ) ); } } // Show Romaji fields in admin order billing add_filter( 'woocommerce_admin_billing_fields', 'admin_order_romaji_fields' ); function admin_order_romaji_fields( $fields ) { $fields['first_name_romaji'] = array( 'label' => '名(ローマ字)' ); $fields['last_name_romaji'] = array( 'label' => '姓(ローマ字)' ); return $fields; } // Change out-of-stock text to 完売 add_filter( 'woocommerce_get_availability_text', 'themeprefix_change_soldout', 10, 2 ); function themeprefix_change_soldout( $text, $product ) { if ( ! $product->is_in_stock() ) { $text = ' 完売 '; } return $text; } // ACF field email shortcode [acf_field_email] add_shortcode( 'acf_field_email', 'acf_field_email_shortcode' ); function acf_field_email_shortcode( $atts ) { $atts = shortcode_atts( array( 'product_id' => 8375, 'field_name' => 'customer_email_text', ), $atts, 'acf_field_email' ); if ( $atts['product_id'] && $atts['field_name'] ) { return get_field( $atts['field_name'], $atts['product_id'] ); } return ''; } // Redirect to cart on disclaimer accept add_action( 'wp_footer', 'redirect_on_accept_disclaimer' ); function redirect_on_accept_disclaimer() { ?> Momoyo, Author at Momoyo Smoczyk - Spiritual Guide - 17ページ目 (18ページ中)

宇宙からのオーダー

最近は宇宙から 落ちてくる情報が多すぎて、 ブログには何を書けば良いのかよくわからなーい! という感じですが、 これまで私も人間の一人の人として、 仕事をしてきました。 ですが、宇宙のお父さんが もう、そうやって人間とし […]

愛にふれると思いだすこと

小さい頃、 私本当に優しい優しい子だったと思うのです。 優しいとはなんだ?って話になってしまうけれど。   純粋に、人が病気だと心配で死にそうになり、 自分の隣で人が悲しんでいると、その悲しみを掃除機のように吸 […]

地球の時間

史上最大に壊れた、ロンドンセミナーに参加頂きました皆様、 本当にお疲れさまでしたー!!   実は私達、宇宙人に教室ごとハイジャックされました〜 笑えない。。。   本当に、6日間私達はどの時空にいたの […]

魔法のエネルギー

こんにちは。 皆さんお元気ですか (*゚▽゚)ノ 先週くらいに年が明けたと思ったのですが、 いつの間にかもう2月の後半なのですね〜!!   来週はいよいよロンドンで2度目のセミナーです♬ 宇宙からエネルギーを呼 […]

行動力のパワー

今日、イギリスのニュースを見ていたら、 韓国では食事を一人で済ませる人が増えていると、 放送されていました。 それだけではなく、 寂しさを感じないために、 自分が食事している間、食べているところを見ていてくれて、 コメン […]

脳は神の通り道

神のエネルギー。   何をもってして神と呼ぶのかは私には全くわかりませんが、 確実に大いなる存在が私たちの意識を出入りしています。   皆様、ところでブログをご無沙汰してしまっていたように思います。 […]

愛が子どもを大人にする

事務局の人が最近、私に面白いコメントをくれました。 “MOMOYOさんのクライアントさんって、セッションを受けるごとに 段々メールでの問い合わせ方が丁寧でこちら側に気遣いをくれる ようになる気がするのですが気のせいでしょ […]

Magic

昨年の終わり頃から、 また変な事が起きています。 私自身は何も変わらないのですがね。 私と電話で話したお友達が 電話を切った瞬間、仕事の事で自分が ずっと願っていた依頼が向こうから来たとか、 私と一緒にディナーをした夜、 […]

さよなら、癒し。

癒しは必要ない。 傷ついた自分がいる事は確か。 その自分が私達の人生を暗くさせるのも確か。 もう何度も話してきたこの事。   でもスピリチュアルアナトミーはその傷を癒すためのものではない。 傷ついた自分が真の自 […]

サイキック能力

昨夜、自閉症の女性について書かれた記事を読みました。 スーパーマーケットに入ると、その館内にいる人の全員の声が聞こえるそうです。 私は、館内に入るとその館内の人のこころの声が聞こえます。 サイキックって言うと響きがかっこ […]