Beispiel #1
0
<?php

/**
 * Template Name: Anodizd: Home
 *
 * This is the template that displays the main homepage.
 *
 *
 * @package Anodizd
 */
get_header();
?>
    <div class="ano--fp">

        <?php 
$entry = cmb_get_option('application_options', 'home_image', true);
if (isset($entry)) {
    ?>
            <div class="ano--image" style="background-image: url('<?php 
    echo $entry;
    ?>
');"></div>
        <?php 
}
?>

        <div class="ano--main-title">
            <div class="mt--logo text-center">
                <img src="/wp-content/themes/anodizd/assets/images/mc-sq.png" alt="">
                <img class="logo--btm-arrow" src="/wp-content/themes/anodizd/assets/images/nav_bottom-arrow.png" alt="">
            </div>
Beispiel #2
0
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 * @param  string  $key Options array key
 * @return mixed        Option value
 */
function myprefix_get_option($key = '')
{
    global $myprefix_Admin;
    return cmb_get_option($myprefix_Admin->key, $key);
}
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 *
 * @param  string $key Options array key
 *
 * @return mixed        Option value
 */
function gmb_get_option($key = '')
{
    return cmb_get_option(Google_Maps_Builder_Settings::key(), $key);
}
Beispiel #4
0
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 * @param  string  $key Options array key
 * @return mixed        Option value
 */
function application_get_option($key = '')
{
    global $application_Admin;
    return cmb_get_option($application_Admin->key, $key);
}
Beispiel #5
0
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 * @param  string  $key Options array key
 * @return mixed        Option value
 */
function gobcl_get_option($key = '')
{
    global $gobcl_Admin;
    return cmb_get_option($gobcl_Admin->key, $key);
}
Beispiel #6
0
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 * @param  string  $key Options array key
 * @return mixed        Option value
 */
function mytheme_get_option($key = '')
{
    return cmb_get_option(ThemeSettings::key(), $key);
}
 /**
  * Returns term meta with options to return a subset
  * @since  0.1.3
  * @param  string  $term_id  The term id for the options we're getting
  * @param  string  $key      Term meta key to check
  * @return mixed             Requested value | false
  */
 public function get_meta($term_id, $key = '')
 {
     if (!class_exists('cmb_Meta_Box')) {
         return;
     }
     $this->do_override_filters($term_id);
     return cmb_get_option($this->id($term_id), $key);
 }
Beispiel #8
0
/**
 * Wrapper function around cmb_get_option
 * @since  0.1.0
 * @param  string  $key Options array key
 * @return mixed        Option value
 */
function booking_get_option($key = '')
{
    global $BookingSettings;
    return cmb_get_option($BookingSettings->key, $key);
}
function awesome_responsive_menu_get_option($key = '')
{
    global $awesome_responsive_menu_Admin;
    return cmb_get_option($awesome_responsive_menu_Admin->key, $key);
}
Beispiel #10
0
function wptrebrets_get_option($key = '')
{
    return cmb_get_option(wptrebrets\inc\Options::key(), $key);
}
Beispiel #11
0
/**
 * The template for displaying the footer.
 *
 * @package Anodizd
 */
?>

    </div>
</div>
<footer class="ano--footer">
    <div class="footer--area">
        <div class="footer--social">
            <?php 
$linkedin = cmb_get_option('application_options', 'linkedinurl', true);
$twitter = cmb_get_option('application_options', 'twitterurl', true);
if (isset($linkedin)) {
    ?>
                <div class="social--icons"><a target="_blank" href="<?php 
    echo $linkedin;
    ?>
"><img src="/wp-content/themes/anodizd/assets/images/mcLContact.png" alt="linkedin"></a></div>
            <?php 
}
if (isset($twitter)) {
    ?>
                <div class="social--icons"><a target="_blank" href="<?php 
    echo $twitter;
    ?>
"><img src="/wp-content/themes/anodizd/assets/images/mcTContact.png" alt="twitter"></a></div>
            <?php