Commit 1710f208 authored by Simon's avatar Simon

position SEO schema, nginx stapling removed

parent f5bb8fcb
...@@ -169,7 +169,7 @@ http { ...@@ -169,7 +169,7 @@ http {
# server{} configuration files should be placed in the conf.d folder. # server{} configuration files should be placed in the conf.d folder.
# The configurations should be disabled by prefixing files with a dot. # The configurations should be disabled by prefixing files with a dot.
include h5bp/ssl/ocsp_stapling.conf; # include h5bp/ssl/ocsp_stapling.conf;
include h5bp/ssl/policy_modern.conf; include h5bp/ssl/policy_modern.conf;
include h5bp/ssl/ssl_engine.conf; include h5bp/ssl/ssl_engine.conf;
......
...@@ -319,6 +319,15 @@ function biuro_widger_areas() { ...@@ -319,6 +319,15 @@ function biuro_widger_areas() {
'after_title' => '', 'after_title' => '',
) ); ) );
register_sidebar( array(
'name' => 'Jobs: Hiring organization (schema.org)',
'id' => 'hiring_organization',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array( register_sidebar( array(
'name' => 'Recommend page: Content area', 'name' => 'Recommend page: Content area',
'id' => 'recommend_page_content_area', 'id' => 'recommend_page_content_area',
...@@ -974,24 +983,3 @@ function getDivisions($ID) { ...@@ -974,24 +983,3 @@ function getDivisions($ID) {
return $wpdb->get_results($sql, ARRAY_A); return $wpdb->get_results($sql, ARRAY_A);
} }
// function getCities() {
// global $wpdb;
// $langs = pll_the_languages(array('raw'=>1));
// $langID = $langs[pll_current_language('slug')]['id'];
// $prefix = $wpdb->prefix;
// $cities = get_terms( array(
// 'taxonomy' => 'city',
// 'hide_empty' => false,
// ) );
// delog($wpdb->last_query);
// delog('$cities');
// debug($cities);
// return [];
// }
...@@ -68,8 +68,6 @@ get_header(); ?> ...@@ -68,8 +68,6 @@ get_header(); ?>
</span> </span>
</aside><!-- .l-aside --> </aside><!-- .l-aside -->
<main id="main" class="l-main"> <main id="main" class="l-main">
<?php <?php
......
...@@ -109,13 +109,17 @@ get_header(); ...@@ -109,13 +109,17 @@ get_header();
$occupationalCategories = get_the_terms( $ID, 'field' ); $occupationalCategories = get_the_terms( $ID, 'field' );
foreach ($occupationalCategories as &$occupationalCategory) : foreach ($occupationalCategories as &$occupationalCategory) :
echo '<meta itemprop="occupationalCategory" content="' . $occupationalCategory->name . '" />'; ?>
<meta itemprop="occupationalCategory" content="<?php echo $occupationalCategory->name ; ?>" />
<?php
endforeach; endforeach;
$employmentTypes = get_the_terms( $ID, 'type' ); $employmentTypes = get_the_terms( $ID, 'type' );
foreach ($employmentTypes as &$employmentType) : foreach ($employmentTypes as &$employmentType) :
echo '<meta itemprop="employmentType" content="' . $employmentType->name . '" />'; ?>
<meta itemprop="employmentType" content="<?php echo $employmentType->name; ?>" />
<?php
endforeach; endforeach;
?> ?>
<ul class="c-categories"> <ul class="c-categories">
...@@ -228,49 +232,14 @@ get_header(); ...@@ -228,49 +232,14 @@ get_header();
endif; endif;
endif; endif;
if ( is_active_sidebar( 'hiring_organization' ) ) :
dynamic_sidebar( 'hiring_organization' );
endif;
$validPosition = date_i18n( 'Y-m-d', strtotime( $pod->field( 'valid' ) ) ) >= date('Y-m-d') ? true : false; $validPosition = date_i18n( 'Y-m-d', strtotime( $pod->field( 'valid' ) ) ) >= date('Y-m-d') ? true : false;
?> ?>
<b><?php _e('Valid till', 'biuro'); ?>:</b> <time itemprop="validThrough" datetime="<?php echo date_i18n( 'Y-m-d', strtotime( $pod->field( 'valid' ) ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'valid' ) ) ); ?></time> <b><?php _e('Valid till', 'biuro'); ?>:</b> <time itemprop="validThrough" datetime="<?php echo date_i18n( 'Y-m-d', strtotime( $pod->field( 'valid' ) ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'valid' ) ) ); ?></time>
<?php
$organizationName = 'UAB „Biuro“';
$organizationTelephone = '+37064902392';
$organizationEmail = 'info@biuro.lt';
$organizationStreetAddress = 'Gedimino pr. 26';
$organizationPostalCode = 'LT-01104';
$organizationAddressLocality = 'Vilnius, Lietuva';
$blogID = get_current_blog_id();
if ($blogID == 2):
$organizationName = 'UAB „Biuro“';
$organizationTelephone = '+37064902392';
$organizationEmail = 'info@biuro.lt';
$organizationStreetAddress = 'Gedimino pr. 26';
$organizationPostalCode = 'LT-01104';
$organizationAddressLocality = 'Vilnius, Lietuva';
endif;
if ($blogID == 3):
$organizationName = 'UAB „Biuro“';
$organizationTelephone = '+37064902392';
$organizationEmail = 'info@biuro.lt';
$organizationStreetAddress = 'Gedimino pr. 26';
$organizationPostalCode = 'LT-01104';
$organizationAddressLocality = 'Vilnius, Lietuva';
endif;
?>
<div itemprop="hiringOrganization" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="<?php echo $organizationName; ?>" />
<meta itemprop="telephone" content="<?php echo $organizationTelephone; ?>" />
<meta itemprop="email" content="<?php echo $organizationEmail; ?>" />
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="<?php echo $organizationStreetAddress; ?>" />
<meta itemprop="postalCode" content="<?php echo $organizationPostalCode; ?>" />
<meta itemprop="addressLocality" content="<?php echo $organizationAddressLocality; ?>" />
</div>
</div>
</div> </div>
<?php <?php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment