Skip to content

Instantly share code, notes, and snippets.

@goranefbl
Created November 20, 2015 10:34
Show Gist options
  • Save goranefbl/846a182939cb42d5fcf3 to your computer and use it in GitHub Desktop.
Save goranefbl/846a182939cb42d5fcf3 to your computer and use it in GitHub Desktop.
ob_start()
public function ttr_container( $content ) {
$custom_content = '';
if(0 == 0) {
ob_start();
$this->social_share();
$custom_content .= ob_get_contents();
ob_end_clean();
}
$custom_content .= '<div class="ttr_start"></div>';
$custom_content .= $content;
$custom_content .= '<div class="ttr_end"></div>';
if(0 == 0) {
ob_start();
$this->social_share();
$custom_content .= ob_get_contents();
ob_end_clean();
}
return $custom_content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment