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( 'largo_opengraph' ) ) { | |
function largo_opengraph() { | |
global $current_url, $post; | |
// set a default thumbnail, if a post has a featured image use that instead | |
if ( is_single() && has_post_thumbnail( $post->ID ) ) { | |
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail' ); | |
$thumbnailURL = $image[0]; | |
} else if ( of_get_option( 'logo_thumbnail_sq' ) ) { |
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
<?php | |
add_action( 'after_setup_theme', 'bootstrap_setup' ); | |
if ( ! function_exists( 'bootstrap_setup' ) ): | |
function bootstrap_setup(){ | |
add_action( 'init', 'register_menu' ); | |
NewerOlder