Make WordPress Themes

Changeset 142015 for sydney


Ignore:
Timestamp:
01/21/2021 11:45:46 AM (5 years ago)
Author:
themedropbox
Message:

New version of Sydney - 1.74

Location:
sydney/1.74
Files:
1 added
15 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sydney/1.74/content-classic-alt.php

    r139705 r142015  
    1313        </div><!-- .entry-meta -->
    1414        <?php endif; ?>
    15         <?php the_title( sprintf( '<h2 class="title-post entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
     15        <?php the_title( sprintf( '<h2 class="title-post entry-title" ' . sydney_get_schema( "headline" ) . '><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    1616        <?php sydney_post_date(); ?>
    1717    </header><!-- .entry-header -->
     
    2323    <?php endif; ?>
    2424   
    25     <div class="entry-post">
     25    <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>>
    2626        <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?>
    2727            <?php the_content(); ?>
  • sydney/1.74/content-modern.php

    r139705 r142015  
    1414
    1515    <header class="entry-header">
    16         <?php the_title( sprintf( '<h2 class="title-post entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
     16        <?php the_title( sprintf( '<h2 class="title-post entry-title" ' . sydney_get_schema( "headline" ) . '><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    1717
    1818        <?php if ( 'post' == get_post_type() && get_theme_mod('hide_meta_index') != 1 ) : ?>
     
    2424    </header><!-- .entry-header -->
    2525
    26     <div class="entry-post">
     26    <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>>
    2727        <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?>
    2828            <?php the_content(); ?>
  • sydney/1.74/content-page.php

    r139705 r142015  
    99<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1010    <header class="entry-header">
    11         <?php the_title( '<h1 class="title-post entry-title">', '</h1>' ); ?>
     11        <?php the_title( '<h1 class="title-post entry-title" ' . sydney_get_schema( "headline" ) . '>', '</h1>' ); ?>
    1212    </header><!-- .entry-header -->
    1313
     
    1818    <?php endif; ?>
    1919
    20     <div class="entry-content">
     20    <div class="entry-content" <?php sydney_do_schema( 'entry_content' ); ?>>
    2121        <?php the_content(); ?>
    2222        <?php
  • sydney/1.74/content-search.php

    r139705 r142015  
    2121    </header><!-- .entry-header -->
    2222
    23     <div class="entry-post">
     23    <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>>
    2424        <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?>
    2525            <?php the_content(); ?>
  • sydney/1.74/content-single.php

    r139705 r142015  
    1515        </div>
    1616
    17         <?php the_title( '<h1 class="title-post entry-title">', '</h1>' ); ?>
     17        <?php the_title( '<h1 class="title-post entry-title" ' . sydney_get_schema( "headline" ) . '>', '</h1>' ); ?>
    1818
    1919        <?php if ( get_theme_mod('hide_meta_single') != 1 && apply_filters( 'sydney_single_post_meta_enable', true ) ) : ?>
     
    3030    <?php endif; ?>
    3131
    32     <div class="entry-content">
     32    <div class="entry-content" <?php sydney_do_schema( 'entry_content' ); ?>>
    3333        <?php the_content(); ?>
    3434        <?php
  • sydney/1.74/content.php

    r139705 r142015  
    1414
    1515    <header class="entry-header">
    16         <?php the_title( sprintf( '<h2 class="title-post entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
     16        <?php the_title( sprintf( '<h2 class="title-post entry-title" ' . sydney_get_schema( "headline" ) . '><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
    1717
    1818        <?php if ( 'post' == get_post_type() && get_theme_mod('hide_meta_index') != 1 ) : ?>
     
    2323    </header><!-- .entry-header -->
    2424
    25     <div class="entry-post">
     25    <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>>
    2626        <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?>
    2727            <?php the_content(); ?>
  • sydney/1.74/footer.php

    r139705 r142015  
    2020    <a class="go-top"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-chevron-up', true ); ?></i></a>
    2121       
    22     <footer id="colophon" class="site-footer" role="contentinfo">
     22    <footer id="colophon" class="site-footer" role="contentinfo" <?php sydney_do_schema( 'footer' ); ?>>
    2323        <div class="site-info container">
    2424            <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'sydney' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'sydney' ), 'WordPress' ); ?></a>
  • sydney/1.74/functions.php

    r140723 r142015  
    191191    }
    192192
    193     wp_enqueue_style( 'sydney-style', get_stylesheet_uri(), '', '20200129' );
     193    wp_enqueue_style( 'sydney-style', get_stylesheet_uri(), '', '20210120' );
    194194
    195195    wp_enqueue_style( 'sydney-ie9', get_template_directory_uri() . '/css/ie9.css', array( 'sydney-style' ) );
    196196    wp_style_add_data( 'sydney-ie9', 'conditional', 'lte IE 9' );
    197197
    198     wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '20201221', true );
     198    wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '20210120', true );
    199199
    200200    if ( class_exists( 'Elementor\Plugin' ) ) {
     
    538538
    539539/**
     540 * Schema
     541 */
     542require get_template_directory() . '/inc/schema.php';
     543
     544/**
    540545 * Theme dashboard.
    541546 */
  • sydney/1.74/header.php

    r139705 r142015  
    1818</head>
    1919
    20 <body <?php body_class(); ?>>
     20<body <?php body_class(); ?> <?php sydney_do_schema( 'html' ); ?>>
    2121<?php wp_body_open(); ?>
    2222
     
    2828    <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?>
    2929
    30     <header id="masthead" class="site-header" role="banner">
     30    <header id="masthead" class="site-header" role="banner" <?php sydney_do_schema( 'header' ); ?>>
    3131        <div class="header-wrap">
    3232            <div class="<?php echo esc_attr( sydney_menu_container() ); ?>">
     
    3434                    <div class="col-md-4 col-sm-8 col-xs-12">
    3535                    <?php if ( get_theme_mod('site_logo') ) : ?>
    36                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
     36                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" <?php sydney_do_schema( 'logo' ); ?> /></a>
    3737                        <?php if ( is_home() && !is_front_page() ) : ?>
    3838                            <h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1>
     
    4545                    <div class="col-md-8 col-sm-4 col-xs-12">
    4646                        <div class="btn-menu"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-menu', true ); ?></i></div>
    47                         <nav id="mainnav" class="mainnav" role="navigation">
     47                        <nav id="mainnav" class="mainnav" role="navigation" <?php sydney_do_schema( 'nav' ); ?>>
    4848                            <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?>
    4949                        </nav><!-- #site-navigation -->
  • sydney/1.74/inc/customizer.php

    r139705 r142015  
    118118        )
    119119    );
     120
     121    $wp_customize->add_setting(
     122        'sydney_enable_schema',
     123        array(
     124            'sanitize_callback' => 'sydney_sanitize_checkbox',
     125        )       
     126    );
     127    $wp_customize->add_control(
     128        'sydney_enable_schema',
     129        array(
     130            'type'      => 'checkbox',
     131            'label'     => __('Enable Schema markup', 'sydney'),
     132            'section'   => 'sydney_general',
     133            'priority'  => 10,
     134        )
     135    );
     136
    120137
    121138    //___Header area___//
  • sydney/1.74/inc/template-tags.php

    r139705 r142015  
    7171 */
    7272function sydney_posted_on() {
    73     $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
     73    $time_string = '<time class="entry-date published updated" datetime="%1$s" ' . sydney_get_schema( 'published_date' ) . '>%2$s</time>';
    7474    if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
    75         $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
     75        $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s" ' . sydney_get_schema( 'modified_date' ) . '>%4$s</time>';
    7676    }
    7777
     
    9090    $byline = sprintf(
    9191        '%s',
    92         '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
     92        '<span class="author vcard" ' . sydney_get_schema( 'author_name' ) . '><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
    9393    );
    9494
     
    267267 */
    268268function sydney_post_date( $notext = false ) {
    269     $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
     269    $time_string = '<time class="entry-date published updated" datetime="%1$s" ' . sydney_get_schema( 'published_date' ) . '>%2$s</time>';
    270270    if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
    271         $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
     271        $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s" ' . sydney_get_schema( 'modified_date' ) . '>%4$s</time>';
    272272    }
    273273    $time_string = sprintf( $time_string,
  • sydney/1.74/js/functions.js

    r140723 r142015  
    144144            mobileMenu.setAttribute( 'id', 'mainnav-mobi' );
    145145
    146             mobileMenu.classList.add( 'hidden' );
     146            mobileMenu.classList.add( 'syd-hidden' );
    147147
    148148            var itemsWithChildren = mobileMenu.querySelectorAll( '.menu-item-has-children' );
  • sydney/1.74/js/functions.min.js

    r140723 r142015  
    1 "use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(a,b){b=b||window;for(var c=0;c<this.length;c++)a.call(b,this[c],c,this)});var sydney=sydney||{};sydney.backToTop={init:function(){this.displayButton()},setup:function(){const a=document.getElementsByClassName("go-top")[0];var b=window.pageYOffset;800<b?a.classList.add("show"):a.classList.remove("show"),a.addEventListener("click",function(){window.scrollTo({top:0,left:0,behavior:"smooth"})})},displayButton:function(){this.setup(),window.addEventListener("scroll",function(){this.setup()}.bind(this))}},sydney.removePreloader={init:function(){this.remove()},remove:function(){const a=document.getElementsByClassName("preloader")[0];a.classList.add("disable"),setTimeout(function(){a.classList.add("hide")},600)}},sydney.stickyMenu={init:function(){this.headerClone(),window.addEventListener("resize",function(){this.headerClone()}.bind(this)),this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},headerClone:function(){const a=document.getElementsByClassName("site-header")[0],b=document.getElementsByClassName("header-clone")[0];"undefined"==typeof b&&null==b||"undefined"==typeof a&&null==a||(b.style.height=a.offsetHeight+"px")},sticky:function(){const a=document.getElementsByClassName("site-header")[0];if("undefined"!=typeof a||null!=a){var b=window.pageYOffset,c=a.offsetTop;b>=c?(a.classList.add("fixed"),document.body.classList.add("siteScrolled")):(a.classList.remove("fixed"),document.body.classList.remove("siteScrolled")),107<=b?a.classList.add("float-header"):a.classList.remove("float-header")}}},sydney.mobileMenu={init:function(){this.menu(),window.addEventListener("resize",function(){this.menu()}.bind(this))},menu:function(){if(window.matchMedia("(max-width: 1024px)").matches){const b=document.getElementsByClassName("mainnav")[0],c=document.getElementsByClassName("btn-menu")[0];b.setAttribute("id","mainnav-mobi"),b.classList.add("hidden");var a=b.querySelectorAll(".menu-item-has-children");a.forEach(function(a){a.getElementsByTagName("ul")[0].style.display="none",a.getElementsByTagName("a")[0].insertAdjacentHTML("beforeend","<span class=\"btn-submenu\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"/></svg></span>")},"myThisArg"),this.toggle(c,b);const d=b.querySelectorAll(".btn-submenu");d.forEach(function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})},"myThisArg")}else{const a=document.getElementById("mainnav-mobi");if("undefined"!=typeof a&&null!=a){a.setAttribute("id","mainnav");const b=a.querySelectorAll(".btn-submenu");b.forEach(function(a){a.remove()},"myThisArg")}}},toggle:function(a,b){a.addEventListener("click",function(a){a.preventDefault(),b.classList.contains("toggled")?b.classList.remove("toggled"):b.classList.add("toggled"),a.stopImmediatePropagation()})},submenuToggle:function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})}};function sydneyDomReady(a){return"function"==typeof a?"interactive"===document.readyState||"complete"===document.readyState?a():void document.addEventListener("DOMContentLoaded",a,!1):void 0}sydneyDomReady(function(){sydney.backToTop.init(),sydney.removePreloader.init(),sydney.stickyMenu.init(),sydney.mobileMenu.init()}),window.addEventListener("load",function(){(function(a,b){"use strict";var c=b.querySelectorAll(["iframe[src*=\"youtube.com\"]","iframe[src*=\"vimeo.com\"]"].join(","));if(c.length)for(var d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("width"),g=e.getAttribute("height"),h=e.parentNode,j=b.createElement("div");j.className="fitVids-wrapper",j.style.paddingBottom=100*(g/f)+"%",h.insertBefore(j,e),e.remove(),j.appendChild(e),e.removeAttribute("height"),e.removeAttribute("width")}})(window,document)});
     1"use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(a,b){b=b||window;for(var c=0;c<this.length;c++)a.call(b,this[c],c,this)});var sydney=sydney||{};sydney.backToTop={init:function(){this.displayButton()},setup:function(){const a=document.getElementsByClassName("go-top")[0];var b=window.pageYOffset;800<b?a.classList.add("show"):a.classList.remove("show"),a.addEventListener("click",function(){window.scrollTo({top:0,left:0,behavior:"smooth"})})},displayButton:function(){this.setup(),window.addEventListener("scroll",function(){this.setup()}.bind(this))}},sydney.removePreloader={init:function(){this.remove()},remove:function(){const a=document.getElementsByClassName("preloader")[0];a.classList.add("disable"),setTimeout(function(){a.classList.add("hide")},600)}},sydney.stickyMenu={init:function(){this.headerClone(),window.addEventListener("resize",function(){this.headerClone()}.bind(this)),this.sticky(),window.addEventListener("scroll",function(){this.sticky()}.bind(this))},headerClone:function(){const a=document.getElementsByClassName("site-header")[0],b=document.getElementsByClassName("header-clone")[0];"undefined"==typeof b&&null==b||"undefined"==typeof a&&null==a||(b.style.height=a.offsetHeight+"px")},sticky:function(){const a=document.getElementsByClassName("site-header")[0];if("undefined"!=typeof a||null!=a){var b=window.pageYOffset,c=a.offsetTop;b>=c?(a.classList.add("fixed"),document.body.classList.add("siteScrolled")):(a.classList.remove("fixed"),document.body.classList.remove("siteScrolled")),107<=b?a.classList.add("float-header"):a.classList.remove("float-header")}}},sydney.mobileMenu={init:function(){this.menu(),window.addEventListener("resize",function(){this.menu()}.bind(this))},menu:function(){if(window.matchMedia("(max-width: 1024px)").matches){const b=document.getElementsByClassName("mainnav")[0],c=document.getElementsByClassName("btn-menu")[0];b.setAttribute("id","mainnav-mobi"),b.classList.add("syd-hidden");var a=b.querySelectorAll(".menu-item-has-children");a.forEach(function(a){a.getElementsByTagName("ul")[0].style.display="none",a.getElementsByTagName("a")[0].insertAdjacentHTML("beforeend","<span class=\"btn-submenu\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"/></svg></span>")},"myThisArg"),this.toggle(c,b);const d=b.querySelectorAll(".btn-submenu");d.forEach(function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})},"myThisArg")}else{const a=document.getElementById("mainnav-mobi");if("undefined"!=typeof a&&null!=a){a.setAttribute("id","mainnav");const b=a.querySelectorAll(".btn-submenu");b.forEach(function(a){a.remove()},"myThisArg")}}},toggle:function(a,b){a.addEventListener("click",function(a){a.preventDefault(),b.classList.contains("toggled")?b.classList.remove("toggled"):b.classList.add("toggled"),a.stopImmediatePropagation()})},submenuToggle:function(a){a.addEventListener("click",function(b){b.preventDefault();var c=a.parentNode.parentNode;c.getElementsByClassName("sub-menu")[0].classList.toggle("toggled")})}};function sydneyDomReady(a){return"function"==typeof a?"interactive"===document.readyState||"complete"===document.readyState?a():void document.addEventListener("DOMContentLoaded",a,!1):void 0}sydneyDomReady(function(){sydney.backToTop.init(),sydney.removePreloader.init(),sydney.stickyMenu.init(),sydney.mobileMenu.init()}),window.addEventListener("load",function(){(function(a,b){"use strict";var c=b.querySelectorAll(["iframe[src*=\"youtube.com\"]","iframe[src*=\"vimeo.com\"]"].join(","));if(c.length)for(var d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("width"),g=e.getAttribute("height"),h=e.parentNode,j=b.createElement("div");j.className="fitVids-wrapper",j.style.paddingBottom=100*(g/f)+"%",h.insertBefore(j,e),e.remove(),j.appendChild(e),e.removeAttribute("height"),e.removeAttribute("width")}})(window,document)});
  • sydney/1.74/sidebar.php

    r139705 r142015  
    1111?>
    1212
    13 <div id="secondary" class="widget-area col-md-3" role="complementary">
     13<div id="secondary" class="widget-area col-md-3" role="complementary" <?php sydney_do_schema( 'sidebar' ); ?>>
    1414    <?php dynamic_sidebar( 'sidebar-1' ); ?>
    1515</div><!-- #secondary -->
  • sydney/1.74/style.css

    r140723 r142015  
    44Author: aThemes
    55Author URI: https://athemes.com
    6 Description: Sydney is a powerful business theme that provides a fast way for companies or freelancers to create an awesome online presence. As well as being fully compatible with Elementor, Sydney brings plenty of customization possibilities like access to all Google Fonts, full color control, layout control, logo upload, full screen slider, header image, sticky navigation and much more. Also, Sydney provides all the construction blocks you need to rapidly create an engaging front page.
    7 Version: 1.73
     6Description: Sydney is a powerful business theme that provides a fast way for companies or freelancers to create an awesome online presence. As well as being fully compatible with Elementor, Sydney brings plenty of customization possibilities like access to all Google Fonts, full color control, layout control, logo upload, full screen slider, header image, sticky navigation and much more. Also, Sydney provides all the construction blocks you need to rapidly create an engaging front page. Looking for a quick start with Sydney? With just a few clicks, you can import one of our existing demos (https://athemes.com/sydney-demos/)
     7Version: 1.74
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    41374137}
    41384138
    4139 #mainnav-mobi.hidden {
     4139#mainnav-mobi.syd-hidden {
    41404140    display: none;
    41414141}
Note: See TracChangeset for help on using the changeset viewer.