/** * Echo footer scripts in to wp_footer(). * * Allows shortcodes. * * Applies genesis_header_scripts on value stored in header_scripts setting. * * Also echoes scripts from the post's custom field. * * @since 1.0.0 * * @uses genesis_get_option() Get theme setting value * @uses genesis_get_custom_field() Echo custom field value */ function gs_footer_scripts() { /** If singular, echo scripts from custom field */ if (is_singular() && genesis_get_custom_field('_genesis_footer_scripts')) { genesis_custom_field('_genesis_footer_scripts'); } }
/** * @deprecated in 0.1.3 * **/ function get_custom_field($field, $echo = TRUE) { if ($echo) { genesis_custom_field($field); } else { return genesis_get_custom_field($field); } }
/** * Echo header scripts in to wp_head(). * * Allows shortcodes. * * Applies `genesis_header_scripts` filter on value stored in header_scripts setting. * * Also echoes scripts from the post's custom field. * * @since 0.2.3 * * @uses genesis_get_option() Get theme setting value. * @uses genesis_get_custom_field() Echo custom field value. */ function genesis_header_scripts() { echo apply_filters('genesis_header_scripts', genesis_get_option('header_scripts')); //* If singular, echo scripts from custom field if (is_singular()) { genesis_custom_field('_genesis_scripts'); } }
echo genesis_attr('entry-publisher-object'); ?> > <h2 itemprop="name"><?php echo esc_html(genesis_get_custom_field('genesis_schema_publisher_name')); ?> </h2> <p itemprop="description"> <span itemprop="logo" itemscope itemtype="http://schema.org/ImageObject"> <img src="<?php echo esc_url(genesis_get_custom_field('genesis_schema_publisher_image')); ?> " class="alignleft" /> <meta itemprop="url" content="<?php echo esc_url(genesis_get_custom_field('genesis_schema_publisher_image')); ?> " /> <meta itemprop="width" content="<?php echo esc_attr($image_size[0]); ?> " /> <meta itemprop="height" content="<?php echo esc_attr($image_size[1]); ?> " /> </span> <?php genesis_custom_field('genesis_schema_publisher_description'); ?> </p> </div>