Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Canal Ciência
Tema Canal Ciência
Commits
c9f38a06
Commit
c9f38a06
authored
1 year ago
by
Cátia Kitahara
Browse files
Options
Download
Email Patches
Plain Diff
Add coleção publicações institucionais, remove palavras-chave e formata arquivo
parent
d472d40e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
97 deletions
+102
-97
patterns/loop.php
patterns/loop.php
+102
-97
No files found.
patterns/loop.php
View file @
c9f38a06
...
...
@@ -30,11 +30,14 @@ if ($slug == 'ciencia-jovem') {
$ItemSetID
=
'22909'
;
}
elseif
(
$slug
==
'publicacoes'
)
{
$ItemSetID
=
'26890'
;
}
elseif
(
$slug
==
'publicacoes-institucionais'
)
{
$ItemSetID
=
'28586'
;
}
// Quantidade de colunas no grid de itens
if
(
$slug
==
'publicacoes'
||
$slug
==
'encartes'
)
{
if
(
$slug
==
'publicacoes'
||
$slug
==
'publicacoes-institucionais'
||
$slug
==
'encartes'
)
{
$columns_class
=
'cc-lista-2'
;
}
else
{
$columns_class
=
'cc-lista-3'
;
...
...
@@ -73,7 +76,7 @@ if ($parent_slug == 'ciencia-em-sintese') {
$item_title_class
=
'dcterms_title'
;
$excerpt
=
'dcterms:description'
;
$excerpt_class
=
'dcterms_description'
;
}
elseif
(
$slug
==
'publicacoes'
)
{
}
elseif
(
$slug
==
'publicacoes'
||
$slug
==
'publicacoes-institucionais'
)
{
$path
=
null
;
$featured_image
=
'foaf:img'
;
$featured_image_class
=
'foaf_img'
;
...
...
@@ -110,37 +113,43 @@ if ($areaDoConhecimento) {
<!-- wp:getod/getod-image {"GetOD_image":"
<?php
echo
$featured_image
?>
","classname":"cc-thumbnail"} -->
<figure
class=
"wp-block-getod-getod-image getod getod-image getod-empty dot-pulse getod-image-
<?php
echo
$featured_image_class
?>
cc-thumbnail"
metadata_id=
"
<?php
echo
$featured_image
?>
"
getod_image_description=
""
getod_image_source=
""
getod_image_alt=
""
getod_image_creator=
""
getod_image_date=
""
getod_image_accessrights=
""
getod_image_rightsholder=
""
getod_block=
"getod-image"
>
<?php
if
(
$slug
==
'publicacoes'
)
:
?>
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div
class=
"wp-block-group"
>
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Autor
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"GetOD_text":"dcterms:creator"} -->
<p
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_creator"
metadata_id=
"dcterms:creator"
getod_block=
"getod-text"
></p>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Editora
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:publisher"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_publisher"
metadata_id=
"dcterms:publisher"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Ano
</p>
<!-- /wp:paragraph -->
<?php
if
(
$slug
==
'publicacoes'
||
$slug
==
'publicacoes-institucionais'
)
:
?>
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div
class=
"wp-block-group"
>
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Autor
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"GetOD_text":"dcterms:creator"} -->
<p
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_creator"
metadata_id=
"dcterms:creator"
getod_block=
"getod-text"
></p>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Editora
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:publisher"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_publisher"
metadata_id=
"dcterms:publisher"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Ano
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:created"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_created"
metadata_id=
"dcterms:created"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
...
...
@@ -157,53 +166,53 @@ if ($areaDoConhecimento) {
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<?php
endif
;
?>
<?php
if
(
$slug
==
'encartes'
)
:
?>
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div
class=
"wp-block-group"
>
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Segmento
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:educationLevel"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_educationLevel"
metadata_id=
"dcterms:educationLevel"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Série
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"bibframe:intendedAudience"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-bibframe_intendedAudience"
metadata_id=
"bibframe:intendedAudience"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Grande área da BNCC
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:created"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_created"
metadata_id=
"dcterms:created"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Artigo
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div
class=
"wp-block-group"
>
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Segmento
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:educationLevel"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_educationLevel"
metadata_id=
"dcterms:educationLevel"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Série
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"bibframe:intendedAudience"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-bibframe_intendedAudience"
metadata_id=
"bibframe:intendedAudience"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:paragraph {"textColor":"cc-blue-70"} -->
<p
class=
"has-cc-blue-70-color has-text-color"
>
Grande área da BNCC
</p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-text {"elementoHtml":"span","GetOD_text":"dcterms:created"} -->
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-dcterms_created"
metadata_id=
"dcterms:created"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"fontSize":"small"} -->
<div
class=
"wp-block-group has-small-font-size"
>
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}}} -->
<div
class=
"wp-block-group"
style=
"font-style:normal;font-weight:600"
>
<!-- wp:getod/getod-relateditem {"GetOD_relateditem":"lom:hasRelatedResource","GetOD_wpPage":"/ciencia-em-sintese/textos-de-divulgacao/artigo"} -->
...
...
@@ -231,15 +240,15 @@ if ($areaDoConhecimento) {
<!-- wp:group {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"className":"wp-block-post-title"} -->
<div
class=
"wp-block-group wp-block-post-title"
style=
"font-style:normal;font-weight:600"
>
<?php
if
(
$slug
==
'publicacoes'
)
:
?>
<?php
if
(
$slug
==
'publicacoes'
||
$slug
==
'publicacoes-institucionais'
)
:
?>
<!-- wp:getod/getod-url {"GetOD_url":"bibo:content","className":"getod-url-bibo:content"} -->
<a
class=
"getod getod-url getod-empty getod-url-url getod-url-bibo_content"
getod_block=
"getod-url"
getod_url_type=
"a"
metadata_id=
"bibo:content"
remove_content=
"true"
href=
"#"
>
<!-- wp:getod/getod-url {"GetOD_url":"bibo:content","className":"getod-url-bibo:content"} -->
<a
class=
"getod getod-url getod-empty getod-url-url getod-url-bibo_content"
getod_block=
"getod-url"
getod_url_type=
"a"
metadata_id=
"bibo:content"
remove_content=
"true"
href=
"#"
>
<?php
else
:
?>
<?php
else
:
?>
<!-- wp:getod/getod-itemsetloop-url {"UrlPage":"
<?php
echo
$path
?>
"} -->
<div
class=
"getod getod-item-set-url getod-empty"
getod_block=
"getod-item-set-url"
><a
href=
"
<?php
echo
$path
?>
"
>
<!-- wp:getod/getod-itemsetloop-url {"UrlPage":"
<?php
echo
$path
?>
"} -->
<div
class=
"getod getod-item-set-url getod-empty"
getod_block=
"getod-item-set-url"
><a
href=
"
<?php
echo
$path
?>
"
>
<?php
endif
;
?>
...
...
@@ -247,15 +256,15 @@ if ($areaDoConhecimento) {
<span
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-
<?php
echo
$item_title_class
?>
"
metadata_id=
"
<?php
echo
$item_title
?>
"
getod_block=
"getod-text"
></span>
<!-- /wp:getod/getod-text -->
<?php
if
(
$slug
==
'publicacoes'
)
:
?>
<?php
if
(
$slug
==
'publicacoes'
||
$slug
==
'publicacoes-institucionais'
)
:
?>
</a>
<!-- /wp:getod/getod-url -->
</a>
<!-- /wp:getod/getod-url -->
<?php
else
:
?>
<?php
else
:
?>
</a></div>
<!-- /wp:getod/getod-itemsetloop-url -->
</a></div>
<!-- /wp:getod/getod-itemsetloop-url -->
<?php
endif
;
?>
...
...
@@ -267,19 +276,15 @@ if ($areaDoConhecimento) {
<?php
if
(
$slug
!=
'encartes'
&&
$slug
!=
'ciencia-jovem'
)
:
?>
<!-- wp:group {"style":{"spacing":{"margin":{"top":"18px","bottom":"18px"}}},"className":"cc-excerpt"} -->
<div
class=
"wp-block-group"
style=
"margin-top:18px;margin-bottom:18px"
>
<!-- wp:getod/getod-text {"GetOD_text":"
<?php
echo
$excerpt
?>
"} -->
<p
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-
<?php
echo
$excerpt_class
?>
cc-excerpt"
metadata_id=
"
<?php
echo
$excerpt
?>
"
getod_block=
"getod-text"
></p>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"18px","bottom":"18px"}}},"className":"cc-excerpt"} -->
<div
class=
"wp-block-group"
style=
"margin-top:18px;margin-bottom:18px"
>
<!-- wp:getod/getod-text {"GetOD_text":"
<?php
echo
$excerpt
?>
"} -->
<p
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-
<?php
echo
$excerpt_class
?>
cc-excerpt"
metadata_id=
"
<?php
echo
$excerpt
?>
"
getod_block=
"getod-text"
></p>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
<?php
endif
;
?>
<!-- wp:group {"style":{"typography":{"fontSize":"14px"}},"textColor":"cc-blue-70","className":"post-meta taxonomy-post_tag is-style-post-tag-icon"} -->
<div
class=
"wp-block-group post-meta taxonomy-post_tag is-style-post-tag-icon has-cc-blue-70-color has-text-color"
style=
"font-size:14px"
>
<!-- wp:getod/getod-text {"GetOD_text":"vivo:freetextKeyword"} -->
<p
class=
"wp-block-getod-getod-text getod getod-text getod-empty dot-pulse getod-text-vivo_freetextKeyword"
metadata_id=
"vivo:freetextKeyword"
getod_block=
"getod-text"
></p>
<!-- /wp:getod/getod-text -->
</div>
<!-- /wp:group -->
</div>
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
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