Created
July 6, 2016 20:33
-
-
Save texxs/51d09eec850c32d6ff522feae55eb409 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(function_exists("register_field_group")) | |
{ | |
register_field_group(array ( | |
'id' => 'acf_local-video-page-options', | |
'title' => 'Local Video Page Options', | |
'fields' => array ( | |
array ( | |
'key' => 'field_577830c13dfc0', | |
'label' => 'Video Choice', | |
'name' => 'video_choice', | |
'type' => 'radio', | |
'instructions' => 'Please choose one of the included videos', | |
'required' => 1, | |
'choices' => array ( | |
'wild_grain' => 'Wild Grain', | |
'Yellow_sunset' => 'Palm Trees', | |
), | |
'other_choice' => 0, | |
'save_other_choice' => 0, | |
'default_value' => 'wild_grain', | |
'layout' => 'horizontal', | |
), | |
array ( | |
'key' => 'field_5778527ecf322', | |
'label' => 'Paste your form code here:', | |
'name' => 'form_code', | |
'type' => 'textarea', | |
'instructions' => 'Paste the form code from MailChimp, ConstantContact or whomever here. You can leave this blank and no form will appear.', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'html', | |
), | |
array ( | |
'key' => 'field_5778ceba5c0c0', | |
'label' => 'Font Sets', | |
'name' => 'font_sets', | |
'type' => 'select', | |
'instructions' => 'Several sets of fonts to choose from, from fun to serious. Tinker with a few and find one that fits your style.', | |
'required' => 1, | |
'choices' => array ( | |
'style1' => 'Default', | |
'boogaloo' => 'Boogaloo', | |
'cinzel' => 'Cinzel', | |
'condensed' => 'Condensed', | |
'FatFace' => 'Fat Face', | |
'julius' => 'Julius', | |
'ultra' => 'Ultra', | |
), | |
'default_value' => '', | |
'allow_null' => 0, | |
'multiple' => 0, | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'page_template', | |
'operator' => '==', | |
'value' => 'page-localVideo.php', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'acf_after_title', | |
'layout' => 'default', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 0, | |
)); | |
register_field_group(array ( | |
'id' => 'acf_youtube-video-page-options', | |
'title' => 'Youtube Video Page Options', | |
'fields' => array ( | |
array ( | |
'key' => 'field_5778644c37472', | |
'label' => 'Video ID', | |
'name' => 'videoID', | |
'type' => 'text', | |
'instructions' => 'Add the Video ID of the Youtube video you\'d like to use. NOT the whole url, just video section. Example in Bold: | |
https://youtu.be/<strong>hafvH8vdOdk</strong>?t=20s', | |
'required' => 1, | |
'default_value' => 'nTZCeHOyTW4', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'none', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_577867ad52833', | |
'label' => 'Use Overlay?', | |
'name' => 'overlay', | |
'type' => 'true_false', | |
'instructions' => 'Videos with a lighter background are more readable if a subtle overlay is added on top of the video to darken it. This video also helps to hide flaws in lower quality videos.', | |
'required' => 1, | |
'message' => '', | |
'default_value' => 0, | |
), | |
array ( | |
'key' => 'field_5778bb9695cc5', | |
'label' => 'Font Set', | |
'name' => 'font_set', | |
'type' => 'select', | |
'instructions' => 'Choose a font set, Experiment with a few and find one that feels good!', | |
'required' => 1, | |
'choices' => array ( | |
'style1' => 'Default', | |
'boogaloo' => 'Boogaloo', | |
'cinzel' => 'Cinzel', | |
'condensed' => 'Condensed', | |
'FatFace' => 'Fat Face', | |
'julius' => 'Julius', | |
'ultra' => 'Ultra', | |
), | |
'default_value' => '', | |
'allow_null' => 0, | |
'multiple' => 0, | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'page_template', | |
'operator' => '==', | |
'value' => 'page-YouTubeVideo.php', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'acf_after_title', | |
'layout' => 'default', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 1, | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment