Esempio n. 1
0
function thinkup_frontscripts()
{
    /* Add jQuery library. */
    wp_enqueue_script('jquery');
    /* Register theme stylesheets. */
    wp_register_style('style', get_stylesheet_uri(), '', '1.0.5');
    wp_register_style('shortcodes', get_template_directory_uri() . '/styles/style-shortcodes.css', '', '1.1');
    wp_register_style('responsive', get_template_directory_uri() . '/styles/style-responsive.css', '', '1.1');
    wp_register_style('sidebarleft', get_template_directory_uri() . '/styles/layouts/thinkup-left-sidebar.css', '', '1.1');
    wp_register_style('sidebarright', get_template_directory_uri() . '/styles/layouts/thinkup-right-sidebar.css', '', '1.1');
    wp_register_style('bootstrap', get_template_directory_uri() . '/lib/extentions/bootstrap/css/bootstrap.min.css', '', '2.3.2');
    wp_register_style('prettyPhoto', get_template_directory_uri() . '/lib/extentions/prettyPhoto/css/prettyPhoto.css', '', '3.1.5');
    /* Register Font Packages. */
    wp_register_style('font-awesome-min', get_template_directory_uri() . '/lib/extentions/font-awesome/css/font-awesome.min.css', '', '3.2.1');
    wp_register_style('font-awesome-cdn', get_template_directory_uri() . '/lib/extentions/font-awesome-4.2.0/css/font-awesome.min.css', '', '4.2.0');
    wp_register_style('dashicons-css', get_template_directory_uri() . '/lib/extentions/dashicons/css/dashicons.css', '', '2.0');
    /* Register theme scripts. */
    wp_register_script('frontend', get_template_directory_uri() . '/lib/scripts/main-frontend.js', array('jquery'), '1.1', true);
    wp_register_script('modernizr', get_template_directory_uri() . '/lib/scripts/modernizr.js', array('jquery'), '', true);
    wp_register_script('retina', get_template_directory_uri() . '/lib/scripts/retina.js', array('jquery'), '', true);
    wp_register_script('bootstrap', get_template_directory_uri() . '/lib/extentions/bootstrap/js/bootstrap.js', array('jquery'), '2.3.2', true);
    wp_register_script('prettyPhoto', get_template_directory_uri() . "/lib/extentions/prettyPhoto/jquery.prettyPhoto.js", array('jquery'), '3.1.5', true);
    /* Add Font Packages */
    wp_enqueue_style('font-awesome-min');
    wp_enqueue_style('font-awesome-cdn');
    wp_enqueue_style('dashicons-css');
    /* Add theme stylesheets */
    wp_enqueue_style('bootstrap');
    wp_enqueue_style('prettyPhoto');
    wp_enqueue_style('style');
    wp_enqueue_style('shortcodes');
    /* Add theme scripts */
    wp_enqueue_script('prettyPhoto');
    wp_enqueue_script('frontend');
    wp_enqueue_script('bootstrap');
    wp_enqueue_script('modernizr');
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Add ThinkUpSlider scripts
    if (is_front_page() or is_thinkuphome()) {
        wp_enqueue_script('thinkupslider', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides.min.js', array('jquery'), '1.54');
        wp_enqueue_script('thinkupslider-call', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides-call.js', array('jquery'));
    }
}
Esempio n. 2
0
function thinkup_input_ctaintro()
{
    global $thinkup_homepage_introswitch;
    global $thinkup_homepage_introaction;
    global $thinkup_homepage_introactionteaser;
    global $thinkup_homepage_introactionbutton;
    global $thinkup_homepage_introactionlink;
    global $thinkup_homepage_introactionpage;
    global $thinkup_homepage_introactioncustom;
    if ($thinkup_homepage_introswitch == '1' and (is_front_page() or is_thinkuphome()) and !empty($thinkup_homepage_introaction)) {
        echo '<div id="introaction"><div id="introaction-core">';
        if (empty($thinkup_homepage_introactionbutton)) {
            if (empty($thinkup_homepage_introactionteaser)) {
                echo '<div class="action-text">
						<h3>' . $thinkup_homepage_introaction . '</h3>
						</div>';
            } else {
                echo '<div class="action-text action-teaser">
						<h3>' . $thinkup_homepage_introaction . '</h3>
						<p>' . $thinkup_homepage_introactionteaser . '</p>
						</div>';
            }
        } else {
            if (!empty($thinkup_homepage_introactionbutton)) {
                if (empty($thinkup_homepage_introactionteaser)) {
                    echo '<div class="action-text three_fourth">
						<h3>' . $thinkup_homepage_introaction . '</h3>
						</div>';
                } else {
                    echo '<div class="action-text three_fourth action-teaser">
						<h3>' . $thinkup_homepage_introaction . '</h3>
						<p>' . $thinkup_homepage_introactionteaser . '</p>
						</div>';
                }
                if ($thinkup_homepage_introactionlink == 'option1') {
                    echo '<div class="action-button one_fourth last"><a href="' . get_permalink($thinkup_homepage_introactionpage) . '"><h4 class="themebutton">';
                    echo $thinkup_homepage_introactionbutton;
                    echo '</h4></a></div>';
                } else {
                    if ($thinkup_homepage_introactionlink == 'option2') {
                        echo '<div class="action-button one_fourth last"><a href="' . $thinkup_homepage_introactioncustom . '"><h4 class="themebutton">';
                        echo $thinkup_homepage_introactionbutton;
                        echo '</h4></a></div>';
                    } else {
                        if ($thinkup_homepage_introactionlink == 'option3' or empty($thinkup_homepage_introactionlink)) {
                            echo '<div class="action-button one_fourth last"><h4 class="themebutton">';
                            echo $thinkup_homepage_introactionbutton;
                            echo '</h4></div>';
                        }
                    }
                }
            }
        }
        echo '</div></div>';
    }
}