Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
1710f208
Commit
1710f208
authored
Nov 25, 2019
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
position SEO schema, nginx stapling removed
parent
f5bb8fcb
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
194 additions
and
239 deletions
+194
-239
nginx.conf
nginx/nginx.conf
+1
-1
functions.php
wp-content/themes/biuro/functions.php
+9
-21
search.php
wp-content/themes/biuro/search.php
+174
-176
single-job.php
wp-content/themes/biuro/single-job.php
+10
-41
No files found.
nginx/nginx.conf
View file @
1710f208
...
...
@@ -169,7 +169,7 @@ http {
# server{} configuration files should be placed in the conf.d folder.
# 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/ssl_engine.conf
;
...
...
wp-content/themes/biuro/functions.php
View file @
1710f208
...
...
@@ -319,6 +319,15 @@ function biuro_widger_areas() {
'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
(
'name'
=>
'Recommend page: Content area'
,
'id'
=>
'recommend_page_content_area'
,
...
...
@@ -974,24 +983,3 @@ function getDivisions($ID) {
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 [];
// }
wp-content/themes/biuro/search.php
View file @
1710f208
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/single-job.php
View file @
1710f208
...
...
@@ -109,13 +109,17 @@ get_header();
$occupationalCategories
=
get_the_terms
(
$ID
,
'field'
);
foreach
(
$occupationalCategories
as
&
$occupationalCategory
)
:
echo
'<meta itemprop="occupationalCategory" content="'
.
$occupationalCategory
->
name
.
'" />'
;
?>
<meta
itemprop=
"occupationalCategory"
content=
"
<?php
echo
$occupationalCategory
->
name
;
?>
"
/>
<?php
endforeach
;
$employmentTypes
=
get_the_terms
(
$ID
,
'type'
);
foreach
(
$employmentTypes
as
&
$employmentType
)
:
echo
'<meta itemprop="employmentType" content="'
.
$employmentType
->
name
.
'" />'
;
?>
<meta
itemprop=
"employmentType"
content=
"
<?php
echo
$employmentType
->
name
;
?>
"
/>
<?php
endforeach
;
?>
<ul
class=
"c-categories"
>
...
...
@@ -228,49 +232,14 @@ get_header();
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
;
?>
<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>
<?php
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment