php 基于弹性域的条件入队

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 基于弹性域的条件入队相关的知识,希望对你有一定的参考价值。

<?php

	/**
	 * For determining if specific scripts, tied to specific content blocks, need to be enqueued.
	 *
	 * @var array $content_blocks
	 */
	$content_blocks = get_post_meta( get_the_ID(), 'content_blocks', true );


	/**
	 * Conditionally enqueue Theme's Google Map JS if 'find_a_dealer_map_block is present.
	 */
	if ( ! empty( $content_blocks ) && in_array( 'find_a_dealer_map_block', $content_blocks, true ) ) {

		/** Enqueue Theme's Google Map JS. */
		wp_enqueue_script(
			'cfmoto-google-map-js',
			get_template_directory_uri() . '/js/cfmoto-google-map.js',
			array( 'google-maps-api' ),
			'1.0.0',
			true
		);
	}

以上是关于php 基于弹性域的条件入队的主要内容,如果未能解决你的问题,请参考以下文章

弹性域的开发

新浪微博基于混合云的PHP服务化与弹性扩容

用于从切换列表中提取基于域的电子邮件的PHP脚本

Laravel 基于域的路由

AQS源码探究_06 Conditon条件队列(await方法线程入队与挂起signal方法)

AQS源码探究_06 Conditon条件队列(await方法线程入队与挂起signal方法)