Skip to content

Instantly share code, notes, and snippets.

@kjtolsma
Created December 27, 2013 12:16
Show Gist options
  • Save kjtolsma/8146262 to your computer and use it in GitHub Desktop.
Save kjtolsma/8146262 to your computer and use it in GitHub Desktop.
<?php
if ( function_exists( 'is_pronamic_cookies_section_accepted' ) ) {
if ( is_pronamic_cookies_section_accepted( 'social-share' ) ) {
get_template_part( 'templates/share' );
} else {
?>
<div class="social-placeholder">
<div class="social-buttons jShowCookieLawModal"></div>
<?php
pcl_modal( 'social-share', array(
'title' => 'Cookies accepteren',
'description' => 'Om dit bericht te kunnen delen moeten eerst cookies geaccepteerd worden.',
) );
?>
</div>
<?php
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment