<p><?php _e("ACF will create the PHP code to include in your theme.", 'acf'); ?></p>

<p><?php _e("Registered field groups <b>will not</b> appear in the list of editable field groups. This is useful for including fields in themes.", 'acf'); ?></p>

<p><?php _e("Please note that if you export and register field groups within the same WP, you will see duplicate fields on your edit screens. To fix this, please move the original field group to the trash or remove the code from your functions.php file.", 'acf'); ?></p>

<ol>

<li><?php _e("Select field group(s) from the list and click \"Create PHP\"", 'acf'); ?></li>

<li><?php _e("Copy the PHP code generated", 'acf'); ?></li>

<li><?php _e("Paste into your functions.php file", 'acf'); ?></li>

<li><?php _e("To activate any Add-ons, edit and use the code in the first few lines.", 'acf'); ?></li>

</ol>

<?php

}

/**

* html_php

*

* @description:

* @created: 9/08/12

*/

function html_php()

{

?>

<div class="wp-box">

<div class="title">

<h3><?php _e("Export Field Groups to PHP", 'acf'); ?></h3>

</div>

<table class="acf_input widefat">

<tr>

<td class="label">

<h3><?php _e("Instructions", 'acf'); ?></h3>

<ol>

<li><?php _e("Copy the PHP code generated", 'acf'); ?></li>

<li><?php _e("Paste into your functions.php file", 'acf'); ?></li>

<li><?php _e("To activate any Add-ons, edit and use the code in the first few lines.", 'acf'); ?></li>

</ol>

<p><br /></p>

<h3><?php _e("Notes", 'acf'); ?></h3>

<p><?php _e("Registered field groups <b>will not</b> appear in the list of editable field groups. This is useful for including fields in themes.", 'acf'); ?></p>

<p><?php _e("Please note that if you export and register field groups within the same WP, you will see duplicate fields on your edit screens. To fix this, please move the original field group to the trash or remove the code from your functions.php file.", 'acf'); ?></p>

<p><br /></p>

<h3><?php _e("Include in theme", 'acf'); ?></h3>

<p><?php _e("The Advanced Custom Fields plugin can be included within a theme. To do so, move the ACF plugin inside your theme and add the following code to your functions.php file:", 'acf'); ?></p>

<pre>

include_once('advanced-custom-fields/acf.php');

</pre>

<p><?php _e("To remove all visual interfaces from the ACF plugin, you can use a constant to enable lite mode. Add the following code to your functions.php file <b>before</b> the include_once code:", 'acf'); ?></p>