migrated naming in css, php js from officinasuport-wp-theme to xarxaprod
This commit is contained in:
parent
a92d9c3967
commit
97d077b0c7
12
404.php
12
404.php
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
@ -14,11 +14,11 @@ get_header();
|
|||
|
||||
<section class="error-404 not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'Ho sentim, aquesta pàgina no es vaig poder trobar.', 'ofisuport' ); ?></h1>
|
||||
<h1 class="page-title"><?php esc_html_e( 'Ho sentim, aquesta pàgina no es vaig poder trobar.', 'xarxaprod' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<p><?php esc_html_e( 'Sembla que no s’ha trobat res en aquest lloc. Potser provar un dels enllaços de sota o una cerca?', 'ofisuport' ); ?></p>
|
||||
<p><?php esc_html_e( 'Sembla que no s’ha trobat res en aquest lloc. Potser provar un dels enllaços de sota o una cerca?', 'xarxaprod' ); ?></p>
|
||||
|
||||
<?php
|
||||
get_search_form();
|
||||
|
@ -27,7 +27,7 @@ get_header();
|
|||
?>
|
||||
|
||||
<div class="widget widget_categories">
|
||||
<h2 class="widget-title"><?php esc_html_e( 'Categories més utilitzades', 'ofisuport' ); ?></h2>
|
||||
<h2 class="widget-title"><?php esc_html_e( 'Categories més utilitzades', 'xarxaprod' ); ?></h2>
|
||||
<ul>
|
||||
<?php
|
||||
wp_list_categories(
|
||||
|
@ -45,8 +45,8 @@ get_header();
|
|||
|
||||
<?php
|
||||
/* translators: %1$s: smiley */
|
||||
$ofisuport_archive_content = '<p>' . sprintf( esc_html__( 'Potser buscant en els arxius mensuals. %1$s', 'ofisuport' ), convert_smilies( ':)' ) ) . '</p>';
|
||||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$ofisuport_archive_content" );
|
||||
$xarxaprod_archive_content = '<p>' . sprintf( esc_html__( 'Potser buscant en els arxius mensuals. %1$s', 'xarxaprod' ), convert_smilies( ':)' ) ) . '</p>';
|
||||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$xarxaprod_archive_content" );
|
||||
|
||||
the_widget( 'WP_Widget_Tag_Cloud' );
|
||||
?>
|
||||
|
|
148
adminstyles.css
148
adminstyles.css
|
@ -12,23 +12,23 @@
|
|||
|
||||
/*
|
||||
|
||||
Theme Name: Espai Assessorament - XarxaProd.cat
|
||||
Theme Name: XarxaProd.cat 2024
|
||||
Theme URI: https://git.hangar.org/xarxaprod/
|
||||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.0.7
|
||||
Tested up to: 6.2
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Text Domain: ofisuport
|
||||
Text Domain: xarxaprod
|
||||
Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned.
|
||||
|
||||
Epai d'Assessorament, projecte oficina de suport de la XarxaProd.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
The Xarxaprod.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
|
@ -896,13 +896,13 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area article:not(.type-post) .ofisuport-label {
|
||||
.edit-post-visual-editor__content-area article:not(.type-post) .xarxaprod-label {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area article:not(.type-post) .ofisuport-label li {
|
||||
.edit-post-visual-editor__content-area article:not(.type-post) .xarxaprod-label li {
|
||||
display: inline-block;
|
||||
margin: 0.1em 0;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
|
@ -949,11 +949,11 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types ul {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types .cat-item {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types .cat-item {
|
||||
display: inline-block;
|
||||
margin: 0.1em 0.5em 0.1em 0;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
|
@ -964,25 +964,25 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types .current-cat {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types .current-cat {
|
||||
background-color: #ff8d76;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types a {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types a:visited,
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-types a:hover {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types a:visited,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-types a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .single-ofisuport-ajut article:not(.type-post) .ofisuport-label li {
|
||||
.edit-post-visual-editor__content-area .single-xarxaprod-ajut article:not(.type-post) .xarxaprod-label li {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .single-ofisuport-ajut article:not(.type-post) .item-os_fund_apply_text {
|
||||
.edit-post-visual-editor__content-area .single-xarxaprod-ajut article:not(.type-post) .item-os_fund_apply_text {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
@ -1161,16 +1161,16 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-search-form {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-search-form {
|
||||
display: flex;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-search-form .search-field {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-search-form .search-field {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-search-form .search-submit {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-search-form .search-submit {
|
||||
z-index: 10;
|
||||
margin: 0;
|
||||
border: none;
|
||||
|
@ -1181,7 +1181,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
font-size: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-icon-search::before {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-icon-search::before {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 0.2rem 0 0 -1.5rem;
|
||||
|
@ -1304,8 +1304,8 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-destacats,
|
||||
.edit-post-visual-editor__content-area .ofisuport-featured,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-destacats,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-featured,
|
||||
.edit-post-visual-editor__content-area .archive-posts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
|
@ -1347,23 +1347,23 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-destacats,
|
||||
.edit-post-visual-editor__content-area .ofisuport-featured,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-destacats,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-featured,
|
||||
.edit-post-visual-editor__content-area .archive-posts {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-aside {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-aside {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:hover,
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:active,
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:focus,
|
||||
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:target {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:hover,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:active,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:focus,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:target {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
@ -1452,8 +1452,8 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
border-left: 1px solid #000;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://localhost"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
@ -1678,14 +1678,14 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0.5rem 0;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://localhost"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: none;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://localhost"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
|
@ -1778,8 +1778,8 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
padding-bottom: 0;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://localhost"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
@ -1794,7 +1794,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
* */
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-ofisuport-ajut.php
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* */
|
||||
|
||||
|
@ -1826,61 +1826,61 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-card-each .entry-title,
|
||||
.edit-post-visual-editor__content-area .ofisuport-card-each h6 {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-card-each .entry-title,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-card-each h6 {
|
||||
border-bottom: 1px solid #000;
|
||||
margin: 0;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-card-each p {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-card-each p {
|
||||
padding: 0.5rem 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-card-each .more-link {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-card-each .more-link {
|
||||
display: inline-block;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields .ofisuport-fund-info-field,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields .ofisuport-fund-info-field {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields h6,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields h6 {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields h6,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields h6 {
|
||||
font-size: 2.4rem;
|
||||
font-variant: all-petite-caps;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields p,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields p {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields p,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields p {
|
||||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields li,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields li {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields li,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields li {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields .ofisuport-fund-info-field {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields .ofisuport-fund-info-field {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-info-fields .xarxaprod-fund-info-field {
|
||||
margin: 1rem 0 0.5rem 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-funder-name,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-contact-name,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-web {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-funder-name,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-contact-name,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-web {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1890,25 +1890,25 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-funder-name a,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-contact-name a,
|
||||
.edit-post-visual-editor__content-area .ofisuport-fund-web a {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-funder-name a,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-contact-name a,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-fund-web a {
|
||||
text-decoration: none;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds {
|
||||
display: grid;
|
||||
grid: 1fr;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_target .filter,
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_source .filter,
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_field .filter {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds .os_fund_target .filter,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds .os_fund_source .filter,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds .os_fund_field .filter {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
|
@ -1916,7 +1916,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-titol-opcions {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
max-width: 13em;
|
||||
|
@ -1931,13 +1931,13 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions::after {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-titol-opcions::after {
|
||||
content: ">";
|
||||
display: inline;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions:hover::after {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-titol-opcions:hover::after {
|
||||
transform: rotate(90deg);
|
||||
animation: rotate 0.5s;
|
||||
}
|
||||
|
@ -1961,16 +1961,16 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section h5 {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section h5 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section .filter {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section .filter {
|
||||
display: inline-block;
|
||||
width: 45%;
|
||||
margin-top: 0.5rem;
|
||||
|
@ -1978,22 +1978,22 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
float: left;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section .filter:last-of-type {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section .filter:last-of-type {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filters section {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 2fr;
|
||||
}
|
||||
|
||||
|
@ -2005,7 +2005,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
@media screen and (min-width: 80em) {
|
||||
|
||||
.edit-post-visual-editor__content-area .ofisuport-filtered-funds {
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying archive custom post type ofisuport-ajut
|
||||
* The template for displaying archive custom post type xarxaprod-ajut
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
@ -15,29 +15,29 @@ get_header();
|
|||
// Detect plugin. For use on Front End only.
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||||
// check for plugin using plugin name
|
||||
if ( is_plugin_active( 'oficinasuport-wp-plugin/ofisuport-wp-plugin.php' ) ) {
|
||||
if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) {
|
||||
//plugin is activated do
|
||||
?>
|
||||
|
||||
<section id="filteredfunds" class="ofisuport-filtered-funds ofisuport-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-filtre-ajuts">
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts">
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- https://stackoverflow.com/a/48314274 -->
|
||||
(function($) {
|
||||
$('.fund-filter').ready(function() {
|
||||
$('.oficinasuport-titol-opcions').click(function() {
|
||||
$('.xarxaprod-titol-opcions').click(function() {
|
||||
$(this).siblings(".filter").toggle();
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post();
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
@ -16,7 +16,7 @@ get_header();
|
|||
|
||||
<header class="page-header">
|
||||
</header><!-- .page-header -->
|
||||
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) :
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
|
@ -16,8 +16,8 @@ get_header();
|
|||
<main id="primary" class="site-main">
|
||||
|
||||
<?php if( in_category('faq') ) : ?>
|
||||
<?php ofisuport_display_faqs_labels(); ?>
|
||||
<?php ofisuport_display_faqs_search(); ?>
|
||||
<?php xarxaprod_display_faqs_labels(); ?>
|
||||
<?php xarxaprod_display_faqs_search(); ?>
|
||||
|
||||
<?php endif; //end if is_category faq ?>
|
||||
<content class="archive-posts ">
|
||||
|
|
14
comments.php
14
comments.php
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -28,18 +28,18 @@ if ( post_password_required() ) {
|
|||
?>
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
$ofisuport_comment_count = get_comments_number();
|
||||
if ( '1' === $ofisuport_comment_count ) {
|
||||
$xarxaprod_comment_count = get_comments_number();
|
||||
if ( '1' === $xarxaprod_comment_count ) {
|
||||
printf(
|
||||
/* translators: 1: title. */
|
||||
esc_html__( 'One thought on “%1$s”', 'ofisuport' ),
|
||||
esc_html__( 'One thought on “%1$s”', 'xarxaprod' ),
|
||||
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
/* translators: 1: comment count number, 2: title. */
|
||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $ofisuport_comment_count, 'comments title', 'ofisuport' ) ),
|
||||
number_format_i18n( $ofisuport_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $xarxaprod_comment_count, 'comments title', 'xarxaprod' ) ),
|
||||
number_format_i18n( $xarxaprod_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
||||
);
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ if ( post_password_required() ) {
|
|||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() ) :
|
||||
?>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'ofisuport' ); ?></p>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'xarxaprod' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"scripts": {
|
||||
"lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
|
||||
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .",
|
||||
"make-pot": "wp i18n make-pot . languages/ofisuport.pot"
|
||||
"make-pot": "wp i18n make-pot . languages/xarxaprod.pot"
|
||||
},
|
||||
"support": {
|
||||
"issues": "https://github.com/Automattic/_s/issues",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -14,16 +14,16 @@
|
|||
<footer id="colophon" class="site-footer">
|
||||
<div class="site-info">
|
||||
<?php dynamic_sidebar( 'footer' ); ?>
|
||||
<?php //echo '<a href="' . esc_url( __( 'https://wordpress.org/', 'ofisuport' ) ) . '">'; ?>
|
||||
<?php //echo '<a href="' . esc_url( __( 'https://wordpress.org/', 'xarxaprod' ) ) . '">'; ?>
|
||||
<?php
|
||||
/* translators: %s: CMS name, i.e. WordPress. */
|
||||
//printf( esc_html__( 'Proudly powered by %s', 'ofisuport' ), 'WordPress' );
|
||||
//printf( esc_html__( 'Proudly powered by %s', 'xarxaprod' ), 'WordPress' );
|
||||
?>
|
||||
<?php //echo '</a>'; ?>
|
||||
<!--span class="sep"></span-->
|
||||
<?php
|
||||
/* translators: 1: Theme name, 2: Theme author. */
|
||||
//printf( esc_html__( 'Theme: %1$s by %2$s.', 'ofisuport' ), 'ofisuport', '<a href="https://vitrubio.net">jorge-vitrubio.net</a>' );
|
||||
//printf( esc_html__( 'Theme: %1$s by %2$s.', 'xarxaprod' ), 'xarxaprod', '<a href="https://vitrubio.net">jorge-vitrubio.net</a>' );
|
||||
?>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* Oficina de Suport theme functions and definitions
|
||||
* Xarxaprod theme functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
if ( ! defined( '_S_VERSION' ) ) {
|
||||
|
@ -19,14 +19,14 @@ if ( ! defined( '_S_VERSION' ) ) {
|
|||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function ofisuport_setup() {
|
||||
function xarxaprod_setup() {
|
||||
/*
|
||||
* Make theme available for translation.
|
||||
* Translations can be filed in the /languages/ directory.
|
||||
* If you're building a theme based on Oficina de Suport theme, use a find and replace
|
||||
* to change 'ofisuport' to the name of your theme in all the template files.
|
||||
* If you're building a theme based on Xarxaprod theme, use a find and replace
|
||||
* to change 'xarxaprod' to the name of your theme in all the template files.
|
||||
*/
|
||||
load_theme_textdomain( 'ofisuport', get_template_directory() . '/languages' );
|
||||
load_theme_textdomain( 'xarxaprod', get_template_directory() . '/languages' );
|
||||
|
||||
// Add default posts and comments RSS feed links to head.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
@ -49,8 +49,8 @@ function ofisuport_setup() {
|
|||
// This theme uses wp_nav_menu()
|
||||
register_nav_menus(
|
||||
array(
|
||||
'menu-1' => esc_html__( 'Primary', 'ofisuport' ),
|
||||
'menu-2' => esc_html__( 'Secondary', 'ofisuport' ),
|
||||
'menu-1' => esc_html__( 'Primary', 'xarxaprod' ),
|
||||
'menu-2' => esc_html__( 'Secondary', 'xarxaprod' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -76,7 +76,7 @@ function ofisuport_setup() {
|
|||
//add_theme_support(
|
||||
// 'custom-background',
|
||||
// apply_filters(
|
||||
// 'ofisuport_custom_background_args',
|
||||
// 'xarxaprod_custom_background_args',
|
||||
// array(
|
||||
// 'default-color' => 'ffffff',
|
||||
// 'default-image' => '',
|
||||
|
@ -102,7 +102,7 @@ function ofisuport_setup() {
|
|||
)
|
||||
);
|
||||
}
|
||||
add_action( 'after_setup_theme', 'ofisuport_setup' );
|
||||
add_action( 'after_setup_theme', 'xarxaprod_setup' );
|
||||
|
||||
/**
|
||||
* Set the content width in pixels, based on the theme's design and stylesheet.
|
||||
|
@ -111,10 +111,10 @@ add_action( 'after_setup_theme', 'ofisuport_setup' );
|
|||
*
|
||||
* @global int $content_width
|
||||
*/
|
||||
function ofisuport_content_width() {
|
||||
$GLOBALS['content_width'] = apply_filters( 'ofisuport_content_width', 640 );
|
||||
function xarxaprod_content_width() {
|
||||
$GLOBALS['content_width'] = apply_filters( 'xarxaprod_content_width', 640 );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'ofisuport_content_width', 0 );
|
||||
add_action( 'after_setup_theme', 'xarxaprod_content_width', 0 );
|
||||
|
||||
/**
|
||||
* Register widget area.
|
||||
|
@ -127,20 +127,20 @@ require get_template_directory() . '/inc/widgets-register.php';
|
|||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function ofisuport_scripts() {
|
||||
wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), _S_VERSION );
|
||||
function xarxaprod_scripts() {
|
||||
wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION );
|
||||
//https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
|
||||
//wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false);
|
||||
//wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false);
|
||||
wp_style_add_data( 'ofisuport-style', 'rtl', 'replace' );
|
||||
//wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false);
|
||||
wp_style_add_data( 'xarxaprod-style', 'rtl', 'replace' );
|
||||
|
||||
wp_enqueue_script( 'ofisuport-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );
|
||||
wp_enqueue_script( 'xarxaprod-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );
|
||||
|
||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'ofisuport_scripts' );
|
||||
add_action( 'wp_enqueue_scripts', 'xarxaprod_scripts' );
|
||||
|
||||
/**
|
||||
* Implement the Custom Header feature.
|
||||
|
@ -186,7 +186,7 @@ require get_template_directory() . '/inc/archive-title.php';
|
|||
require get_template_directory() . '/inc/admin-style.php';
|
||||
|
||||
/**
|
||||
* Function to add filter in ofisuport-ajut custom post
|
||||
* Function to add filter in xarxaprod-ajut custom post
|
||||
*/
|
||||
// moved to plugin on 2023 01 05
|
||||
//require get_template_directory() . '/inc/ofisuport-ajut-filter.php';
|
||||
//require get_template_directory() . '/inc/xarxaprod-ajut-filter.php';
|
||||
|
|
12
header.php
12
header.php
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'ofisuport' ); ?></a>
|
||||
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'xarxaprod' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="main">
|
||||
|
@ -46,15 +46,15 @@
|
|||
<p class="site-title"><a href="https://xarxaprod.cat" title="Xarxa d’espais de procucció i creació de Catalunya">Xarxaprod</a></p>
|
||||
<?php
|
||||
endif;
|
||||
$ofisuport_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $ofisuport_description || is_customize_preview() ) :
|
||||
$xarxaprod_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $xarxaprod_description || is_customize_preview() ) :
|
||||
?>
|
||||
<p class="site-description"><?php echo $ofisuport_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
||||
<p class="site-description"><?php echo $xarxaprod_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<nav id="site-navigation-main" class="main-navigation">
|
||||
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false" style="background-image: url('<?php echo esc_url( wp_get_attachment_url( get_theme_mod( 'custom_logo' ) ) ); ?>');" ><?php esc_html_e( 'Menu XarxaProd', 'ofisuport' ); ?></button>
|
||||
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false" style="background-image: url('<?php echo esc_url( wp_get_attachment_url( get_theme_mod( 'custom_logo' ) ) ); ?>');" ><?php esc_html_e( 'Menu XarxaProd', 'xarxaprod' ); ?></button>
|
||||
<section class="main-navigation-content">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
|
||||
// Update CSS within in Admin
|
||||
function ofisuport_admin_style() {
|
||||
function xarxaprod_admin_style() {
|
||||
wp_enqueue_style( 'admin-styles', get_stylesheet_directory_uri() . '/assets/css/adminstyles.css' );
|
||||
// wp_enqueue_style( 'ofisuport-theme-styles', get_template_directory_uri().'/style.css');
|
||||
// wp_enqueue_style( 'xarxaprod-theme-styles', get_template_directory_uri().'/style.css');
|
||||
}
|
||||
add_action('admin_enqueue_scripts', 'ofisuport_admin_style');
|
||||
add_action('admin_enqueue_scripts', 'xarxaprod_admin_style');
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
|
||||
function ofisuport_archive_title( $title ) {
|
||||
function xarxaprod_archive_title( $title ) {
|
||||
if ( is_category() ) {
|
||||
$title = single_cat_title( '', false );
|
||||
} elseif ( is_tag() ) {
|
||||
|
@ -23,4 +23,4 @@ function ofisuport_archive_title( $title ) {
|
|||
return $title;
|
||||
}
|
||||
|
||||
add_filter( 'get_the_archive_title', 'ofisuport_archive_title' );
|
||||
add_filter( 'get_the_archive_title', 'xarxaprod_archive_title' );
|
||||
|
|
|
@ -8,39 +8,39 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set up the WordPress core custom header feature.
|
||||
*
|
||||
* @uses ofisuport_header_style()
|
||||
* @uses xarxaprod_header_style()
|
||||
*/
|
||||
function ofisuport_custom_header_setup() {
|
||||
function xarxaprod_custom_header_setup() {
|
||||
add_theme_support(
|
||||
'custom-header',
|
||||
apply_filters(
|
||||
'ofisuport_custom_header_args',
|
||||
'xarxaprod_custom_header_args',
|
||||
array(
|
||||
'default-image' => '',
|
||||
'default-text-color' => '000000',
|
||||
'width' => 1000,
|
||||
'height' => 250,
|
||||
'flex-height' => true,
|
||||
'wp-head-callback' => 'ofisuport_header_style',
|
||||
'wp-head-callback' => 'xarxaprod_header_style',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'after_setup_theme', 'ofisuport_custom_header_setup' );
|
||||
add_action( 'after_setup_theme', 'xarxaprod_custom_header_setup' );
|
||||
|
||||
if ( ! function_exists( 'ofisuport_header_style' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_header_style' ) ) :
|
||||
/**
|
||||
* Styles the header image and text displayed on the blog.
|
||||
*
|
||||
* @see ofisuport_custom_header_setup().
|
||||
* @see xarxaprod_custom_header_setup().
|
||||
*/
|
||||
function ofisuport_header_style() {
|
||||
function xarxaprod_header_style() {
|
||||
$header_text_color = get_header_textcolor();
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
/**
|
||||
* Oficina de Suport theme Theme Customizer
|
||||
* Xarxaprod theme Theme Customizer
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -10,7 +10,7 @@
|
|||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function ofisuport_customize_register( $wp_customize ) {
|
||||
function xarxaprod_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
|
||||
|
@ -20,26 +20,26 @@ function ofisuport_customize_register( $wp_customize ) {
|
|||
'blogname',
|
||||
array(
|
||||
'selector' => '.site-title a',
|
||||
'render_callback' => 'ofisuport_customize_partial_blogname',
|
||||
'render_callback' => 'xarxaprod_customize_partial_blogname',
|
||||
)
|
||||
);
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'blogdescription',
|
||||
array(
|
||||
'selector' => '.site-description',
|
||||
'render_callback' => 'ofisuport_customize_partial_blogdescription',
|
||||
'render_callback' => 'xarxaprod_customize_partial_blogdescription',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'customize_register', 'ofisuport_customize_register' );
|
||||
add_action( 'customize_register', 'xarxaprod_customize_register' );
|
||||
|
||||
/**
|
||||
* Render the site title for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function ofisuport_customize_partial_blogname() {
|
||||
function xarxaprod_customize_partial_blogname() {
|
||||
bloginfo( 'name' );
|
||||
}
|
||||
|
||||
|
@ -48,14 +48,14 @@ function ofisuport_customize_partial_blogname() {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function ofisuport_customize_partial_blogdescription() {
|
||||
function xarxaprod_customize_partial_blogdescription() {
|
||||
bloginfo( 'description' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function ofisuport_customize_preview_js() {
|
||||
wp_enqueue_script( 'ofisuport-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true );
|
||||
function xarxaprod_customize_preview_js() {
|
||||
wp_enqueue_script( 'xarxaprod-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'ofisuport_customize_preview_js' );
|
||||
add_action( 'customize_preview_init', 'xarxaprod_customize_preview_js' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://jetpack.com/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -14,13 +14,13 @@
|
|||
* See: https://jetpack.com/support/responsive-videos/
|
||||
* See: https://jetpack.com/support/content-options/
|
||||
*/
|
||||
function ofisuport_jetpack_setup() {
|
||||
function xarxaprod_jetpack_setup() {
|
||||
// Add theme support for Infinite Scroll.
|
||||
add_theme_support(
|
||||
'infinite-scroll',
|
||||
array(
|
||||
'container' => 'main',
|
||||
'render' => 'ofisuport_infinite_scroll_render',
|
||||
'render' => 'xarxaprod_infinite_scroll_render',
|
||||
'footer' => 'page',
|
||||
)
|
||||
);
|
||||
|
@ -33,7 +33,7 @@ function ofisuport_jetpack_setup() {
|
|||
'jetpack-content-options',
|
||||
array(
|
||||
'post-details' => array(
|
||||
'stylesheet' => 'ofisuport-style',
|
||||
'stylesheet' => 'xarxaprod-style',
|
||||
'date' => '.posted-on',
|
||||
'categories' => '.cat-links',
|
||||
'tags' => '.tags-links',
|
||||
|
@ -48,13 +48,13 @@ function ofisuport_jetpack_setup() {
|
|||
)
|
||||
);
|
||||
}
|
||||
add_action( 'after_setup_theme', 'ofisuport_jetpack_setup' );
|
||||
add_action( 'after_setup_theme', 'xarxaprod_jetpack_setup' );
|
||||
|
||||
if ( ! function_exists( 'ofisuport_infinite_scroll_render' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_infinite_scroll_render' ) ) :
|
||||
/**
|
||||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
function ofisuport_infinite_scroll_render() {
|
||||
function xarxaprod_infinite_scroll_render() {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
if ( is_search() ) :
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
// https://codex.wordpress.org/Customizing_the_Login_Form#Change_the_Login_Logo
|
||||
function ofisuport_login_logo() {
|
||||
function xarxaprod_login_logo() {
|
||||
if ( has_custom_logo() ) :
|
||||
|
||||
$image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
|
||||
|
@ -19,21 +19,21 @@ function ofisuport_login_logo() {
|
|||
<?php
|
||||
endif;
|
||||
}
|
||||
add_action( 'login_enqueue_scripts', 'ofisuport_login_logo' );
|
||||
add_action( 'login_enqueue_scripts', 'xarxaprod_login_logo' );
|
||||
|
||||
function ofisuport_login_logo_url() {
|
||||
function xarxaprod_login_logo_url() {
|
||||
return home_url();
|
||||
}
|
||||
add_filter( 'login_headerurl', 'ofisuport_login_logo_url' );
|
||||
add_filter( 'login_headerurl', 'xarxaprod_login_logo_url' );
|
||||
|
||||
function ofisuport_login_logo_url_title() {
|
||||
function xarxaprod_login_logo_url_title() {
|
||||
return 'Your Site Name and Info';
|
||||
}
|
||||
add_filter( 'login_headertext', 'ofisuport_login_logo_url_title' );
|
||||
add_filter( 'login_headertext', 'xarxaprod_login_logo_url_title' );
|
||||
|
||||
// https://codex.wordpress.org/Customizing_the_Login_Form#Styling_Your_Login
|
||||
function ofisuport_login_stylesheet() {
|
||||
function xarxaprod_login_stylesheet() {
|
||||
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/assets/css/style-login.css' );
|
||||
// wp_enqueue_script( 'custom-login', get_stylesheet_directory_uri() . '/assets/css/style-login.js' );
|
||||
}
|
||||
add_action( 'login_enqueue_scripts', 'ofisuport_login_stylesheet' );
|
||||
add_action( 'login_enqueue_scripts', 'xarxaprod_login_stylesheet' );
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* Functions which enhance the theme by hooking into WordPress
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -11,7 +11,7 @@
|
|||
* @param array $classes Classes for the body element.
|
||||
* @return array
|
||||
*/
|
||||
function ofisuport_body_classes( $classes ) {
|
||||
function xarxaprod_body_classes( $classes ) {
|
||||
// Adds a class of hfeed to non-singular pages.
|
||||
if ( ! is_singular() ) {
|
||||
$classes[] = 'hfeed';
|
||||
|
@ -24,41 +24,41 @@ function ofisuport_body_classes( $classes ) {
|
|||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', 'ofisuport_body_classes' );
|
||||
add_filter( 'body_class', 'xarxaprod_body_classes' );
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for single posts, pages, or attachments.
|
||||
*/
|
||||
function ofisuport_pingback_header() {
|
||||
function xarxaprod_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', 'ofisuport_pingback_header' );
|
||||
add_action( 'wp_head', 'xarxaprod_pingback_header' );
|
||||
|
||||
|
||||
/**
|
||||
* Detect if the Oficina de Suport "ofisuport" plugin is active
|
||||
* Detect if the "xarxaprod" plugin is active
|
||||
*/
|
||||
|
||||
function ofisuport_plugin_active() {
|
||||
function xarxaprod_plugin_active() {
|
||||
// Detect plugin. For use on Front End only.
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||||
// check for plugin using plugin name
|
||||
if ( is_plugin_active( 'oficinasuport-wp-plugin/ofisuport-wp-plugin.php' ) ) {
|
||||
if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) {
|
||||
//plugin is activated do
|
||||
}
|
||||
//do stuff here
|
||||
} //closing if is_plugin_active
|
||||
|
||||
//add_action( 'wp_head', 'ofisuport_plugin_active' );
|
||||
//add_action( 'wp_head', 'xarxaprod_plugin_active' );
|
||||
|
||||
|
||||
/**
|
||||
* Echo the post type slug
|
||||
*/
|
||||
function ofisuport_class_posttype (){
|
||||
if( is_post_type_archive( array('ofisuport-ajut') )) {
|
||||
function xarxaprod_class_posttype (){
|
||||
if( is_post_type_archive( array('xarxaprod-ajut') )) {
|
||||
echo 'archive-custom-post-type-';
|
||||
printf(get_post_type_object( get_post_type() )->rewrite['slug'] );
|
||||
}
|
||||
|
@ -67,11 +67,11 @@ function ofisuport_class_posttype (){
|
|||
* Displays the FAQS subcategories from category id=1
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'ofisuport_display_faqs_labels' ) ) :
|
||||
function ofisuport_display_faqs_labels() {
|
||||
if ( ! function_exists( 'xarxaprod_display_faqs_labels' ) ) :
|
||||
function xarxaprod_display_faqs_labels() {
|
||||
?>
|
||||
<nav id="tipus-faqs" class="ofisuport-faqs-types">
|
||||
<ul class="ofisuport-label">
|
||||
<nav id="tipus-faqs" class="xarxaprod-faqs-types">
|
||||
<ul class="xarxaprod-label">
|
||||
<?php
|
||||
// https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/
|
||||
wp_list_categories(
|
||||
|
@ -89,19 +89,19 @@ if ( ! function_exists( 'ofisuport_display_faqs_labels' ) ) :
|
|||
</nav>
|
||||
<?php
|
||||
}
|
||||
endif; //end ofisuport_display_faqs_labels
|
||||
endif; //end xarxaprod_display_faqs_labels
|
||||
|
||||
/**
|
||||
* Displays categories for each FAQ
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'ofisuport_display_each_faq_categories' ) ) :
|
||||
function ofisuport_display_each_faq_categories() {
|
||||
if ( ! function_exists( 'xarxaprod_display_each_faq_categories' ) ) :
|
||||
function xarxaprod_display_each_faq_categories() {
|
||||
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
echo ' <nav id="tipus-faqs" class="ofisuport-faqs-types">';
|
||||
echo ' <ul class="ofisuport-label">';
|
||||
echo ' <nav id="tipus-faqs" class="xarxaprod-faqs-types">';
|
||||
echo ' <ul class="xarxaprod-label">';
|
||||
foreach ( $categories as $category ) {
|
||||
if ( ! ($category->cat_ID == '1') ) { //cat_ID '1' is defined as default FAQ
|
||||
echo '<li class="cat-item"><a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a></li>';
|
||||
|
@ -111,26 +111,26 @@ if ( ! function_exists( 'ofisuport_display_each_faq_categories' ) ) :
|
|||
echo ' </nav>';
|
||||
}
|
||||
}
|
||||
endif; //end ofisuport_display_each_faq_categories
|
||||
endif; //end xarxaprod_display_each_faq_categories
|
||||
|
||||
/**
|
||||
* Display search form for FAQs
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'ofisuport_display_faq_search' ) ) :
|
||||
function ofisuport_display_faqs_search() {
|
||||
if ( ! function_exists( 'xarxaprod_display_faq_search' ) ) :
|
||||
function xarxaprod_display_faqs_search() {
|
||||
// search form for category
|
||||
// https://developer.wordpress.org/reference/functions/get_search_form/#comment-369
|
||||
// https://wordpress.stackexchange.com/questions/313037/restrict-a-search-to-a-custom-post-type
|
||||
?>
|
||||
<form class="ofisuport-search-form" role="search" method="get" action="/">
|
||||
<form class="xarxaprod-search-form" role="search" method="get" action="/">
|
||||
<label class="screen-reader-text" for="search">Search in ajuts</label>
|
||||
<input type="search" id="search" class="search-field" placeholder="cerca faqs..." value="<?php the_search_query();?>" name="s" />
|
||||
<input type="submit" id="searchsubmit" class="search-submit button button-search" value="cerca">
|
||||
<span class="ofisuport-search-submit ofisuport-icon-search"></span>
|
||||
<span class="xarxaprod-search-submit xarxaprod-icon-search"></span>
|
||||
<input type="hidden" value="posts" name="post_type" id="post_type" />
|
||||
<input type="hidden" value="faq" name="category_name" id="category_name" />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
endif; //end ofisuport_display_each_faq_categories
|
||||
endif; //end xarxaprod_display_each_faq_categories
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
*
|
||||
* Eventually, some of the functionality here could be replaced by core features.
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'ofisuport_posted_on' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_posted_on' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current post-date/time.
|
||||
*/
|
||||
function ofisuport_posted_on() {
|
||||
function xarxaprod_posted_on() {
|
||||
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
|
||||
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
|
||||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
|
||||
|
@ -27,7 +27,7 @@ if ( ! function_exists( 'ofisuport_posted_on' ) ) :
|
|||
|
||||
$posted_on = sprintf(
|
||||
/* translators: %s: post date. */
|
||||
esc_html_x( 'Posted on %s', 'post date', 'ofisuport' ),
|
||||
esc_html_x( 'Posted on %s', 'post date', 'xarxaprod' ),
|
||||
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
|
||||
);
|
||||
|
||||
|
@ -36,14 +36,14 @@ if ( ! function_exists( 'ofisuport_posted_on' ) ) :
|
|||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'ofisuport_posted_by' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_posted_by' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current author.
|
||||
*/
|
||||
function ofisuport_posted_by() {
|
||||
function xarxaprod_posted_by() {
|
||||
$byline = sprintf(
|
||||
/* translators: %s: post author. */
|
||||
esc_html_x( 'by %s', 'post author', 'ofisuport' ),
|
||||
esc_html_x( 'by %s', 'post author', 'xarxaprod' ),
|
||||
'<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>'
|
||||
);
|
||||
|
||||
|
@ -52,25 +52,25 @@ if ( ! function_exists( 'ofisuport_posted_by' ) ) :
|
|||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_entry_footer' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the categories, tags and comments.
|
||||
*/
|
||||
function ofisuport_entry_footer() {
|
||||
function xarxaprod_entry_footer() {
|
||||
// Hide category and tag text for pages.
|
||||
if ( 'post' === get_post_type() ) {
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$categories_list = get_the_category_list( esc_html__( ', ', 'ofisuport' ) );
|
||||
$categories_list = get_the_category_list( esc_html__( ', ', 'xarxaprod' ) );
|
||||
if ( $categories_list ) {
|
||||
/* translators: 1: list of categories. */
|
||||
printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'ofisuport' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'xarxaprod' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'ofisuport' ) );
|
||||
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'xarxaprod' ) );
|
||||
if ( $tags_list ) {
|
||||
/* translators: 1: list of tags. */
|
||||
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'ofisuport' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'xarxaprod' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: post title */
|
||||
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'ofisuport' ),
|
||||
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
@ -97,7 +97,7 @@ if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'ofisuport' ),
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
@ -112,14 +112,14 @@ if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
|
|||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'ofisuport_post_thumbnail' ) ) :
|
||||
if ( ! function_exists( 'xarxaprod_post_thumbnail' ) ) :
|
||||
/**
|
||||
* Displays an optional post thumbnail.
|
||||
*
|
||||
* Wraps the post thumbnail in an anchor element on index views, or a div
|
||||
* element when on single views.
|
||||
*/
|
||||
function ofisuport_post_thumbnail() {
|
||||
function xarxaprod_post_thumbnail() {
|
||||
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registerin g-a-sidebar
|
||||
*/
|
||||
function ofisuport_widgets_init() {
|
||||
function xarxaprod_widgets_init() {
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => esc_html__( 'Front Page - principal', 'ofisuport' ),
|
||||
'name' => esc_html__( 'Front Page - principal', 'xarxaprod' ),
|
||||
'id' => 'front-page-widgets',
|
||||
'description' => esc_html__( 'Add widgets here.', 'ofisuport' ),
|
||||
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
|
@ -18,9 +18,9 @@
|
|||
);
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'ofisuport' ),
|
||||
'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'xarxaprod' ),
|
||||
'id' => 'sidebar-funds',
|
||||
'description' => esc_html__( 'Add widgets here.', 'ofisuport' ),
|
||||
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
|
@ -29,9 +29,9 @@
|
|||
);
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => esc_html__( 'Footer - Peu', 'ofisuport' ),
|
||||
'name' => esc_html__( 'Footer - Peu', 'xarxaprod' ),
|
||||
'id' => 'footer-widgets',
|
||||
'description' => esc_html__( 'Add widgets here.', 'ofisuport' ),
|
||||
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
|
@ -39,5 +39,5 @@
|
|||
)
|
||||
);
|
||||
}
|
||||
add_action( 'widgets_init', 'ofisuport_widgets_init' );
|
||||
add_action( 'widgets_init', 'xarxaprod_widgets_init' );
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
# This file is distributed under the GNU General Public License v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Oficina de Suport de Xarxaprod 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: https://git.hangar.org/xarxaprod/oficinasuport-wp-theme\n"
|
||||
"Project-Id-Version: Xarxaprod 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: https://git.hangar.org/xarxaprod/xarxaprod-wp-theme\n"
|
||||
"Last-Translator: Jorge - vitrubio.net <jorge@vitrubio.net>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -15,15 +15,15 @@ msgstr ""
|
|||
"X-Domain: ofsupxxp\n"
|
||||
|
||||
#. Theme Name of the theme
|
||||
msgid "Oficina de Suport de Xarxaprod"
|
||||
msgid "Xarxaprod"
|
||||
msgstr ""
|
||||
|
||||
#. Theme URI of the theme
|
||||
msgid "https://git.hangar.org/xarxaprod/oficinasuport-wp-theme"
|
||||
msgid "https://git.hangar.org/xarxaprod/xarxaprod-wp-theme"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the theme
|
||||
msgid "Theme for the Oficina de Suport de Xarxaprod.cat"
|
||||
msgid "Theme for the Xarxaprod.cat"
|
||||
msgstr ""
|
||||
|
||||
#. Author of the theme
|
|
@ -42,6 +42,6 @@
|
|||
"compile:rtl": "rtlcss style.css style-rtl.css",
|
||||
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
|
||||
"lint:js": "wp-scripts lint-js 'js/*.js'",
|
||||
"bundle": "dir-archiver --src . --dest ../OficinaDeSuport-theme.zip --exclude .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist sass style.css.map yarn.lock"
|
||||
"bundle": "dir-archiver --src . --dest ../Xarxaprod-theme.zip --exclude .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist sass style.css.map yarn.lock"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
|
@ -41,13 +41,13 @@ get_header();
|
|||
|
||||
endif;
|
||||
?>
|
||||
<aside id="ofisuport-faqs-nav" class="ofisuport-faqs-aside">
|
||||
<aside id="xarxaprod-faqs-nav" class="xarxaprod-faqs-aside">
|
||||
<?php //if( in_category('faq') ) : ?>
|
||||
<?php ofisuport_display_faqs_labels(); ?>
|
||||
<?php ofisuport_display_faqs_search(); ?>
|
||||
<?php xarxaprod_display_faqs_labels(); ?>
|
||||
<?php xarxaprod_display_faqs_search(); ?>
|
||||
<?php //endif; //end if is_category faq ?>
|
||||
</aside>
|
||||
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
<?php
|
||||
// https://developer.wordpress.org/reference/functions/get_posts/
|
||||
// https://www.advancedcustomfields.com/resources/true-false/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
|
@ -35,28 +35,28 @@ get_header();
|
|||
|
||||
endif;
|
||||
?>
|
||||
<section id="filteredfunds" class="ofisuport-filtered-funds ofisuport-ajuts-filtrats">
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
|
||||
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-fitre-ajuts">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'oficinasuport-wp-plugin/ofisuport-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-fitre-ajuts">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- https://stackoverflow.com/a/48314274 -->
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$('.fund-filter').ready(function() {
|
||||
$('.oficinasuport-titol-opcions').click(function() {
|
||||
$('.xarxaprod-titol-opcions').click(function() {
|
||||
$(this).siblings(".filter").toggle();
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
|
||||
<?php } //end if is_plugin_active ?>
|
||||
</aside>
|
||||
|
||||
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
|
||||
<?php
|
||||
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830
|
||||
|
@ -65,7 +65,7 @@ get_header();
|
|||
|
||||
$the_query_ajut = new WP_Query(
|
||||
array(
|
||||
'post_type' => 'ofisuport-ajut',
|
||||
'post_type' => 'xarxaprod-ajut',
|
||||
'posts_per_page' => '-1'
|
||||
)
|
||||
);
|
||||
|
|
2
page.php
2
page.php
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
Multiple valid text domains can be provided as a comma-delimited list. -->
|
||||
<rule ref="WordPress.WP.I18n">
|
||||
<properties>
|
||||
<property name="text_domain" type="array" value="ofisuport"/>
|
||||
<property name="text_domain" type="array" value="xarxaprod"/>
|
||||
</properties>
|
||||
</rule>
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
|||
Multiple valid prefixes can be provided as a comma-delimited list. -->
|
||||
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
|
||||
<properties>
|
||||
<property name="prefixes" type="array" value="ofisuport" />
|
||||
<property name="prefixes" type="array" value="xarxaprod" />
|
||||
</properties>
|
||||
</rule>
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ input[type="submit"],
|
|||
}
|
||||
}
|
||||
|
||||
.ofisuport-search-form {
|
||||
.xarxaprod-search-form {
|
||||
display: flex;
|
||||
margin: 0.5rem 0;
|
||||
.search-field {
|
||||
|
@ -117,7 +117,7 @@ input[type="submit"],
|
|||
}
|
||||
|
||||
|
||||
.ofisuport-icon-search:before {
|
||||
.xarxaprod-icon-search:before {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 0.2rem 0 0 -1.5rem;
|
||||
|
|
|
@ -35,7 +35,7 @@ a {
|
|||
}
|
||||
}
|
||||
//.home-featured,.archive-posts {
|
||||
// .category-faq,.type-ofisuport-ajut {
|
||||
// .category-faq,.type-xarxaprod-ajut {
|
||||
// position: relative;
|
||||
// padding-bottom: 4rem;
|
||||
// .entry-title {
|
||||
|
|
|
@ -28,7 +28,7 @@ dd {
|
|||
}
|
||||
|
||||
article:not(.type-post){
|
||||
.ofisuport-label {
|
||||
.xarxaprod-label {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
|
@ -73,7 +73,7 @@ article:not(.type-post){
|
|||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
.ofisuport-faqs-types {
|
||||
.xarxaprod-faqs-types {
|
||||
ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -98,9 +98,9 @@ article:not(.type-post){
|
|||
}
|
||||
}
|
||||
}
|
||||
.single-ofisuport-ajut {
|
||||
.single-xarxaprod-ajut {
|
||||
article:not(.type-post) {
|
||||
.ofisuport-label {
|
||||
.xarxaprod-label {
|
||||
li {
|
||||
font-size: $font__size-body*1.1;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* */
|
||||
.ofisuport-card-each {
|
||||
.xarxaprod-card-each {
|
||||
.entry-title,h6 {
|
||||
border-bottom: 1px solid $color__black;
|
||||
margin: 0;
|
||||
|
@ -43,13 +43,13 @@
|
|||
}
|
||||
}
|
||||
/* used in
|
||||
* ./template-parts/content-ofisuport-ajut.php
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* */
|
||||
.ofisuport-fund-info-fields,
|
||||
.ofisuport-fund-info-contact-fields {
|
||||
.xarxaprod-fund-info-fields,
|
||||
.xarxaprod-fund-info-contact-fields {
|
||||
display: grid;
|
||||
.ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-field {
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid $color__black;
|
||||
}
|
||||
|
@ -64,19 +64,19 @@
|
|||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
.ofisuport-fund-info-contact-fields {
|
||||
.ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-contact-fields {
|
||||
.xarxaprod-fund-info-field {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.ofisuport-fund-info-fields {
|
||||
.ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-fields {
|
||||
.xarxaprod-fund-info-field {
|
||||
margin: 1rem 0 0.5rem 0;
|
||||
}
|
||||
}
|
||||
.ofisuport-funder-name,
|
||||
.ofisuport-fund-contact-name,
|
||||
.ofisuport-fund-web {
|
||||
.xarxaprod-funder-name,
|
||||
.xarxaprod-fund-contact-name,
|
||||
.xarxaprod-fund-web {
|
||||
display: flex;
|
||||
margin:0;
|
||||
padding: 0;
|
||||
|
@ -91,7 +91,7 @@
|
|||
}
|
||||
/* filters form custom fields
|
||||
*/
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
display:grid;
|
||||
grid: 1fr;
|
||||
.os_fund_target,
|
||||
|
@ -102,11 +102,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.ofisuport-filters {
|
||||
.xarxaprod-filters {
|
||||
section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
.oficinasuport-titol-opcions {
|
||||
.xarxaprod-titol-opcions {
|
||||
}
|
||||
}
|
||||
.archive-posts {
|
||||
|
@ -114,7 +114,7 @@
|
|||
grid-template-columns: repeat(1 , minmax(0,1fr));
|
||||
}
|
||||
|
||||
.oficinasuport-titol-opcions {
|
||||
.xarxaprod-titol-opcions {
|
||||
// applied in forms and contactforms
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
|
@ -158,7 +158,7 @@
|
|||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.ofisuport-filters {
|
||||
.xarxaprod-filters {
|
||||
section {
|
||||
display: block;
|
||||
h5 {
|
||||
|
@ -180,13 +180,13 @@
|
|||
}
|
||||
@media screen and (min-width: 48em) {
|
||||
//only bigger than 48em
|
||||
.ofisuport-filters {
|
||||
.xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
}
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 2fr;
|
||||
}
|
||||
.archive-posts {
|
||||
|
@ -196,7 +196,7 @@
|
|||
}
|
||||
@media screen and (min-width: 80em) {
|
||||
//only bigger than 80rem
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
}
|
||||
.archive-posts {
|
||||
|
|
|
@ -53,8 +53,8 @@
|
|||
|
||||
.main-navigation {
|
||||
a[href^="http://localhost"],
|
||||
a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
a[href^="https://oficinasuport.xarxaprod.cat"]
|
||||
a[href^="http://xarxaprod.cat"],
|
||||
a[href^="https://xarxaprod.cat"]
|
||||
{
|
||||
font-family: $font__bold;
|
||||
border-left: 1px solid $color__black;
|
||||
|
@ -255,15 +255,15 @@
|
|||
}
|
||||
}
|
||||
a[href^="http://localhost"],
|
||||
a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
a[href^="https://oficinasuport.xarxaprod.cat"]
|
||||
a[href^="http://xarxaprod.cat"],
|
||||
a[href^="https://xarxaprod.cat"]
|
||||
{
|
||||
font-family: $font__bold;
|
||||
border-left:none;
|
||||
}
|
||||
a[href^="http://localhost"]::after,
|
||||
a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
a[href^="http://xarxaprod.cat"]::after,
|
||||
a[href^="https://xarxaprod.cat"]::after,
|
||||
.current-menu-item a::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
|
@ -358,8 +358,8 @@
|
|||
.main-navigation {
|
||||
padding-bottom: 0;
|
||||
a[href^="http://localhost"]::after,
|
||||
a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
a[href^="http://xarxaprod.cat"]::after,
|
||||
a[href^="https://xarxaprod.cat"]::after,
|
||||
.current-menu-item a::after {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
.home-featured {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.ofisuport-destacats,.ofisuport-featured,.archive-posts {
|
||||
.xarxaprod-destacats,.xarxaprod-featured,.archive-posts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(1 , 1fr);
|
||||
gap: $grid__gap;
|
||||
|
@ -110,15 +110,15 @@
|
|||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
.ofisuport-destacats,.ofisuport-featured,.archive-posts {
|
||||
.xarxaprod-destacats,.xarxaprod-featured,.archive-posts {
|
||||
grid-template-columns: repeat(4 , 1fr);
|
||||
}
|
||||
.ofisuport-faqs-aside {
|
||||
.xarxaprod-faqs-aside {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.ofisuport-search-form {
|
||||
.xarxaprod-search-form {
|
||||
&:hover,&:active,&:focus,&:target {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/*
|
||||
|
||||
Theme Name: Espai Assessorament - XarxaProd.cat
|
||||
Theme Name: XarxaProd.cat 2024
|
||||
Theme URI: https://git.hangar.org/xarxaprod/
|
||||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.0.7
|
||||
Tested up to: 6.2
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Text Domain: ofisuport
|
||||
Text Domain: xarxaprod
|
||||
Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned.
|
||||
|
||||
Epai d'Assessorament, projecte oficina de suport de la XarxaProd.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
The Xarxaprod.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
|
|
30
search.php
30
search.php
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
@ -18,42 +18,42 @@ get_header();
|
|||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
// check if is ofisuport-ajut
|
||||
if ( get_post_type( get_the_ID() ) == 'ofisuport-ajut'){ ?>
|
||||
<section id="filteredfunds" class="ofisuport-filtered-funds ofisuport-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="ofisuport-filter-funds ofisuport-fitre-ajuts">
|
||||
// check if is xarxaprod-ajut
|
||||
if ( get_post_type( get_the_ID() ) == 'xarxaprod-ajut'){ ?>
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-fitre-ajuts">
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- https://stackoverflow.com/a/48314274 -->
|
||||
(function($) {
|
||||
$('.fund-filter').ready(function() {
|
||||
$('.oficinasuport-titol-opcions').click(function() {
|
||||
$('.xarxaprod-titol-opcions').click(function() {
|
||||
$(this).siblings(".filter").toggle();
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
|
||||
</aside>
|
||||
<?php } elseif ( in_category ( 'faq' ) ) { ?>
|
||||
<section id="filteredsearch" class="ofisuport-searched-query ofisuport-search-faqs">
|
||||
<aside id="ofisuport-faqs-nav" class="ofisuport-faqs-aside">
|
||||
<section id="filteredsearch" class="xarxaprod-searched-query xarxaprod-search-faqs">
|
||||
<aside id="xarxaprod-faqs-nav" class="xarxaprod-faqs-aside">
|
||||
<?php //if( in_category('faq') ) : ?>
|
||||
<?php ofisuport_display_faqs_labels(); ?>
|
||||
<?php ofisuport_display_faqs_search(); ?>
|
||||
<?php xarxaprod_display_faqs_labels(); ?>
|
||||
<?php xarxaprod_display_faqs_search(); ?>
|
||||
<?php //endif; //end if is_category faq ?>
|
||||
</aside>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
<section id="filteredsearch" class="ofisuport-searched-query">
|
||||
<section id="filteredsearch" class="xarxaprod-searched-query">
|
||||
<?php
|
||||
/* translators: %s: search query. */
|
||||
printf( esc_html__( 'Search Results for: %s', 'ofisuport' ), '<br/><span class="h5 search-query">' . get_search_query() . '</span>' );
|
||||
printf( esc_html__( 'Search Results for: %s', 'xarxaprod' ), '<br/><span class="h5 search-query">' . get_search_query() . '</span>' );
|
||||
?>
|
||||
<?php }; // end if is ofisuport-ajut ?>
|
||||
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
|
||||
<?php }; // end if is xarxaprod-ajut ?>
|
||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
if ( ! is_active_sidebar( 'sidebar-funds' ) ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
/*!
|
||||
Theme Name: Oficina de Suport theme
|
||||
Theme Name: Xarxaprod theme
|
||||
Theme URI: https://underscores.me/
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Hi. I'm a starter theme called <code>Oficina de Suport theme</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
||||
Description: Hi. I'm a starter theme called <code>Xarxaprod theme</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
||||
Version: 1.0.0
|
||||
Tested up to: 5.4
|
||||
Requires PHP: 5.6
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Text Domain: Oficina de Suport theme
|
||||
Text Domain: Xarxaprod theme
|
||||
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned.
|
||||
|
||||
Oficina de Suport theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
Xarxaprod theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
|
|
148
style.css
148
style.css
|
@ -1,22 +1,22 @@
|
|||
/*
|
||||
|
||||
Theme Name: Espai Assessorament - XarxaProd.cat
|
||||
Theme Name: XarxaProd.cat 2024
|
||||
Theme URI: https://git.hangar.org/xarxaprod/
|
||||
Author: Hangar.org Tech Lab - hangar.org
|
||||
Author URI: https://hangar.org
|
||||
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Description: theme for the <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
|
||||
Version: 1.0.7
|
||||
Tested up to: 6.2
|
||||
Requires PHP: 7.4
|
||||
License: GNU General Public License v3 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Text Domain: ofisuport
|
||||
Text Domain: xarxaprod
|
||||
Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned.
|
||||
|
||||
Epai d'Assessorament, projecte oficina de suport de la XarxaProd.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
The Xarxaprod.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
|
@ -762,13 +762,13 @@ dd {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
article:not(.type-post) .ofisuport-label {
|
||||
article:not(.type-post) .xarxaprod-label {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
article:not(.type-post) .ofisuport-label li {
|
||||
article:not(.type-post) .xarxaprod-label li {
|
||||
display: inline-block;
|
||||
margin: 0.1em 0;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
|
@ -815,11 +815,11 @@ article:not(.type-post) .item-os_fund_apply_text {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-types ul {
|
||||
.xarxaprod-faqs-types ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-types .cat-item {
|
||||
.xarxaprod-faqs-types .cat-item {
|
||||
display: inline-block;
|
||||
margin: 0.1em 0.5em 0.1em 0;
|
||||
padding: 0.2em 0.2em 0 0.2em;
|
||||
|
@ -830,25 +830,25 @@ article:not(.type-post) .item-os_fund_apply_text {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-types .current-cat {
|
||||
.xarxaprod-faqs-types .current-cat {
|
||||
background-color: #ff8d76;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-types a {
|
||||
.xarxaprod-faqs-types a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-types a:visited,
|
||||
.ofisuport-faqs-types a:hover {
|
||||
.xarxaprod-faqs-types a:visited,
|
||||
.xarxaprod-faqs-types a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.single-ofisuport-ajut article:not(.type-post) .ofisuport-label li {
|
||||
.single-xarxaprod-ajut article:not(.type-post) .xarxaprod-label li {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.single-ofisuport-ajut article:not(.type-post) .item-os_fund_apply_text {
|
||||
.single-xarxaprod-ajut article:not(.type-post) .item-os_fund_apply_text {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
@ -1032,16 +1032,16 @@ input[type="submit"]:focus,
|
|||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.ofisuport-search-form {
|
||||
.xarxaprod-search-form {
|
||||
display: flex;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.ofisuport-search-form .search-field {
|
||||
.xarxaprod-search-form .search-field {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.ofisuport-search-form .search-submit {
|
||||
.xarxaprod-search-form .search-submit {
|
||||
z-index: 10;
|
||||
margin: 0;
|
||||
border: none;
|
||||
|
@ -1052,7 +1052,7 @@ input[type="submit"]:focus,
|
|||
font-size: 0;
|
||||
}
|
||||
|
||||
.ofisuport-icon-search::before {
|
||||
.xarxaprod-icon-search::before {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 0.2rem 0 0 -1.5rem;
|
||||
|
@ -1178,8 +1178,8 @@ textarea {
|
|||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.ofisuport-destacats,
|
||||
.ofisuport-featured,
|
||||
.xarxaprod-destacats,
|
||||
.xarxaprod-featured,
|
||||
.archive-posts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
|
@ -1221,23 +1221,23 @@ textarea {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.ofisuport-destacats,
|
||||
.ofisuport-featured,
|
||||
.xarxaprod-destacats,
|
||||
.xarxaprod-featured,
|
||||
.archive-posts {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
|
||||
.ofisuport-faqs-aside {
|
||||
.xarxaprod-faqs-aside {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.ofisuport-faqs-aside .ofisuport-search-form:hover,
|
||||
.ofisuport-faqs-aside .ofisuport-search-form:active,
|
||||
.ofisuport-faqs-aside .ofisuport-search-form:focus,
|
||||
.ofisuport-faqs-aside .ofisuport-search-form:target {
|
||||
.xarxaprod-faqs-aside .xarxaprod-search-form:hover,
|
||||
.xarxaprod-faqs-aside .xarxaprod-search-form:active,
|
||||
.xarxaprod-faqs-aside .xarxaprod-search-form:focus,
|
||||
.xarxaprod-faqs-aside .xarxaprod-search-form:target {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
@ -1323,8 +1323,8 @@ textarea {
|
|||
border-left: 1px solid #000;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"],
|
||||
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
|
||||
.main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
@ -1543,14 +1543,14 @@ textarea {
|
|||
margin: 0.5rem 0;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"],
|
||||
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {
|
||||
.main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: none;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"]::after,
|
||||
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
.main-navigation .current-menu-item a::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
|
@ -1649,8 +1649,8 @@ textarea {
|
|||
padding-bottom: 0;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"]::after,
|
||||
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
.main-navigation .current-menu-item a::after {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
@ -1687,65 +1687,65 @@ textarea {
|
|||
/* used in
|
||||
* ./template-parts/section-eachpost.php
|
||||
* */
|
||||
.ofisuport-card-each .entry-title,
|
||||
.ofisuport-card-each h6 {
|
||||
.xarxaprod-card-each .entry-title,
|
||||
.xarxaprod-card-each h6 {
|
||||
border-bottom: 1px solid #000;
|
||||
margin: 0;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.ofisuport-card-each p {
|
||||
.xarxaprod-card-each p {
|
||||
padding: 0.5rem 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ofisuport-card-each .more-link {
|
||||
.xarxaprod-card-each .more-link {
|
||||
display: inline-block;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
/* used in
|
||||
* ./template-parts/content-ofisuport-ajut.php
|
||||
* ./template-parts/content-xarxaprod-ajut.php
|
||||
* ./template-parts/section-eachpost.php
|
||||
* */
|
||||
.ofisuport-fund-info-fields,
|
||||
.ofisuport-fund-info-contact-fields {
|
||||
.xarxaprod-fund-info-fields,
|
||||
.xarxaprod-fund-info-contact-fields {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-fields .ofisuport-fund-info-field,
|
||||
.ofisuport-fund-info-contact-fields .ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
|
||||
.xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-fields h6,
|
||||
.ofisuport-fund-info-contact-fields h6 {
|
||||
.xarxaprod-fund-info-fields h6,
|
||||
.xarxaprod-fund-info-contact-fields h6 {
|
||||
font-size: 2.4rem;
|
||||
font-variant: all-petite-caps;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-fields p,
|
||||
.ofisuport-fund-info-contact-fields p {
|
||||
.xarxaprod-fund-info-fields p,
|
||||
.xarxaprod-fund-info-contact-fields p {
|
||||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-fields li,
|
||||
.ofisuport-fund-info-contact-fields li {
|
||||
.xarxaprod-fund-info-fields li,
|
||||
.xarxaprod-fund-info-contact-fields li {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-contact-fields .ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ofisuport-fund-info-fields .ofisuport-fund-info-field {
|
||||
.xarxaprod-fund-info-fields .xarxaprod-fund-info-field {
|
||||
margin: 1rem 0 0.5rem 0;
|
||||
}
|
||||
|
||||
.ofisuport-funder-name,
|
||||
.ofisuport-fund-contact-name,
|
||||
.ofisuport-fund-web {
|
||||
.xarxaprod-funder-name,
|
||||
.xarxaprod-fund-contact-name,
|
||||
.xarxaprod-fund-web {
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1755,27 +1755,27 @@ textarea {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.ofisuport-funder-name a,
|
||||
.ofisuport-fund-contact-name a,
|
||||
.ofisuport-fund-web a {
|
||||
.xarxaprod-funder-name a,
|
||||
.xarxaprod-fund-contact-name a,
|
||||
.xarxaprod-fund-web a {
|
||||
text-decoration: none;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* filters form custom fields
|
||||
*/
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
display: grid;
|
||||
grid: 1fr;
|
||||
}
|
||||
|
||||
.ofisuport-filtered-funds .os_fund_target .filter,
|
||||
.ofisuport-filtered-funds .os_fund_source .filter,
|
||||
.ofisuport-filtered-funds .os_fund_field .filter {
|
||||
.xarxaprod-filtered-funds .os_fund_target .filter,
|
||||
.xarxaprod-filtered-funds .os_fund_source .filter,
|
||||
.xarxaprod-filtered-funds .os_fund_field .filter {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ofisuport-filters section {
|
||||
.xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
|
@ -1783,7 +1783,7 @@ textarea {
|
|||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.oficinasuport-titol-opcions {
|
||||
.xarxaprod-titol-opcions {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
max-width: 13em;
|
||||
|
@ -1798,13 +1798,13 @@ textarea {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.oficinasuport-titol-opcions::after {
|
||||
.xarxaprod-titol-opcions::after {
|
||||
content: ">";
|
||||
display: inline;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.oficinasuport-titol-opcions:hover::after {
|
||||
.xarxaprod-titol-opcions:hover::after {
|
||||
transform: rotate(90deg);
|
||||
animation: rotate 0.5s;
|
||||
}
|
||||
|
@ -1828,16 +1828,16 @@ textarea {
|
|||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.ofisuport-filters section {
|
||||
.xarxaprod-filters section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ofisuport-filters section h5 {
|
||||
.xarxaprod-filters section h5 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ofisuport-filters section .filter {
|
||||
.xarxaprod-filters section .filter {
|
||||
display: inline-block;
|
||||
width: 45%;
|
||||
margin-top: 0.5rem;
|
||||
|
@ -1845,22 +1845,22 @@ textarea {
|
|||
float: left;
|
||||
}
|
||||
|
||||
.ofisuport-filters section .filter:last-of-type {
|
||||
.xarxaprod-filters section .filter:last-of-type {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
.ofisuport-filters {
|
||||
.xarxaprod-filters {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
.ofisuport-filters section {
|
||||
.xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 2fr;
|
||||
}
|
||||
|
||||
|
@ -1872,7 +1872,7 @@ textarea {
|
|||
|
||||
@media screen and (min-width: 80em) {
|
||||
|
||||
.ofisuport-filtered-funds {
|
||||
.xarxaprod-filtered-funds {
|
||||
grid-template-columns: 1fr 3fr;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'No s’ha trobat res', 'ofisuport' ); ?></h1>
|
||||
<h1 class="page-title"><?php esc_html_e( 'No s’ha trobat res', 'xarxaprod' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
|
@ -21,7 +21,7 @@
|
|||
printf(
|
||||
'<p>' . wp_kses(
|
||||
/* translators: 1: link to WP admin new post page. */
|
||||
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'ofisuport' ),
|
||||
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'xarxaprod' ),
|
||||
array(
|
||||
'a' => array(
|
||||
'href' => array(),
|
||||
|
@ -34,14 +34,14 @@
|
|||
elseif ( is_search() ) :
|
||||
?>
|
||||
|
||||
<p><?php esc_html_e( 'Ho sento, però no hi ha res que coincideixi amb els termes de cerca. Torneu-ho a provar amb algunes paraules clau diferents.', 'ofisuport' ); ?></p>
|
||||
<p><?php esc_html_e( 'Ho sento, però no hi ha res que coincideixi amb els termes de cerca. Torneu-ho a provar amb algunes paraules clau diferents.', 'xarxaprod' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
else :
|
||||
?>
|
||||
|
||||
<p><?php esc_html_e( 'Sembla que no podem trobar el que busques. Potser la cerca pot ajudar.', 'ofisuport' ); ?></p>
|
||||
<p><?php esc_html_e( 'Sembla que no podem trobar el que busques. Potser la cerca pot ajudar.', 'xarxaprod' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php ofisuport_post_thumbnail(); ?>
|
||||
<?php xarxaprod_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
|
@ -22,7 +22,7 @@
|
|||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ),
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
|
@ -36,7 +36,7 @@
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'ofisuport' ),
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -19,10 +19,10 @@
|
|||
?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
ofisuport_display_each_faq_categories();
|
||||
//ofisuport_display_faqs_labels();
|
||||
//ofisuport_posted_on();
|
||||
//ofisuport_posted_by();
|
||||
xarxaprod_display_each_faq_categories();
|
||||
//xarxaprod_display_faqs_labels();
|
||||
//xarxaprod_posted_on();
|
||||
//xarxaprod_posted_by();
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
|
@ -34,7 +34,7 @@
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ofisuport' ),
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ),
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
|
@ -55,6 +55,6 @@
|
|||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php //ofisuport_entry_footer(); ?>
|
||||
<?php //xarxaprod_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -16,20 +16,20 @@
|
|||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
ofisuport_posted_on();
|
||||
//ofisuport_posted_by();
|
||||
xarxaprod_posted_on();
|
||||
//xarxaprod_posted_by();
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php ofisuport_post_thumbnail(); ?>
|
||||
<?php xarxaprod_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php ofisuport_entry_footer(); ?>
|
||||
<?php xarxaprod_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -15,33 +15,33 @@
|
|||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<section class="ofisuport-fund-info-contact-fields">
|
||||
<section class="xarxaprod-fund-info-contact-fields">
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
|
||||
</div>
|
||||
|
||||
<?php if( get_field('os_funder_name') ): ?>
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<p class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></p>
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<p class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( get_field('os_fund_contact_name') ): ?>
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<p class="ofisuport-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p>
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<p class="xarxaprod-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( get_field('os_fund_contact_mail') ): ?>
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<p class="ofisuport-fund-contact-mail"><?php the_field('os_fund_contact_mail'); ?></p>
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<p class="xarxaprod-fund-contact-mail"><?php the_field('os_fund_contact_mail'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( get_field('os_fund_contact_tel') ): ?>
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<p class="ofisuport-fund-contact-tel"><?php the_field('os_fund_contact_tel'); ?></p>
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<p class="xarxaprod-fund-contact-tel"><?php the_field('os_fund_contact_tel'); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ofisuport' ),
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
@ -68,34 +68,34 @@
|
|||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ),
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<section class="ofisuport-fund-info-fields">
|
||||
<section class="xarxaprod-fund-info-fields">
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>Dirigit a</h6>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?>
|
||||
</div>
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>Tipus d'ajuda</h6>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_source') ); ?>
|
||||
</div>
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>Sectors</h6>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
|
||||
</div>
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>Termini</h6>
|
||||
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?>
|
||||
<ul class="ofisuport-label item-os_fund_dates">
|
||||
<ul class="xarxaprod-label item-os_fund_dates">
|
||||
<li class="item-os_fund_apply_begin">del <?php the_field('os_fund_apply_begin'); ?> </li>
|
||||
<li class="item-os_fund_apply_end">al <?php the_field('os_fund_apply_end'); ?> </li>
|
||||
</ul>
|
||||
|
@ -107,19 +107,19 @@
|
|||
</div>
|
||||
|
||||
<?php if( get_field('os_fund_web') ): ?>
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>+ Informació</h6>
|
||||
<p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="ofisuport-fund-info-field">
|
||||
<div class="xarxaprod-fund-info-field">
|
||||
<h6>Necessites assesorament?</h6>
|
||||
<p><a href="<?php echo esc_url( home_url( '/consultoria/' ) ); ?>" class="button button-more button-ourservices">Oferim serveis de consultoria</a></p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<footer class="entry-footer">
|
||||
<?php ofisuport_entry_footer(); ?>
|
||||
<?php xarxaprod_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -22,14 +22,14 @@
|
|||
?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
ofisuport_posted_on();
|
||||
//ofisuport_posted_by();
|
||||
xarxaprod_posted_on();
|
||||
//xarxaprod_posted_by();
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php ofisuport_post_thumbnail(); ?>
|
||||
<?php xarxaprod_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
|
@ -37,7 +37,7 @@
|
|||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ofisuport' ),
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxaprod' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ),
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
|
@ -58,6 +58,6 @@
|
|||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php ofisuport_entry_footer(); ?>
|
||||
<?php xarxaprod_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('ofisuport-card-each'); ?>>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?>>
|
||||
<h3 class="entry-title">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php if( get_field('os_funder_name') ): ?>
|
||||
<h6 class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></h6>
|
||||
<h6 class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></h6>
|
||||
<?php endif; ?>
|
||||
<section class="excerpt post-excerpt">
|
||||
<?php the_excerpt() ?>
|
||||
|
@ -25,13 +25,13 @@
|
|||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_source') ); ?>
|
||||
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
|
||||
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?>
|
||||
<ul class="ofisuport-label item-os_fund_dates">
|
||||
<ul class="xarxaprod-label item-os_fund_dates">
|
||||
<li>del <?php the_field('os_fund_apply_begin'); ?></li>
|
||||
<li>al <?php the_field('os_fund_apply_end'); ?></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if( get_field('os_fund_apply_text') ): ?>
|
||||
<ul class="ofisuport-label item-os_fund_dates">
|
||||
<ul class="xarxaprod-label item-os_fund_dates">
|
||||
<li class=""><?php the_field('os_fund_apply_text'); ?></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -14,20 +14,20 @@
|
|||
// Detect plugin. For use on Front End only.
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||||
// check for plugin using plugin name
|
||||
if ( is_plugin_active( 'oficinasuport-wp-plugin/ofisuport-wp-plugin.php' ) ) {
|
||||
if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) {
|
||||
//plugin is activated do
|
||||
?>
|
||||
<header>
|
||||
<h2> <?php echo esc_html__('Destacats', 'ofisuport'); ?></h2>
|
||||
<h2> <?php echo esc_html__('Destacats', 'xarxaprod'); ?></h2>
|
||||
</header>
|
||||
<main id="destacats" class="ofisuport-destacats ofisuport-featured">
|
||||
<main id="destacats" class="xarxaprod-destacats xarxaprod-featured">
|
||||
|
||||
<?php
|
||||
// https://developer.wordpress.org/reference/functions/get_posts/
|
||||
// https://www.advancedcustomfields.com/resources/true-false/
|
||||
$featured_query = new WP_Query(
|
||||
array(
|
||||
'post_type' => array( 'post', 'ofisuport-ajut' ),
|
||||
'post_type' => array( 'post', 'xarxaprod-ajut' ),
|
||||
'posts_per_page' => '4',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
?>
|
||||
|
@ -20,7 +20,7 @@
|
|||
$fields= get_field($fielditerate);
|
||||
if( $fields ):
|
||||
?>
|
||||
<ul class="ofisuport-label item-<?php echo $fielditerate ?>">
|
||||
<ul class="xarxaprod-label item-<?php echo $fielditerate ?>">
|
||||
<?php foreach( $fields as $field ): ?>
|
||||
<li>
|
||||
<?php echo $field['label']; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Oficina_de_Suport_theme
|
||||
* @package Xarxaprod_theme
|
||||
*/
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue