function as_on_add_scripts() { // enqueue backbonejs, underscore add_existed_script('backbone'); add_existed_script('underscore'); if (as_option('as_option_smooth_scroll', '1')) { // Smoothscroll add_script('smoothscroll', TEMPLATEURL . '/js/smoothscroll.js', array('jquery')); } // Modernize add_script('modernizr', TEMPLATEURL . '/js/libs/modernizr.custom.js', array('jquery')); // Classie add_script('classie', TEMPLATEURL . '/js/libs/classie.js', array('jquery')); if (as_option('as_option_retina_img', '1')) { // Retina JS add_script('retina', TEMPLATEURL . '/js/libs/retina.min.js', array('jquery')); } // Dialog add_script('dialog', TEMPLATEURL . '/js/libs/dialogFx.js', array('jquery', 'modernizr', 'classie')); // Front Js add_script('front', TEMPLATEURL . '/js/front.js', array('jquery', 'backbone', 'underscore')); wp_localize_script('front', 'as_globals', array('ajaxURL' => admin_url('admin-ajax.php'), 'imgURL' => get_template_directory_uri() . '/img/')); // Custom add_script('main', TEMPLATEURL . '/js/main.js', array('jquery')); add_script('jquery.appear', TEMPLATEURL . '/js/libs/jquery.appear.js', array('jquery', 'main')); //video add_script('video.js', TEMPLATEURL . '/js/libs/video.js', array('jquery', 'main')); //audio add_script('audio.js', TEMPLATEURL . '/js/libs/audio.js', array('jquery', 'main')); }
function woo_columns_body_class($classes) { if (is_woocommerce()) { $classes[] = 'columns-' . as_option('woo_listing_column_number'); } return $classes; }
if (as_option('as_tumblr_url')) { echo '<li><a href="' . esc_url(as_option('as_tumblr_url')) . '" ' . $as_target . ' title="Tumblr"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-tumblr"></span></a></li>'; } if (as_option('as_linkedin_url')) { echo '<li><a href="' . esc_url(as_option('as_linkedin_url')) . '" ' . $as_target . ' title="Linkedin"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-linkedin"></span></a></li>'; } if (as_option('as_instagram_url')) { echo '<li><a href="' . esc_url(as_option('as_instagram_url')) . '" ' . $as_target . ' title="Instagram"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-instagram"></span></a></li>'; } if (as_option('as_github_url')) { echo '<li><a href="' . esc_url(as_option('as_github_url')) . '" ' . $as_target . ' title="Github"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-github"></span></a></li>'; } if (as_option('as_dropbox_url')) { echo '<li><a href="' . esc_url(as_option('as_dropbox_url')) . '" ' . $as_target . ' title="Dropbox"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-dropbox"></span></a></li>'; } if (as_option('as_foursquare_url')) { echo '<li><a href="' . esc_url(as_option('as_foursquare_url')) . '" ' . $as_target . ' title="Dropbox"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-foursquare"></span></a></li>'; } ?> </ul> </div> <!-- List Social / End --> <?php } ?> </div> </div> </div> </footer> <!-- Footer / End -->
* Contains footer content and the closing of the #main and #page div elements. * * @author : Alena Studio */ ?> <?php if (!is_page_template('page-blank.php')) { ?> <!-- Custom Footer ================================================== --> <?php if (as_option('as_option_check_footer', '1')) { ?> <?php $slug = as_option('as_option_custom_footer', 'default'); //===get slug footer value===// $as_footer = rwmb_meta('as_footer_menu'); $as_footer_check = rwmb_meta('as_custom_page_metaboxes', 'type=checkbox_list'); if ($as_footer != 0 && in_array('page_footer_options', $as_footer_check)) { $slug = $as_footer; } //===========================// get_template_part('footers/footer', $slug); ?> <?php } ?> <!-- End / Custom Footer --> <!-- Search Form
} } ?> <!-- Pagination --> <div class="as-pagination-wrapper"> <?php echo as_get_pagination(); ?> </div> <!-- Pagination / End --> <?php wp_reset_postdata(); ?> </div><!-- Post Loop / End --> <?php if (as_option('as_blog_position_sidebar') == "right") { ?> <div class="dslc-col dslc-4-col dslc-last-col"> <?php get_sidebar(); ?> </div><!-- Sidebar / End --> <?php } ?> </div><!-- Wrapper / End --> </div> </div> <!-- Content / End --> <?php get_footer();
} // // get (or set default) options from the database // $use_ssl = as_option("get", "use_ssl", "0") === "1" ? true : false; $additional_urls = as_option("get", "additional_urls", "wp-comments-post.php\nwp-admin/plugins.php?page=akismet-key-config"); $ignore_urls = as_option("get", "ignore_urls", "xmlrpc.php"); $secure_users_only = as_option("get", "secure_users_only", "0") === "1" ? true : false; if (!isset($config_parent)) { $config_parent = as_option("get", "config_parent", "plugins.php"); } if (apache_version(1.3, 1)) { $default_https_key = "SERVER_PORT"; $default_https_value = "443"; } elseif (apache_version(2)) { $default_https_key = "HTTPS"; $default_https_value = "on"; } $https_key = as_option("get", "https_key", $default_https_key); $https_value = as_option("get", "https_value", $default_https_value); // // build secure site url // $secure_url = preg_replace("|^https?://|", scheme($use_ssl), get_option("siteurl")); $secure_url = rtrim(trim($secure_url), "/"); # remove any trailing slashes // // log plugin options // as_log("HTTPS: " . (is_https() ? "Yes" : "No") . "\n\t\tURL: http" . (is_https() ? "s" : "") . "://" . host() . req_uri() . "\n\n\t\tUse SSL: " . ($use_ssl ? "Yes" : "No") . "\n\t\tSite URL: " . get_option("siteurl") . "\n\t\tSecure URL: {$secure_url}\n\t\tAdditional urls:\n{$additional_urls}\n\t\tIgnore urls:\n{$ignore_urls}\n\t\tSecure users only: " . ($secure_users_only ? "Yes" : "No") . "\n\t\tConfig parent: {$config_parent}"); as_log("\n-- end initialisation, begin functions --\n");
<div class="dslc-col dslc-6-col dslc-last-col"> <div class="as-context-404"> <p> <?php echo balanceTags(as_option('as_option_error_context_404'), true); ?> </p> </div> <div class="as-context-404-button"> <a href="<?php get_home_url(); ?> " class="as-btn-404-back-home"><?php _e('BACK TO HOME', AS_DOMAIN); ?> </a> <a href="<?php echo esc_url(as_option('as_option_error_report_url_404')); ?> " class="as-btn-404-back-home as-btn-report"><?php _e('REPORT A PROBLEM', AS_DOMAIN); ?> </a> </div> </div> </div> </div> </div> <!-- 404 PAGE / End --> <?php get_footer();
if (class_exists('Woocommerce')) { global $woocommerce; ?> <li class="as-icon-shopping"> <a href="javascript:void(0);"><span class="dslc-icon dslc-icon-shopping-cart"></span><span class="as-quatity-item-woo"><?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count); ?> </span></a> <div class="widget_shopping_cart_content"></div> </li> <?php } } ?> <?php if (as_option('as_option_check_icon_search_header_1', '1')) { ?> <li> <a href="#" class="trigger-search" data-id="search_dialog"> <span class="dslc-icon dslc-icon-search"></span> </a> </li> <?php } ?> </ul> <?php } ?> <!-- Icon Shop & Search / End --> </div>
" data-id="<?php echo esc_attr($post->ID); ?> "> <span class="dslc-icon dslc-icon-heart-empty"></span> <span class="number-like-heart"> <?php echo get_post_meta($post->ID, 'as_like_count', true) ? get_post_meta($post->ID, 'as_like_count', true) : 0; ?> </span> <?php _e('like', AS_DOMAIN); ?> </a> </div> <?php } ?> <?php if (as_option('as_blog_post_category', '1')) { ?> <div class="as-category"> <span class="dslc-icon dslc-icon-folder-open-alt"></span> <?php the_category(', '); ?> </div> <?php } ?> </div><!-- Info / End --> </div>
<div class="as-post-btn-group"> <div class="as-tag-post-wrapper"> <?php if (has_tag()) { ?> <span class="dslc-icon dslc-icon-as-pricetags"></span> <?php the_tags('Tags: ', ', ', '<br />'); ?> <?php } ?> </div> <div class="as-post-social-group"> <?php if (as_option('as_blog_btn_list_share_social', '1')) { ?> <div class="as-share-social-list"> <?php get_template_part('template/share', 'social-blog'); ?> <div class="as-share-btn"> <span class="dslc-icon dslc-icon-share-alt"></span> <?php _e('Share', AS_DOMAIN); ?> </div> </div> <?php } ?>
echo esc_html($breadcrumb_title); ?> </h1> <?php } else { ?> <h1 class="as-page-title as-breadcrumb-title"><?php echo esc_html($breadcrumb_title); ?> </h1> <?php } $as_breadcrumb = rwmb_meta('as_breadcrumb_menu'); $as_header_check = rwmb_meta('as_custom_page_metaboxes', 'type=checkbox_list'); settype($as_header_check, 'array'); if ($as_breadcrumb != 3 | !in_array('page_breadcrumb_options', $as_header_check) && as_option('as_option_breadcrumb_link', '1')) { ?> <!-- Breadcrumb Content --> <ul class="as-breadcrumb-link"> <?php if (!empty($breadcrum_content)) { $count = 0; foreach ($breadcrum_content as $link) { $count++; echo "<li>"; if (is_array($link)) { ?> <a href="<?php echo esc_url($link["url"]); ?>
get_template_part('footers/footer', $slug); ?> <?php } ?> <!-- End / Custom Footer --> <!-- Search Form ======================================================================== --> <?php get_template_part('template/search', 'form'); ?> <!-- Search Form / End --> <?php } ?> <?php if (as_option('as_option_scroll_to_top', '1')) { ?> <!-- Scrool to top ======================================================================== --> <div class="as-scrollup"><span class="dslc-icon-chevron-up"></span></div> <!-- Scrool to top / End --> <?php } wp_footer(); ?> </body> </html>
<div class="dslc-col dslc-5-col"> <?php if (as_option('as_option_copyright_footer_2')) { ?> <!-- Copyright --> <div class="as-copyright-footer"><?php echo esc_html(as_option('as_option_copyright_footer_2')); ?> </div> <!-- Copyright / End --> <?php } ?> </div> <div class="dslc-col dslc-7-col dslc-last-col"> <?php if (as_option('as_option_check_menu_footer_2', '2')) { ?> <!-- Menu --> <?php wp_nav_menu(array('container' => false, 'container_class' => 'as-menu', 'menu_class' => 'as-menu-footer-2', 'theme_location' => 'as_footer_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'fallback_cb' => false)); ?> <!-- Menu / End --> <?php } ?> </div> </div> </div> <!-- Footer Bottom & Coppyright / End -->
<?php /** * Monalisa the list social icon. * * Sets up the share social. * * @package WordPress * @subpackage Monalisa * @since Monalisa 1.0 */ ?> <ul class="as-list-social-header-wrapper"> <?php if (as_option('as_twitter_url')) { echo '<li><a href="' . esc_url(as_option('as_twitter_url')) . '" title="Twitter" class="as-twitter"><span class="dslc-icon dslc-icon-twitter"></span></a></li>'; } if (as_option('as_facebook_url')) { echo '<li><a href="' . esc_url(as_option('as_facebook_url')) . '" title="Facebook" class="as-facebook"><span class="dslc-icon dslc-icon-facebook"></span></a></li>'; } if (as_option('as_dribbble_url')) { echo '<li><a href="' . esc_url(as_option('as_dribbble_url')) . '" title="Dribbble" class="as-dribbble"><span class="dslc-icon dslc-icon-dribbble"></span></a></li>'; } if (as_option('as_google_url')) { echo '<li><a href="' . esc_url(as_option('as_google_url')) . '" title="Google Plus" class="as-google-plus"><span class="dslc-icon dslc-icon-google-plus"></span></a></li>'; } if (as_option('as_pinterest_url')) { echo '<li><a href="' . esc_url(as_option('as_pinterest_url')) . '" title="Pinterest" class="as-pinterest"><span class="dslc-icon dslc-icon-pinterest"></span></a></li>'; } ?> </ul>
======================================================================== --> <div id="footer-bottom-1"> <?php if (as_option('as_option_scroll_to_top', '1')) { ?> <!-- Scrool to top ======================================================================== --> <div class="as-scrollup"><span class="dslc-icon dslc-icon-double-angle-up"></span></div> <!-- Scrool to top / End --> <?php } ?> <div class="as-wrapper clearfix"> <div class="dslc-col dslc-12-col dslc-last-col"> <?php if (as_option('as_option_copyright_footer_1')) { ?> <!-- Copyright --> <div class="as-copyright-footer"><?php echo as_option('as_option_copyright_footer_1'); ?> </div> <!-- Copyright / End --> <?php } ?> </div> </div> </div> <!-- Footer Bottom & Coppyright / End -->
} .as-port-ajax-list-social li a:hover, .as-social-info-widget-wrapper .as-social-info-widget li a:hover, #mega-menu-wrap-as_header_menu #mega-menu-as_header_menu .as-social-info-widget li a:hover, .as-widget-footer .tagcloud a:hover, #mega-menu-wrap-as_header_menu #mega-menu-as_header_menu .tagcloud a:hover{ border-color: ' . $main_color . '; color: ' . $main_color . '; } .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce #content nav.woocommerce-pagination ul li span.current, .woocommerce #content nav.woocommerce-pagination ul li a:hover, .woocommerce #content nav.woocommerce-pagination ul li a:focus, .woocommerce-page nav.woocommerce-pagination ul li span.current, .woocommerce-page nav.woocommerce-pagination ul li a:hover, .woocommerce-page nav.woocommerce-pagination ul li a:focus, .woocommerce-page #content nav.woocommerce-pagination ul li span.current, .woocommerce-page #content nav.woocommerce-pagination ul li a:hover, .woocommerce-page #content nav.woocommerce-pagination ul li a:focus,.product_listing_buttons a.as_button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page a.button.alt, .woocommerce-page button.button.alt, .woocommerce-page input.button.alt, .woocommerce-page #respond input#submit.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce.widget_shopping_cart .buttons a:hover, .woocommerce .widget_shopping_cart .buttons a:hover, .woocommerce-page.widget_shopping_cart .buttons a:hover, .woocommerce-page .widget_shopping_cart .buttons a:hover, .widget_shopping_cart_content .buttons a:hover{ background: ' . $main_color . '; } .as-header-4-menu-wrapper .as-menu-4 li:hover a, .woocommerce table.cart a.remove:hover, .woocommerce #content table.cart a.remove:hover, .woocommerce-page table.cart a.remove:hover, .woocommerce-page #content table.cart a.remove:hover { color: ' . $main_color . '; } .search-form-wrapper-dialog input[type="submit"]{ color: ' . $main_color . '; } .search-form-wrapper-dialog input[type="submit"]{ border-color: ' . $main_color . '; outline-color:' . $main_color . '; } .as-post-btn-group a.as-btn-readmore:hover, .as-quatity-item-woo, .search-form-wrapper-dialog input[type="submit"]:hover{ background: ' . $main_color . '; } '; ?> <?php echo as_option('as_custom_css');
<?php /** * The template for displaying all pages * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages and that * other 'pages' on your WordPress site will use a different template. * * @author : Alena Studio */ get_header(); $sidebar_position = as_option('as_woo_listing_sidebar_position'); if ($sidebar_position == 'disable') { $content_size_class = 'dslc-12-col dslc-last-col'; } elseif ($sidebar_position == 'left') { $content_size_class = 'dslc-9-col dslc-last-col'; } else { $content_size_class = 'dslc-9-col'; } ?> <!-- Content ======================================================================== --> <div class="as-page-wrapper"> <div class="as-content-wrapper"> <div class="as-wrapper clearfix as-woo-page-wrapper"> <?php if ($sidebar_position == 'left') { ?> <div class="dslc-col dslc-3-col">
// get slug header value $as_header = rwmb_meta('as_header_box'); $as_header_check = rwmb_meta('as_custom_page_metaboxes', 'type=checkbox_list'); if ($as_header != 0 && in_array('page_header_options', $as_header_check)) { $slug = $as_header; } echo get_template_part('headers/header', $slug); } ?> <!-- End / Custom Header --> <!-- Breadcrumb ================================================== --> <?php $as_breadcrumb = rwmb_meta('as_breadcrumb_menu'); if (!is_page_template('page-home.php')) { if (in_array('page_Breadcrumb_options', $as_header_check)) { if ($as_breadcrumb == 1) { get_template_part('template/breadcrumb', 'page'); } } else { if (as_option('as_option_breadcrumb_style', '1')) { get_template_part('template/breadcrumb', 'page'); } } } ?> <?php }
function as_conf() { global $use_ssl, $secure_url; global $additional_urls, $ignore_urls, $secure_users_only; global $config_page, $config_parent; global $https_key, $https_value; if (isset($_POST["submit"])) { // // make sure current user can set permissions, // and that the referer was a page from this site // if (!as_user_can("manage_options")) { exit("You don't have permission to change these options!"); } check_admin_referer(); // // get the posted configuration options // $use_ssl = "on" === _post("use_ssl") ? 1 : 0; $additional_urls = _post("additional_urls"); $ignore_urls = _post("ignore_urls"); $secure_users_only = "on" === _post("secure_users_only") ? 1 : 0; $redirect = true; # if different config parent page chosen, need to redirect later if ($config_parent === _post("config_parent")) { $redirect = false; } else { $config_parent = _post("config_parent"); } $https_key = _post("https_key"); $https_value = _post("https_value"); // // verify the selected options // // // $config_parent may only be one of two options // if ($config_parent !== "plugins.php" && $config_parent !== "options-general.php") { $message = "You submitted an invalid value ('{$config_parent}') for config parent."; } // // https key and value cannot be empty // if (trim($https_key) === "") { $https_key = "HTTPS"; } if (trim($https_value) === "") { $https_value = "on"; } // // if there has been an error, reset all the options // if (isset($message)) { $use_ssl = as_option("get", "ssl_use_ssl"); $additional_urls = as_option("get", "additional_urls"); $ignore_urls = as_option("get", "ignore_urls"); $secure_users_only = as_option("get", "secure_users_only"); $config_parent = as_option("get", "config_parent"); $https_key = as_option("get", "https_key"); $https_value = as_option("get", "https_value"); as_log("as_conf()\nError saving options: {$message}\nResetting options to previous values"); } else { as_log("as_conf()\nNew option values will be saved"); } // // update options in database // as_option("update", "use_ssl", $use_ssl); as_option("update", "additional_urls", $additional_urls); as_option("update", "ignore_urls", $ignore_urls); as_option("update", "secure_users_only", $secure_users_only); as_option("update", "config_parent", $config_parent); as_option("update", "https_key", $https_key); as_option("update", "https_value", $https_value); if (!isset($message)) { $message = "Options saved."; } // // if config parent has been changed, redirect // if ($redirect) { $location = $config_parent . "?page=admin-ssl-config"; as_log("as_conf():\nRedirecting to {$location}"); as_redirect($location); } } // // require configuration settings page // require_once $config_page; }
<!-- Menu --> <?php wp_nav_menu(array('container' => false, 'container_class' => 'as-menu', 'menu_class' => 'as-primary-nav', 'theme_location' => 'as_header_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'fallback_cb' => false)); ?> </nav> <!-- Navigation Visible / End --> <!-- Header Inner --> <div class="as-header-inner"> <!-- Logo --> <div class="as-logo-wrapper"> <a href="<?php echo home_url(); ?> " class="as-logo-main-site"> <img src="<?php echo as_option('as_option_custom_logo', false, 'url'); ?> " alt="<?php echo get_bloginfo('name'); ?> "/> </a> </div> <!-- Logo / End --> <!-- Hamburger Menu --> <div id="as-hamburger" class="as-hamburglar is-open"> <div id="top"></div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="55px" height="55px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <path id="circle" fill="none" stroke-width="4" stroke-miterlimit="10" d="M16,32h32c0,0,11.723-0.306,10.75-11 c-0.25-2.75-1.644-4.971-2.869-7.151C50.728,7.08,42.767,2.569,33.733,2.054C33.159,2.033,32.599,2,32,2C15.432,2,2,15.432,2,32 c0,16.566,13.432,30,30,30c16.566,0,30-13.434,30-30C62,15.5,48.5,2,32,2S1.875,15.5,1.875,32"></path> </svg>
echo '<li><a href="' . esc_url(as_option('as_github_url')) . '" ' . $as_target . ' title="Github"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-github"></span></a></li>'; } if (as_option('as_dropbox_url')) { echo '<li><a href="' . esc_url(as_option('as_dropbox_url')) . '" ' . $as_target . ' title="Dropbox"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-dropbox"></span></a></li>'; } if (as_option('as_foursquare_url')) { echo '<li><a href="' . esc_url(as_option('as_foursquare_url')) . '" ' . $as_target . ' title="Foursquare"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-foursquare"></span></a></li>'; } ?> </ul> <!-- Copyright --> <?php if (as_option('as_option_sidenav_footer_copyright')) { ?> <p class="as-copyright-text-sidenav"><?php echo balanceTags(as_option('as_option_sidenav_footer_copyright')); ?> </p> <?php } ?> <!-- Copyright / End --> </div> <!-- List Social / End --> <?php } ?> </nav> <!-- SideNav / End --> <?php }
function as_init() { global $use_ssl, $secure_url; // // check Admin SSL version and perform DB maintenance as required // $previous_version = as_option("get", "version"); if ($previous_version < 2.0) { // // remove old options from the database // as_option("delete", "use_shared"); as_option("delete", "shared_url"); // // reset use SSL when switching to the new version in case shared was being used before // as_option("update", "use_ssl", false); $use_ssl = false; } // // set the current version of the Admin SSL plugin so we know it's been migrated next time // as_option("update", "version", AS_VERSION); if ($use_ssl) { // // disable redirection if testing // $do_redirect = !defined("TEST"); // // check if any of the secure uris matches the current request uri // $match = false; foreach (as_secure_uris() as $uri) { if (strpos(req_uri(), $uri) !== false) { $match = true; } } // // get the HTTP hosts for secure and non-secure URLs // $tmp = parse_url($secure_url); $secure_host = $tmp["host"]; $tmp = parse_url(get_option("siteurl")); $siteurl_host = $tmp["host"]; $host_should_be = is_https() ? $secure_host : $siteurl_host; $host_match = host() === $host_should_be ? true : false; // // for redirection between Shared SSL URL and site URL we need the bit of the URL // AFTER either $secure_url or siteurl - as an example: // to redirect from http://your_blog.com/wp-admin/profile.php // to https://some_host.com/~username/wp-admin/profile.php // we need to get /wp-admin/profile.php from siteurl as the path to add to $secure_url // if (host() === $secure_host) { $url_info = parse_url($secure_url); } elseif (host() === $siteurl_host) { $url_info = parse_url(get_option("siteurl")); } else { as_log("as_init()\nThe host ('" . host() . "') is neither the " . "secure host ('{$secure_host}') or the siteurl host ('{$siteurl_host}') - " . "Redirecting to blog home page"); as_log("as_init()\nRedirecting to: " . get_option("siteurl")); if ($do_redirect) { as_redirect(get_option("siteurl")); } else { return get_option("siteurl"); } # return value for testing purposes } $url_path_len = strlen($url_info["path"]); $url_path = substr(req_uri(), $url_path_len); as_log("as_init()\nURL path: {$url_path}"); // // redirect as necessary - secure or de-secure page - ensure correct HTTP host is being used // if ($match) { as_log("as_init()\nMatched url"); // // parse the url we need to redirect to // $url = parse_url($use_ssl ? $secure_url : get_option("siteurl")); // // build and redirect to the correct URL // if (!is_https() && $use_ssl || is_https() && !$use_ssl || host() !== $url["host"]) { $location = scheme($use_ssl) . $url["host"] . rtrim($url["path"], "/") . $url_path; as_log("as_init()\nRedirecting to: {$location}"); if ($do_redirect) { as_redirect($location); } else { return $location; } # return value for testing purposes } elseif ($use_ssl && is_https() && redirect_to()) { $wp_admin = strpos(redirect_to(), "wp-admin"); if ($wp_admin !== 0) { $_REQUEST["redirect_to"] = substr(redirect_to(), $wp_admin); } } } elseif (is_https() || !$host_match) { as_log("as_init()\nDid not match url and either it's secure or the hosts don't match"); $location = get_option("siteurl") . $url_path; as_log("as_init()\nRedirecting to: {$location}"); if ($do_redirect) { as_redirect($location); } else { return $location; } # return value for testing purposes } // // start output buffering // if ($use_ssl && !defined("TEST")) { ob_start("as_ob_handler"); } } }
<!-- List Social --> <div class="as-list-social-wrapper"> <ul class="as-social-nav"> <?php if (as_option('as_twitter_url')) { echo '<li><a href="' . as_option('as_twitter_url') . '" title="Twitter"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-twitter"></span></a></li>'; } if (as_option('as_facebook_url')) { echo '<li><a href="' . as_option('as_facebook_url') . '" title="Facebook"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-facebook"></span></a></li>'; } if (as_option('as_dribbble_url')) { echo '<li><a href="' . as_option('as_dribbble_url') . '" title="Dribbble"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-dribbble"></span></a></li>'; } if (as_option('as_google_url')) { echo '<li><a href="' . as_option('as_google_url') . '" title="Google Plus"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-google-plus"></span></a></li>'; } if (as_option('as_pinterest_url')) { echo '<li><a href="' . as_option('as_pinterest_url') . '" title="Pinterest"><div class="as-social-border-style"></div><span class="dslc-icon dslc-icon-pinterest"></span></a></li>'; } ?> </ul> </div> <!-- List Social / End --> <?php } ?> </div> </div> </div> </footer> <!-- Footer / End -->
/** * Heli the format content post for index. * * Sets up the content. * * @package WordPress * @subpackage Heli * @since Heli 1.0 */ ?> <div class="as-featured-img as-featured-content-img"> <?php if (has_post_thumbnail()) { $width_img_blog = as_option('as_blog_width_img'); $height_img_blog = as_option('as_blog_height_img'); $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url($thumb, 'full'); //get full URL to image (use "large" or "medium" if the images too big) $image = aq_resize($img_url, $width_img_blog, $height_img_blog, true); //resize & crop the image $anchor_class = 'dslc-lightbox-image'; ?> <?php if (is_single()) { ?> <a class="<?php echo esc_attr($anchor_class); ?> " href="<?php echo esc_url($img_url);
echo esc_attr($post->ID); ?> "> <span class="dslc-icon dslc-icon-heart"></span> <span class="number-like-heart"> <?php echo get_post_meta($post->ID, 'as_like_count', true) ? get_post_meta($post->ID, 'as_like_count', true) : 0; ?> </span> </a> </div> <?php } ?> <?php if (as_option('as_port_btn_list_share_social', '1')) { ?> <div class="as-share-social-list"> <?php get_template_part('template/share', 'social-blog'); ?> <div class="as-share-btn"> <span class="dslc-icon dslc-icon-share-alt"></span> <?php _e('Share', AS_DOMAIN); ?> </div> </div> <?php } ?>
<?php } ?> <div id="as-menu-header-1" class="as-header-1-wrapper"> <div class="as-wrapper clearfix"> <div class="dslc-col dslc-2-col"> <!-- Logo --> <?php if (as_option('as_option_check_logo_header_1', '1')) { ?> <a href="<?php echo esc_url(home_url()); ?> " class="as-logo-main-site "> <img class="as-header-logo-rotate" src="<?php echo esc_url(as_option('as_option_custom_logo', false, 'url')); ?> " alt="<?php echo get_bloginfo('name'); ?> "/> </a> <?php } ?> <!-- Logo / End --> </div> <div class="dslc-col dslc-10-col dslc-last-col"> <div class="as-cont-menu"> <!-- Menu --> <?php
$breadcrum_content[] = "Archive for " . apply_filters('the_time', get_the_time('Y'), 'Y'); } elseif (is_author()) { $breadcrum_content[] = "Author Archive"; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { $breadcrum_content[] = "Blog Archives"; } elseif (is_search()) { $breadcrum_content[] = "Search Results"; } elseif (is_404()) { $breadcrum_content[] = "404 page not found"; } ?> <!-- Breadcrumb & Title ======================================================================== --> <?php $parallax = ""; if (as_option('breadcrumb_background_parallax', '1')) { $parallax = "data-stellar-background-ratio=0.5"; } ?> <div id="as-breadcrumb-wrapper" <?php echo esc_attr($parallax); ?> > <div class="as-wrapper clearfix"> <div class="dslc-col dslc-12-col dslc-last-col"> <?php if (is_home()) { ?> <h1 class="as-page-title"><?php echo esc_html($breadcrumb_title); ?>