Skip to content
This repository has been archived by the owner. It is now read-only.

Sharelines and wistia #12

Merged
merged 1 commit into from Aug 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion content-single.php
Expand Up @@ -25,6 +25,9 @@
</header><!-- .entry-header -->

<div class="entry-content clearfix subpage">
<?php
if(get_post_meta( $post->ID, 'enable_sharelines', true)){
?>
<div class="sharelines">
<?php
$twittershareline = get_post_meta( $post->ID, 'twittershareline', true);
Expand All @@ -49,7 +52,11 @@
</div>
</div>

<?php the_content(); ?>
<?php
}

the_content();
?>



Expand Down
110 changes: 110 additions & 0 deletions functions.php
Expand Up @@ -321,4 +321,114 @@ window.setTimeout(function() {
<?php
}
}

if( function_exists('acf_add_local_field_group') ):

acf_add_local_field_group(array (
'key' => '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;
?>
22 changes: 22 additions & 0 deletions header.php
Expand Up @@ -32,6 +32,8 @@ if (/*@cc_on!@*/false) {
<script src="http://use.typekit.net/uzm8fts.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

<script src="//fast.wistia.com/embed/medias/j38ihh83m5.jsonp" async></script>
<script src="//fast.wistia.com/assets/external/E-v1.js" async></script>
</head>
<body <?php body_class(); ?>>
<!--[if lt IE 7]> <div class="ie lte9 lte8 lte7 lte6"> <![endif]-->
Expand Down Expand Up @@ -66,6 +68,26 @@ if (/*@cc_on!@*/false) {
?>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1820915951491852');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1"
src="https://www.facebook.com/tr?id=1820915951491852&ev=PageView
&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->

<div id="site-title">
<div class="container">
<div class="row">
Expand Down