diff --git a/content-single.php b/content-single.php index 8b18c9c..249ee55 100644 --- a/content-single.php +++ b/content-single.php @@ -25,6 +25,9 @@
+ ID, 'enable_sharelines', true)){ + ?>
ID, 'twittershareline', true); @@ -49,7 +52,11 @@
- + diff --git a/functions.php b/functions.php index 5b70470..fe64b7a 100644 --- a/functions.php +++ b/functions.php @@ -321,4 +321,114 @@ window.setTimeout(function() { 'group_5984832e0ffd2', + 'title' => 'Sharelines', + 'fields' => array ( + array ( + 'key' => 'field_598483a2ea9d9', + 'label' => 'Enable Sharelines', + 'name' => 'enable_sharelines', + 'type' => 'checkbox', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'choices' => array ( + 'Enable Sharelines' => 'Enable Sharelines', + ), + 'allow_custom' => 0, + 'save_custom' => 0, + 'default_value' => array ( + 0 => 'Enable Sharelines', + ), + 'layout' => 'vertical', + 'toggle' => 0, + 'return_format' => 'value', + ), + array ( + 'key' => 'field_5984833d3f3d8', + 'label' => 'Twitter Shareline', + 'name' => 'twittershareline', + 'type' => 'text', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'maxlength' => '', + ), + array ( + 'key' => 'field_5984836ecceb4', + 'label' => 'Facebook Shareline', + 'name' => 'facebookshareline', + 'type' => 'text', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'maxlength' => '', + ), + array ( + 'key' => 'field_5984837ecceb5', + 'label' => 'Linkedin Shareline', + 'name' => 'linkedinshareline', + 'type' => 'text', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'maxlength' => '', + ), + ), + 'location' => array ( + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'post', + ), + ), + ), + 'menu_order' => 0, + 'position' => 'normal', + 'style' => 'default', + 'label_placement' => 'top', + 'instruction_placement' => 'label', + 'hide_on_screen' => '', + 'active' => 1, + 'description' => '', +)); + +endif; ?> \ No newline at end of file diff --git a/header.php b/header.php index a664d3f..a72e77e 100644 --- a/header.php +++ b/header.php @@ -32,6 +32,8 @@ if (/*@cc_on!@*/false) { + + > @@ -66,6 +68,26 @@ if (/*@cc_on!@*/false) { ?>