- Timestamp:
- 01/21/2021 11:45:46 AM (5 years ago)
- Location:
- sydney/1.74
- Files:
-
- 1 added
- 15 edited
- 1 copied
-
. (copied) (copied from sydney/1.73)
-
content-classic-alt.php (modified) (2 diffs)
-
content-modern.php (modified) (2 diffs)
-
content-page.php (modified) (2 diffs)
-
content-search.php (modified) (1 diff)
-
content-single.php (modified) (2 diffs)
-
content.php (modified) (2 diffs)
-
footer.php (modified) (1 diff)
-
functions.php (modified) (2 diffs)
-
header.php (modified) (4 diffs)
-
inc/customizer.php (modified) (1 diff)
-
inc/schema.php (added)
-
inc/template-tags.php (modified) (3 diffs)
-
js/functions.js (modified) (1 diff)
-
js/functions.min.js (modified) (1 diff)
-
sidebar.php (modified) (1 diff)
-
style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sydney/1.74/content-classic-alt.php
r139705 r142015 13 13 </div><!-- .entry-meta --> 14 14 <?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>' ); ?> 16 16 <?php sydney_post_date(); ?> 17 17 </header><!-- .entry-header --> … … 23 23 <?php endif; ?> 24 24 25 <div class="entry-post" >25 <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>> 26 26 <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?> 27 27 <?php the_content(); ?> -
sydney/1.74/content-modern.php
r139705 r142015 14 14 15 15 <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>' ); ?> 17 17 18 18 <?php if ( 'post' == get_post_type() && get_theme_mod('hide_meta_index') != 1 ) : ?> … … 24 24 </header><!-- .entry-header --> 25 25 26 <div class="entry-post" >26 <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>> 27 27 <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?> 28 28 <?php the_content(); ?> -
sydney/1.74/content-page.php
r139705 r142015 9 9 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 10 10 <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>' ); ?> 12 12 </header><!-- .entry-header --> 13 13 … … 18 18 <?php endif; ?> 19 19 20 <div class="entry-content" >20 <div class="entry-content" <?php sydney_do_schema( 'entry_content' ); ?>> 21 21 <?php the_content(); ?> 22 22 <?php -
sydney/1.74/content-search.php
r139705 r142015 21 21 </header><!-- .entry-header --> 22 22 23 <div class="entry-post" >23 <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>> 24 24 <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?> 25 25 <?php the_content(); ?> -
sydney/1.74/content-single.php
r139705 r142015 15 15 </div> 16 16 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>' ); ?> 18 18 19 19 <?php if ( get_theme_mod('hide_meta_single') != 1 && apply_filters( 'sydney_single_post_meta_enable', true ) ) : ?> … … 30 30 <?php endif; ?> 31 31 32 <div class="entry-content" >32 <div class="entry-content" <?php sydney_do_schema( 'entry_content' ); ?>> 33 33 <?php the_content(); ?> 34 34 <?php -
sydney/1.74/content.php
r139705 r142015 14 14 15 15 <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>' ); ?> 17 17 18 18 <?php if ( 'post' == get_post_type() && get_theme_mod('hide_meta_index') != 1 ) : ?> … … 23 23 </header><!-- .entry-header --> 24 24 25 <div class="entry-post" >25 <div class="entry-post" <?php sydney_do_schema( 'entry_content' ); ?>> 26 26 <?php if ( (get_theme_mod('full_content_home') == 1 && is_home() ) || (get_theme_mod('full_content_archives') == 1 && is_archive() ) ) : ?> 27 27 <?php the_content(); ?> -
sydney/1.74/footer.php
r139705 r142015 20 20 <a class="go-top"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-chevron-up', true ); ?></i></a> 21 21 22 <footer id="colophon" class="site-footer" role="contentinfo" >22 <footer id="colophon" class="site-footer" role="contentinfo" <?php sydney_do_schema( 'footer' ); ?>> 23 23 <div class="site-info container"> 24 24 <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 191 191 } 192 192 193 wp_enqueue_style( 'sydney-style', get_stylesheet_uri(), '', '202 00129' );193 wp_enqueue_style( 'sydney-style', get_stylesheet_uri(), '', '20210120' ); 194 194 195 195 wp_enqueue_style( 'sydney-ie9', get_template_directory_uri() . '/css/ie9.css', array( 'sydney-style' ) ); 196 196 wp_style_add_data( 'sydney-ie9', 'conditional', 'lte IE 9' ); 197 197 198 wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '202 01221', true );198 wp_enqueue_script( 'sydney-functions', get_template_directory_uri() . '/js/functions.min.js', array(), '20210120', true ); 199 199 200 200 if ( class_exists( 'Elementor\Plugin' ) ) { … … 538 538 539 539 /** 540 * Schema 541 */ 542 require get_template_directory() . '/inc/schema.php'; 543 544 /** 540 545 * Theme dashboard. 541 546 */ -
sydney/1.74/header.php
r139705 r142015 18 18 </head> 19 19 20 <body <?php body_class(); ?> >20 <body <?php body_class(); ?> <?php sydney_do_schema( 'html' ); ?>> 21 21 <?php wp_body_open(); ?> 22 22 … … 28 28 <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?> 29 29 30 <header id="masthead" class="site-header" role="banner" >30 <header id="masthead" class="site-header" role="banner" <?php sydney_do_schema( 'header' ); ?>> 31 31 <div class="header-wrap"> 32 32 <div class="<?php echo esc_attr( sydney_menu_container() ); ?>"> … … 34 34 <div class="col-md-4 col-sm-8 col-xs-12"> 35 35 <?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> 37 37 <?php if ( is_home() && !is_front_page() ) : ?> 38 38 <h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1> … … 45 45 <div class="col-md-8 col-sm-4 col-xs-12"> 46 46 <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' ); ?>> 48 48 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?> 49 49 </nav><!-- #site-navigation --> -
sydney/1.74/inc/customizer.php
r139705 r142015 118 118 ) 119 119 ); 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 120 137 121 138 //___Header area___// -
sydney/1.74/inc/template-tags.php
r139705 r142015 71 71 */ 72 72 function 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>'; 74 74 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>'; 76 76 } 77 77 … … 90 90 $byline = sprintf( 91 91 '%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>' 93 93 ); 94 94 … … 267 267 */ 268 268 function 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>'; 270 270 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>'; 272 272 } 273 273 $time_string = sprintf( $time_string, -
sydney/1.74/js/functions.js
r140723 r142015 144 144 mobileMenu.setAttribute( 'id', 'mainnav-mobi' ); 145 145 146 mobileMenu.classList.add( ' hidden' );146 mobileMenu.classList.add( 'syd-hidden' ); 147 147 148 148 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 11 11 ?> 12 12 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' ); ?>> 14 14 <?php dynamic_sidebar( 'sidebar-1' ); ?> 15 15 </div><!-- #secondary --> -
sydney/1.74/style.css
r140723 r142015 4 4 Author: aThemes 5 5 Author 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.7 36 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. 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/) 7 Version: 1.74 8 8 License: GNU General Public License v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 4137 4137 } 4138 4138 4139 #mainnav-mobi. hidden {4139 #mainnav-mobi.syd-hidden { 4140 4140 display: none; 4141 4141 }
Note: See TracChangeset
for help on using the changeset viewer.