コード例 #1
0
?>
>

				<?php 
/* Run the loop to output the posts.
 * If you want to overload this in a child theme then include a file
 * called loop-page.php and that will be used instead.
 */
$avia_config['size'] = avia_layout_class('main', FALSE) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
get_template_part('includes/loop', 'page');
?>

				<?php 
$checkBox = get_field('small_animal_choices', 2514);
/* @TODO -------------------------------------------------------- LOGGING ---------------------------------------------------*/
Debug_Bar_Extender::instance()->trace_var($checkBox);
the_field('small_animal_choices', 2514);
?>

				<!--end content-->
			</main>

			<?php 
//get the sidebar
$avia_config['currently_viewing'] = 'page';
get_sidebar();
?>

		</div><!--end container-->

	</div><!-- close default .container_wrap element -->
コード例 #2
0
 public function debug_action_admin_bar_menu()
 {
     global $wp_admin_bar;
     if (0 == Debug_Bar_Extender::instance()->settings['allow_url_settings'] || 0 == Debug_Bar_Extender::instance()->settings['enable_admin_bar_menu']) {
         return;
     }
     $wp_admin_bar->add_menu(array('id' => 'dbg', 'title' => 'DbgBExt', 'href' => false));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default vars', 'href' => add_query_arg(array('dbgx_use_error_log' => 0, 'dbgx_add_default_checkpoints' => 0, 'dbgx_track_default_vars' => 1))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default checkpoints', 'href' => add_query_arg(array('dbgx_use_error_log' => 0, 'dbgx_add_default_checkpoints' => 1, 'dbgx_track_default_vars' => 0))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default checkpoints+vars', 'href' => add_query_arg(array('dbgx_use_error_log' => 0, 'dbgx_add_default_checkpoints' => 1, 'dbgx_track_default_vars' => 1))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'send to error_log', 'href' => add_query_arg(array('dbgx_use_error_log' => 1, 'dbgx_add_default_checkpoints' => 0, 'dbgx_track_default_vars' => 0))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default vars -> log', 'href' => add_query_arg(array('dbgx_use_error_log' => 1, 'dbgx_add_default_checkpoints' => 0, 'dbgx_track_default_vars' => 1))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default checkpoints -> log', 'href' => add_query_arg(array('dbgx_use_error_log' => 1, 'dbgx_add_default_checkpoints' => 1, 'dbgx_track_default_vars' => 0))));
     $wp_admin_bar->add_menu(array('parent' => 'dbg', 'title' => 'default checkpoints+vars -> log', 'href' => add_query_arg(array('dbgx_use_error_log' => 1, 'dbgx_add_default_checkpoints' => 1, 'dbgx_track_default_vars' => 1))));
 }
コード例 #3
0
ファイル: wp-gears.php プロジェクト: 10up/wp-gears
/**
 * Adds a single async task to the gearman job queue.
 *
 * @param string $hook The action that will be called when running this job.
 * @param array $args An array of args that should be passed to the callback when the action hook is called.
 * @param string $priority Priority of the job (low, normal, high). Default normal.
 *
 * @since 0.1
 */
function wp_async_task_add($hook, $args = array(), $priority = 'normal')
{
    $plugin = \WpGears\Plugin::get_instance();
    return $plugin->add($hook, $args, $priority);
}
function wp_async_task_init()
{
    wp_gears_autoloader();
    $plugin = \WpGears\Plugin::get_instance();
    $plugin->enable();
    $GLOBALS['wp_async_task'] = $plugin;
}
add_action('plugins_loaded', function () {
    global $wp_async_task;
    if (class_exists('Debug_Bar_Extender')) {
        Debug_Bar_Extender::instance()->trace_var($wp_async_task);
    }
});
// Init
if (!defined('PHPUNIT_RUNNER')) {
    wp_async_task_init();
}
コード例 #4
0
 /**
  * enqueue admin scripts
  *
  * @since 0.0.1-dev
  */
 public function enqueue_scripts()
 {
     $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
     wp_register_style('push7-admin-sharing', plugins_url('css/admin-sharing' . $suffix . '.css', \Push7_Subscribe_Button::MAIN_ENTRY));
     wp_register_script('push7-ssb-admin', plugins_url('js/admin' . $suffix . '.js', \Push7_Subscribe_Button::MAIN_ENTRY));
     $screen = get_current_screen();
     if (method_exists('\\Debug_Bar_Extender', 'instance')) {
         \Debug_Bar_Extender::instance()->trace_var($screen, 'Screen');
     }
     if ('settings_page_sharing' === $screen->id) {
         wp_enqueue_style('push7-admin-sharing');
     }
     if ('settings_page_push7-ssb' === $screen->id) {
         wp_enqueue_style('push7-admin-sharing');
         wp_enqueue_script('push7-ssb-admin');
     }
 }
コード例 #5
0
ファイル: page-form.php プロジェクト: robwilde/HBQ-ValuVet
<?php

/*
Template Name: ACF FORM
*/
acf_form_head();
get_header();
the_post();
?>

	<div class='container_wrap container_wrap_first main_color <?php 
avia_layout_class('main');
?>
'>

		<div class='container'>

			<?php 
$args = array('post_id' => 'new', 'field_groups' => array(2339));
Debug_Bar_Extender::instance()->trace_var($args, $var_name = 'ARGS');
acf_form($args);
?>

		</div><!-- #content -->
	</div><!-- #primary -->

<?php 
get_sidebar();
get_footer();