migrated naming in css, php js from officinasuport-wp-theme to xarxaprod

This commit is contained in:
jorge 2024-01-13 15:46:11 +01:00
parent a92d9c3967
commit 97d077b0c7
51 changed files with 451 additions and 451 deletions

12
404.php
View File

@ -4,7 +4,7 @@
* *
* @link https://codex.wordpress.org/Creating_an_Error_404_Page * @link https://codex.wordpress.org/Creating_an_Error_404_Page
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();
@ -14,11 +14,11 @@ get_header();
<section class="error-404 not-found"> <section class="error-404 not-found">
<header class="page-header"> <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 --> </header><!-- .page-header -->
<div class="page-content"> <div class="page-content">
<p><?php esc_html_e( 'Sembla que no s&rsquo;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&rsquo;ha trobat res en aquest lloc. Potser provar un dels enllaços de sota o una cerca?', 'xarxaprod' ); ?></p>
<?php <?php
get_search_form(); get_search_form();
@ -27,7 +27,7 @@ get_header();
?> ?>
<div class="widget widget_categories"> <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> <ul>
<?php <?php
wp_list_categories( wp_list_categories(
@ -45,8 +45,8 @@ get_header();
<?php <?php
/* translators: %1$s: smiley */ /* translators: %1$s: smiley */
$ofisuport_archive_content = '<p>' . sprintf( esc_html__( 'Potser buscant en els arxius mensuals. %1$s', 'ofisuport' ), convert_smilies( ':)' ) ) . '</p>'; $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>$ofisuport_archive_content" ); the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$xarxaprod_archive_content" );
the_widget( 'WP_Widget_Tag_Cloud' ); the_widget( 'WP_Widget_Tag_Cloud' );
?> ?>

View File

@ -12,23 +12,23 @@
/* /*
Theme Name: Espai Assessorament - XarxaProd.cat Theme Name: XarxaProd.cat 2024
Theme URI: https://git.hangar.org/xarxaprod/ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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 Version: 1.0.7
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html 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 Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned. 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. 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 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; 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; margin: 0;
padding: 0; padding: 0;
display: inline; 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; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; 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; 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; 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; display: inline-block;
margin: 0.1em 0.5em 0.1em 0; margin: 0.1em 0.5em 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; 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; 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; 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; color: #fff;
text-decoration: none; text-decoration: none;
} }
.edit-post-visual-editor__content-area .ofisuport-faqs-types a:visited, .edit-post-visual-editor__content-area .xarxaprod-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:hover {
color: #fff; 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; 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; 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; line-height: 1.2;
} }
.edit-post-visual-editor__content-area .ofisuport-search-form { .edit-post-visual-editor__content-area .xarxaprod-search-form {
display: flex; display: flex;
margin: 0.5rem 0; 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; 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; z-index: 10;
margin: 0; margin: 0;
border: none; border: none;
@ -1181,7 +1181,7 @@ Add your custom styles in this file so it is easier to update the theme.
font-size: 0; 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; position: absolute;
padding: 0; padding: 0;
margin: 0.2rem 0 0 -1.5rem; 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; padding: 0 1rem;
} }
.edit-post-visual-editor__content-area .ofisuport-destacats, .edit-post-visual-editor__content-area .xarxaprod-destacats,
.edit-post-visual-editor__content-area .ofisuport-featured, .edit-post-visual-editor__content-area .xarxaprod-featured,
.edit-post-visual-editor__content-area .archive-posts { .edit-post-visual-editor__content-area .archive-posts {
display: grid; display: grid;
grid-template-columns: repeat(1, 1fr); 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; margin: 0 auto;
} }
.edit-post-visual-editor__content-area .ofisuport-destacats, .edit-post-visual-editor__content-area .xarxaprod-destacats,
.edit-post-visual-editor__content-area .ofisuport-featured, .edit-post-visual-editor__content-area .xarxaprod-featured,
.edit-post-visual-editor__content-area .archive-posts { .edit-post-visual-editor__content-area .archive-posts {
grid-template-columns: repeat(4, 1fr); 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; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:hover, .edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:hover,
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:active, .edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-search-form:active,
.edit-post-visual-editor__content-area .ofisuport-faqs-aside .ofisuport-search-form:focus, .edit-post-visual-editor__content-area .xarxaprod-faqs-aside .xarxaprod-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:target {
flex-grow: 1; 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; 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://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^="http://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^="https://xarxaprod.cat"] {
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 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; 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; 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://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^="http://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^="https://xarxaprod.cat"] {
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: none; 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://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^="http://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^="https://xarxaprod.cat"]::after,
.edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after { .edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after {
display: inline-block; display: inline-block;
content: ""; content: "";
@ -1778,8 +1778,8 @@ Add your custom styles in this file so it is easier to update the theme.
padding-bottom: 0; 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://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^="http://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^="https://xarxaprod.cat"]::after,
.edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after { .edit-post-visual-editor__content-area .main-navigation .current-menu-item a::after {
margin-top: 5em; margin-top: 5em;
} }
@ -1794,7 +1794,7 @@ Add your custom styles in this file so it is easier to update the theme.
* */ * */
/* used in /* used in
* ./template-parts/content-ofisuport-ajut.php * ./template-parts/content-xarxaprod-ajut.php
* ./template-parts/section-eachpost.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; margin: 0 0 1.5em;
} }
.edit-post-visual-editor__content-area .ofisuport-card-each .entry-title, .edit-post-visual-editor__content-area .xarxaprod-card-each .entry-title,
.edit-post-visual-editor__content-area .ofisuport-card-each h6 { .edit-post-visual-editor__content-area .xarxaprod-card-each h6 {
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
margin: 0; margin: 0;
padding: 0.5rem 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; padding: 0.5rem 0;
margin: 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; display: inline-block;
margin-top: 2rem; margin-top: 2rem;
} }
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields, .edit-post-visual-editor__content-area .xarxaprod-fund-info-fields,
.edit-post-visual-editor__content-area .ofisuport-fund-info-contact-fields { .edit-post-visual-editor__content-area .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
} }
.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,
.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 {
padding-bottom: 1rem; padding-bottom: 1rem;
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
} }
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields h6, .edit-post-visual-editor__content-area .xarxaprod-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-contact-fields h6 {
font-size: 2.4rem; font-size: 2.4rem;
font-variant: all-petite-caps; font-variant: all-petite-caps;
} }
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields p, .edit-post-visual-editor__content-area .xarxaprod-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-contact-fields p {
margin: 0.5rem 0 0 0; margin: 0.5rem 0 0 0;
} }
.edit-post-visual-editor__content-area .ofisuport-fund-info-fields li, .edit-post-visual-editor__content-area .xarxaprod-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-contact-fields li {
font-size: 1.3rem; 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; 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; margin: 1rem 0 0.5rem 0;
} }
.edit-post-visual-editor__content-area .ofisuport-funder-name, .edit-post-visual-editor__content-area .xarxaprod-funder-name,
.edit-post-visual-editor__content-area .ofisuport-fund-contact-name, .edit-post-visual-editor__content-area .xarxaprod-fund-contact-name,
.edit-post-visual-editor__content-area .ofisuport-fund-web { .edit-post-visual-editor__content-area .xarxaprod-fund-web {
display: flex; display: flex;
margin: 0; margin: 0;
padding: 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; align-items: center;
} }
.edit-post-visual-editor__content-area .ofisuport-funder-name a, .edit-post-visual-editor__content-area .xarxaprod-funder-name a,
.edit-post-visual-editor__content-area .ofisuport-fund-contact-name a, .edit-post-visual-editor__content-area .xarxaprod-fund-contact-name a,
.edit-post-visual-editor__content-area .ofisuport-fund-web a { .edit-post-visual-editor__content-area .xarxaprod-fund-web a {
text-decoration: none; text-decoration: none;
font-size: 0.8rem; font-size: 0.8rem;
} }
.edit-post-visual-editor__content-area .ofisuport-filtered-funds { .edit-post-visual-editor__content-area .xarxaprod-filtered-funds {
display: grid; display: grid;
grid: 1fr; grid: 1fr;
} }
.edit-post-visual-editor__content-area .ofisuport-filtered-funds .os_fund_target .filter, .edit-post-visual-editor__content-area .xarxaprod-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 .xarxaprod-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_field .filter {
display: none; display: none;
} }
.edit-post-visual-editor__content-area .ofisuport-filters section { .edit-post-visual-editor__content-area .xarxaprod-filters section {
margin: 1em 0; 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)); 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; display: inline-block;
width: 100%; width: 100%;
max-width: 13em; 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; text-transform: uppercase;
} }
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions::after { .edit-post-visual-editor__content-area .xarxaprod-titol-opcions::after {
content: ">"; content: ">";
display: inline; display: inline;
float: right; 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); transform: rotate(90deg);
animation: rotate 0.5s; 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; margin: 0 0 1em;
} }
.edit-post-visual-editor__content-area .ofisuport-filters section { .edit-post-visual-editor__content-area .xarxaprod-filters section {
display: block; display: block;
} }
.edit-post-visual-editor__content-area .ofisuport-filters section h5 { .edit-post-visual-editor__content-area .xarxaprod-filters section h5 {
display: block; display: block;
width: 100%; 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; display: inline-block;
width: 45%; width: 45%;
margin-top: 0.5rem; 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; 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; margin-bottom: 2rem;
} }
} }
@media screen and (min-width: 48em) { @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; padding-right: 2em;
} }
.edit-post-visual-editor__content-area .ofisuport-filters section { .edit-post-visual-editor__content-area .xarxaprod-filters section {
margin: 1em 0; 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; 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) { @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; grid-template-columns: 1fr 3fr;
} }

View File

@ -1,10 +1,10 @@
<?php <?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/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();
@ -15,29 +15,29 @@ get_header();
// Detect plugin. For use on Front End only. // Detect plugin. For use on Front End only.
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// check for plugin using plugin name // 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 //plugin is activated do
?> ?>
<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-filtre-ajuts"> <aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts">
<script type="text/javascript"> <script type="text/javascript">
<!-- https://stackoverflow.com/a/48314274 --> <!-- https://stackoverflow.com/a/48314274 -->
(function($) { (function($) {
$('.fund-filter').ready(function() { $('.fund-filter').ready(function() {
$('.oficinasuport-titol-opcions').click(function() { $('.xarxaprod-titol-opcions').click(function() {
$(this).siblings(".filter").toggle(); $(this).siblings(".filter").toggle();
}); });
}); });
})(jQuery); })(jQuery);
</script> </script>
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?> <?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
</aside> </aside>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); <?php while ( have_posts() ) : the_post();

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();
@ -16,7 +16,7 @@ get_header();
<header class="page-header"> <header class="page-header">
</header><!-- .page-header --> </header><!-- .page-header -->
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
/* Start the Loop */ /* Start the Loop */
while ( have_posts() ) : while ( have_posts() ) :

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
* @since 1.0 * @since 1.0
*/ */
@ -16,8 +16,8 @@ get_header();
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<?php if( in_category('faq') ) : ?> <?php if( in_category('faq') ) : ?>
<?php ofisuport_display_faqs_labels(); ?> <?php xarxaprod_display_faqs_labels(); ?>
<?php ofisuport_display_faqs_search(); ?> <?php xarxaprod_display_faqs_search(); ?>
<?php endif; //end if is_category faq ?> <?php endif; //end if is_category faq ?>
<content class="archive-posts "> <content class="archive-posts ">

View File

@ -7,7 +7,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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"> <h2 class="comments-title">
<?php <?php
$ofisuport_comment_count = get_comments_number(); $xarxaprod_comment_count = get_comments_number();
if ( '1' === $ofisuport_comment_count ) { if ( '1' === $xarxaprod_comment_count ) {
printf( printf(
/* translators: 1: title. */ /* translators: 1: title. */
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'ofisuport' ), esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'xarxaprod' ),
'<span>' . wp_kses_post( get_the_title() ) . '</span>' '<span>' . wp_kses_post( get_the_title() ) . '</span>'
); );
} else { } else {
printf( printf(
/* translators: 1: comment count number, 2: title. */ /* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $ofisuport_comment_count, 'comments title', 'ofisuport' ) ), esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $xarxaprod_comment_count, 'comments title', 'xarxaprod' ) ),
number_format_i18n( $ofisuport_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped number_format_i18n( $xarxaprod_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'<span>' . wp_kses_post( get_the_title() ) . '</span>' '<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 are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) : 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 <?php
endif; endif;

View File

@ -26,7 +26,7 @@
"scripts": { "scripts": {
"lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs", "lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .", "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": { "support": {
"issues": "https://github.com/Automattic/_s/issues", "issues": "https://github.com/Automattic/_s/issues",

View File

@ -6,7 +6,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * @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"> <footer id="colophon" class="site-footer">
<div class="site-info"> <div class="site-info">
<?php dynamic_sidebar( 'footer' ); ?> <?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 <?php
/* translators: %s: CMS name, i.e. WordPress. */ /* 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>'; ?> <?php //echo '</a>'; ?>
<!--span class="sep"></span--> <!--span class="sep"></span-->
<?php <?php
/* translators: 1: Theme name, 2: Theme author. */ /* 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 --> </div><!-- .site-info -->
</footer><!-- #colophon --> </footer><!-- #colophon -->

View File

@ -1,10 +1,10 @@
<?php <?php
/** /**
* Oficina de Suport theme functions and definitions * Xarxaprod theme functions and definitions
* *
* @link https://developer.wordpress.org/themes/basics/theme-functions/ * @link https://developer.wordpress.org/themes/basics/theme-functions/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
if ( ! defined( '_S_VERSION' ) ) { 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 * runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails. * as indicating support for post thumbnails.
*/ */
function ofisuport_setup() { function xarxaprod_setup() {
/* /*
* Make theme available for translation. * Make theme available for translation.
* Translations can be filed in the /languages/ directory. * 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 * If you're building a theme based on Xarxaprod theme, use a find and replace
* to change 'ofisuport' to the name of your theme in all the template files. * 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 default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' ); add_theme_support( 'automatic-feed-links' );
@ -49,8 +49,8 @@ function ofisuport_setup() {
// This theme uses wp_nav_menu() // This theme uses wp_nav_menu()
register_nav_menus( register_nav_menus(
array( array(
'menu-1' => esc_html__( 'Primary', 'ofisuport' ), 'menu-1' => esc_html__( 'Primary', 'xarxaprod' ),
'menu-2' => esc_html__( 'Secondary', 'ofisuport' ), 'menu-2' => esc_html__( 'Secondary', 'xarxaprod' ),
) )
); );
@ -76,7 +76,7 @@ function ofisuport_setup() {
//add_theme_support( //add_theme_support(
// 'custom-background', // 'custom-background',
// apply_filters( // apply_filters(
// 'ofisuport_custom_background_args', // 'xarxaprod_custom_background_args',
// array( // array(
// 'default-color' => 'ffffff', // 'default-color' => 'ffffff',
// 'default-image' => '', // '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. * 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 * @global int $content_width
*/ */
function ofisuport_content_width() { function xarxaprod_content_width() {
$GLOBALS['content_width'] = apply_filters( 'ofisuport_content_width', 640 ); $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. * Register widget area.
@ -127,20 +127,20 @@ require get_template_directory() . '/inc/widgets-register.php';
/** /**
* Enqueue scripts and styles. * Enqueue scripts and styles.
*/ */
function ofisuport_scripts() { function xarxaprod_scripts() {
wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), _S_VERSION ); wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), _S_VERSION );
//https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056 //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('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_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false);
wp_style_add_data( 'ofisuport-style', 'rtl', 'replace' ); 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' ) ) { if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'comment-reply' );
} }
} }
add_action( 'wp_enqueue_scripts', 'ofisuport_scripts' ); add_action( 'wp_enqueue_scripts', 'xarxaprod_scripts' );
/** /**
* Implement the Custom Header feature. * 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'; 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 // 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';

View File

@ -6,7 +6,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * @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(); ?>> <body <?php body_class(); ?>>
<?php wp_body_open(); ?> <?php wp_body_open(); ?>
<div id="page" class="site"> <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"> <header id="masthead" class="site-header">
<div class="main"> <div class="main">
@ -46,15 +46,15 @@
<p class="site-title"><a href="https://xarxaprod.cat" title="Xarxa d&rsquo;espais de procucció i creació de Catalunya">Xarxaprod</a></p> <p class="site-title"><a href="https://xarxaprod.cat" title="Xarxa d&rsquo;espais de procucció i creació de Catalunya">Xarxaprod</a></p>
<?php <?php
endif; endif;
$ofisuport_description = get_bloginfo( 'description', 'display' ); $xarxaprod_description = get_bloginfo( 'description', 'display' );
if ( $ofisuport_description || is_customize_preview() ) : 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; ?> <?php endif; ?>
</div><!-- .site-branding --> </div><!-- .site-branding -->
<nav id="site-navigation-main" class="main-navigation"> <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"> <section class="main-navigation-content">
<?php <?php
wp_nav_menu( wp_nav_menu(

View File

@ -4,8 +4,8 @@
*/ */
// Update CSS within in Admin // 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( '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');

View File

@ -7,7 +7,7 @@
*/ */
function ofisuport_archive_title( $title ) { function xarxaprod_archive_title( $title ) {
if ( is_category() ) { if ( is_category() ) {
$title = single_cat_title( '', false ); $title = single_cat_title( '', false );
} elseif ( is_tag() ) { } elseif ( is_tag() ) {
@ -23,4 +23,4 @@ function ofisuport_archive_title( $title ) {
return $title; return $title;
} }
add_filter( 'get_the_archive_title', 'ofisuport_archive_title' ); add_filter( 'get_the_archive_title', 'xarxaprod_archive_title' );

View File

@ -8,39 +8,39 @@
* *
* @link https://developer.wordpress.org/themes/functionality/custom-headers/ * @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. * 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( add_theme_support(
'custom-header', 'custom-header',
apply_filters( apply_filters(
'ofisuport_custom_header_args', 'xarxaprod_custom_header_args',
array( array(
'default-image' => '', 'default-image' => '',
'default-text-color' => '000000', 'default-text-color' => '000000',
'width' => 1000, 'width' => 1000,
'height' => 250, 'height' => 250,
'flex-height' => true, '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. * 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(); $header_text_color = get_header_textcolor();
/* /*

View File

@ -1,8 +1,8 @@
<?php <?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. * @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( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
@ -20,26 +20,26 @@ function ofisuport_customize_register( $wp_customize ) {
'blogname', 'blogname',
array( array(
'selector' => '.site-title a', 'selector' => '.site-title a',
'render_callback' => 'ofisuport_customize_partial_blogname', 'render_callback' => 'xarxaprod_customize_partial_blogname',
) )
); );
$wp_customize->selective_refresh->add_partial( $wp_customize->selective_refresh->add_partial(
'blogdescription', 'blogdescription',
array( array(
'selector' => '.site-description', '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. * Render the site title for the selective refresh partial.
* *
* @return void * @return void
*/ */
function ofisuport_customize_partial_blogname() { function xarxaprod_customize_partial_blogname() {
bloginfo( 'name' ); bloginfo( 'name' );
} }
@ -48,14 +48,14 @@ function ofisuport_customize_partial_blogname() {
* *
* @return void * @return void
*/ */
function ofisuport_customize_partial_blogdescription() { function xarxaprod_customize_partial_blogdescription() {
bloginfo( 'description' ); bloginfo( 'description' );
} }
/** /**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/ */
function ofisuport_customize_preview_js() { function xarxaprod_customize_preview_js() {
wp_enqueue_script( 'ofisuport-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true ); 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' );

View File

@ -4,7 +4,7 @@
* *
* @link https://jetpack.com/ * @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/responsive-videos/
* See: https://jetpack.com/support/content-options/ * See: https://jetpack.com/support/content-options/
*/ */
function ofisuport_jetpack_setup() { function xarxaprod_jetpack_setup() {
// Add theme support for Infinite Scroll. // Add theme support for Infinite Scroll.
add_theme_support( add_theme_support(
'infinite-scroll', 'infinite-scroll',
array( array(
'container' => 'main', 'container' => 'main',
'render' => 'ofisuport_infinite_scroll_render', 'render' => 'xarxaprod_infinite_scroll_render',
'footer' => 'page', 'footer' => 'page',
) )
); );
@ -33,7 +33,7 @@ function ofisuport_jetpack_setup() {
'jetpack-content-options', 'jetpack-content-options',
array( array(
'post-details' => array( 'post-details' => array(
'stylesheet' => 'ofisuport-style', 'stylesheet' => 'xarxaprod-style',
'date' => '.posted-on', 'date' => '.posted-on',
'categories' => '.cat-links', 'categories' => '.cat-links',
'tags' => '.tags-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. * Custom render function for Infinite Scroll.
*/ */
function ofisuport_infinite_scroll_render() { function xarxaprod_infinite_scroll_render() {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();
if ( is_search() ) : if ( is_search() ) :

View File

@ -6,7 +6,7 @@
*/ */
// https://codex.wordpress.org/Customizing_the_Login_Form#Change_the_Login_Logo // https://codex.wordpress.org/Customizing_the_Login_Form#Change_the_Login_Logo
function ofisuport_login_logo() { function xarxaprod_login_logo() {
if ( has_custom_logo() ) : if ( has_custom_logo() ) :
$image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ); $image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
@ -19,21 +19,21 @@ function ofisuport_login_logo() {
<?php <?php
endif; 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(); 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'; 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 // 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_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' ); // 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' );

View File

@ -2,7 +2,7 @@
/** /**
* Functions which enhance the theme by hooking into WordPress * 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. * @param array $classes Classes for the body element.
* @return array * @return array
*/ */
function ofisuport_body_classes( $classes ) { function xarxaprod_body_classes( $classes ) {
// Adds a class of hfeed to non-singular pages. // Adds a class of hfeed to non-singular pages.
if ( ! is_singular() ) { if ( ! is_singular() ) {
$classes[] = 'hfeed'; $classes[] = 'hfeed';
@ -24,41 +24,41 @@ function ofisuport_body_classes( $classes ) {
return $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. * 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() ) { if ( is_singular() && pings_open() ) {
printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) ); 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. // Detect plugin. For use on Front End only.
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// check for plugin using plugin name // 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 //plugin is activated do
} }
//do stuff here //do stuff here
} //closing if is_plugin_active } //closing if is_plugin_active
//add_action( 'wp_head', 'ofisuport_plugin_active' ); //add_action( 'wp_head', 'xarxaprod_plugin_active' );
/** /**
* Echo the post type slug * Echo the post type slug
*/ */
function ofisuport_class_posttype (){ function xarxaprod_class_posttype (){
if( is_post_type_archive( array('ofisuport-ajut') )) { if( is_post_type_archive( array('xarxaprod-ajut') )) {
echo 'archive-custom-post-type-'; echo 'archive-custom-post-type-';
printf(get_post_type_object( get_post_type() )->rewrite['slug'] ); 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 * Displays the FAQS subcategories from category id=1
*/ */
if ( ! function_exists( 'ofisuport_display_faqs_labels' ) ) : if ( ! function_exists( 'xarxaprod_display_faqs_labels' ) ) :
function ofisuport_display_faqs_labels() { function xarxaprod_display_faqs_labels() {
?> ?>
<nav id="tipus-faqs" class="ofisuport-faqs-types"> <nav id="tipus-faqs" class="xarxaprod-faqs-types">
<ul class="ofisuport-label"> <ul class="xarxaprod-label">
<?php <?php
// https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/ // https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/
wp_list_categories( wp_list_categories(
@ -89,19 +89,19 @@ if ( ! function_exists( 'ofisuport_display_faqs_labels' ) ) :
</nav> </nav>
<?php <?php
} }
endif; //end ofisuport_display_faqs_labels endif; //end xarxaprod_display_faqs_labels
/** /**
* Displays categories for each FAQ * Displays categories for each FAQ
*/ */
if ( ! function_exists( 'ofisuport_display_each_faq_categories' ) ) : if ( ! function_exists( 'xarxaprod_display_each_faq_categories' ) ) :
function ofisuport_display_each_faq_categories() { function xarxaprod_display_each_faq_categories() {
$categories = get_the_category(); $categories = get_the_category();
if ( ! empty( $categories ) ) { if ( ! empty( $categories ) ) {
echo ' <nav id="tipus-faqs" class="ofisuport-faqs-types">'; echo ' <nav id="tipus-faqs" class="xarxaprod-faqs-types">';
echo ' <ul class="ofisuport-label">'; echo ' <ul class="xarxaprod-label">';
foreach ( $categories as $category ) { foreach ( $categories as $category ) {
if ( ! ($category->cat_ID == '1') ) { //cat_ID '1' is defined as default FAQ 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>'; 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>'; echo ' </nav>';
} }
} }
endif; //end ofisuport_display_each_faq_categories endif; //end xarxaprod_display_each_faq_categories
/** /**
* Display search form for FAQs * Display search form for FAQs
*/ */
if ( ! function_exists( 'ofisuport_display_faq_search' ) ) : if ( ! function_exists( 'xarxaprod_display_faq_search' ) ) :
function ofisuport_display_faqs_search() { function xarxaprod_display_faqs_search() {
// search form for category // search form for category
// https://developer.wordpress.org/reference/functions/get_search_form/#comment-369 // 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 // 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> <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="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"> <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="posts" name="post_type" id="post_type" />
<input type="hidden" value="faq" name="category_name" id="category_name" /> <input type="hidden" value="faq" name="category_name" id="category_name" />
</form> </form>
<?php <?php
} }
endif; //end ofisuport_display_each_faq_categories endif; //end xarxaprod_display_each_faq_categories

View File

@ -4,14 +4,14 @@
* *
* Eventually, some of the functionality here could be replaced by core features. * 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. * 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>'; $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { 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>'; $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( $posted_on = sprintf(
/* translators: %s: post date. */ /* 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>' '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
); );
@ -36,14 +36,14 @@ if ( ! function_exists( 'ofisuport_posted_on' ) ) :
} }
endif; endif;
if ( ! function_exists( 'ofisuport_posted_by' ) ) : if ( ! function_exists( 'xarxaprod_posted_by' ) ) :
/** /**
* Prints HTML with meta information for the current author. * Prints HTML with meta information for the current author.
*/ */
function ofisuport_posted_by() { function xarxaprod_posted_by() {
$byline = sprintf( $byline = sprintf(
/* translators: %s: post author. */ /* 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>' '<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; endif;
if ( ! function_exists( 'ofisuport_entry_footer' ) ) : if ( ! function_exists( 'xarxaprod_entry_footer' ) ) :
/** /**
* Prints HTML with meta information for the categories, tags and comments. * 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. // Hide category and tag text for pages.
if ( 'post' === get_post_type() ) { if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */ /* 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 ) { if ( $categories_list ) {
/* translators: 1: list of categories. */ /* 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 */ /* 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 ) { if ( $tags_list ) {
/* translators: 1: list of tags. */ /* 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( sprintf(
wp_kses( wp_kses(
/* translators: %s: post title */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -97,7 +97,7 @@ if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -112,14 +112,14 @@ if ( ! function_exists( 'ofisuport_entry_footer' ) ) :
} }
endif; endif;
if ( ! function_exists( 'ofisuport_post_thumbnail' ) ) : if ( ! function_exists( 'xarxaprod_post_thumbnail' ) ) :
/** /**
* Displays an optional post thumbnail. * Displays an optional post thumbnail.
* *
* Wraps the post thumbnail in an anchor element on index views, or a div * Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views. * element when on single views.
*/ */
function ofisuport_post_thumbnail() { function xarxaprod_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return; return;
} }

View File

@ -4,12 +4,12 @@
* *
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registerin g-a-sidebar * @link https://developer.wordpress.org/themes/functionality/sidebars/#registerin g-a-sidebar
*/ */
function ofisuport_widgets_init() { function xarxaprod_widgets_init() {
register_sidebar( register_sidebar(
array( array(
'name' => esc_html__( 'Front Page - principal', 'ofisuport' ), 'name' => esc_html__( 'Front Page - principal', 'xarxaprod' ),
'id' => 'front-page-widgets', '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">', 'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">', 'before_title' => '<h2 class="widget-title">',
@ -18,9 +18,9 @@
); );
register_sidebar( register_sidebar(
array( array(
'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'ofisuport' ), 'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'xarxaprod' ),
'id' => 'sidebar-funds', '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">', 'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">', 'before_title' => '<h2 class="widget-title">',
@ -29,9 +29,9 @@
); );
register_sidebar( register_sidebar(
array( array(
'name' => esc_html__( 'Footer - Peu', 'ofisuport' ), 'name' => esc_html__( 'Footer - Peu', 'xarxaprod' ),
'id' => 'footer-widgets', '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">', 'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">', 'before_title' => '<h2 class="widget-title">',
@ -39,5 +39,5 @@
) )
); );
} }
add_action( 'widgets_init', 'ofisuport_widgets_init' ); add_action( 'widgets_init', 'xarxaprod_widgets_init' );

View File

@ -9,7 +9,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();

View File

@ -2,8 +2,8 @@
# This file is distributed under the GNU General Public License v2 or later. # This file is distributed under the GNU General Public License v2 or later.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Oficina de Suport de Xarxaprod 1.0.0\n" "Project-Id-Version: Xarxaprod 1.0.0\n"
"Report-Msgid-Bugs-To: https://git.hangar.org/xarxaprod/oficinasuport-wp-theme\n" "Report-Msgid-Bugs-To: https://git.hangar.org/xarxaprod/xarxaprod-wp-theme\n"
"Last-Translator: Jorge - vitrubio.net <jorge@vitrubio.net>\n" "Last-Translator: Jorge - vitrubio.net <jorge@vitrubio.net>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -15,15 +15,15 @@ msgstr ""
"X-Domain: ofsupxxp\n" "X-Domain: ofsupxxp\n"
#. Theme Name of the theme #. Theme Name of the theme
msgid "Oficina de Suport de Xarxaprod" msgid "Xarxaprod"
msgstr "" msgstr ""
#. Theme URI of the theme #. Theme URI of the theme
msgid "https://git.hangar.org/xarxaprod/oficinasuport-wp-theme" msgid "https://git.hangar.org/xarxaprod/xarxaprod-wp-theme"
msgstr "" msgstr ""
#. Description of the theme #. Description of the theme
msgid "Theme for the Oficina de Suport de Xarxaprod.cat" msgid "Theme for the Xarxaprod.cat"
msgstr "" msgstr ""
#. Author of the theme #. Author of the theme

View File

@ -42,6 +42,6 @@
"compile:rtl": "rtlcss style.css style-rtl.css", "compile:rtl": "rtlcss style.css style-rtl.css",
"lint:scss": "wp-scripts lint-style 'sass/**/*.scss'", "lint:scss": "wp-scripts lint-style 'sass/**/*.scss'",
"lint:js": "wp-scripts lint-js 'js/*.js'", "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"
} }
} }

View File

@ -7,7 +7,7 @@
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/ * @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
* @since 1.0 * @since 1.0
*/ */
@ -41,13 +41,13 @@ get_header();
endif; 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 //if( in_category('faq') ) : ?>
<?php ofisuport_display_faqs_labels(); ?> <?php xarxaprod_display_faqs_labels(); ?>
<?php ofisuport_display_faqs_search(); ?> <?php xarxaprod_display_faqs_search(); ?>
<?php //endif; //end if is_category faq ?> <?php //endif; //end if is_category faq ?>
</aside> </aside>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
// https://developer.wordpress.org/reference/functions/get_posts/ // https://developer.wordpress.org/reference/functions/get_posts/
// https://www.advancedcustomfields.com/resources/true-false/ // https://www.advancedcustomfields.com/resources/true-false/

View File

@ -5,7 +5,7 @@
* *
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/ * @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();

View File

@ -7,7 +7,7 @@
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* @link https://developer.wordpress.org/themes/template-files-section/page-template-files/ * @link https://developer.wordpress.org/themes/template-files-section/page-template-files/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
* @since 1.0 * @since 1.0
*/ */
@ -35,28 +35,28 @@ get_header();
endif; 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"> <aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-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?> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
<!-- https://stackoverflow.com/a/48314274 -->
<script type="text/javascript"> <script type="text/javascript">
<!-- https://stackoverflow.com/a/48314274 -->
(function($) { (function($) {
$('.fund-filter').ready(function() { $('.fund-filter').ready(function() {
$('.oficinasuport-titol-opcions').click(function() { $('.xarxaprod-titol-opcions').click(function() {
$(this).siblings(".filter").toggle(); $(this).siblings(".filter").toggle();
}); });
}); });
})(jQuery); })(jQuery);
</script> </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 ?> <?php } //end if is_plugin_active ?>
</aside> </aside>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
// https://support.advancedcustomfields.com/forums/topic/wp_query-using-meta_query-for-an-acf-checkbox-field/#post-145830 // 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( $the_query_ajut = new WP_Query(
array( array(
'post_type' => 'ofisuport-ajut', 'post_type' => 'xarxaprod-ajut',
'posts_per_page' => '-1' 'posts_per_page' => '-1'
) )
); );

View File

@ -9,7 +9,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();

View File

@ -61,7 +61,7 @@
Multiple valid text domains can be provided as a comma-delimited list. --> Multiple valid text domains can be provided as a comma-delimited list. -->
<rule ref="WordPress.WP.I18n"> <rule ref="WordPress.WP.I18n">
<properties> <properties>
<property name="text_domain" type="array" value="ofisuport"/> <property name="text_domain" type="array" value="xarxaprod"/>
</properties> </properties>
</rule> </rule>
@ -93,7 +93,7 @@
Multiple valid prefixes can be provided as a comma-delimited list. --> Multiple valid prefixes can be provided as a comma-delimited list. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"> <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties> <properties>
<property name="prefixes" type="array" value="ofisuport" /> <property name="prefixes" type="array" value="xarxaprod" />
</properties> </properties>
</rule> </rule>

View File

@ -98,7 +98,7 @@ input[type="submit"],
} }
} }
.ofisuport-search-form { .xarxaprod-search-form {
display: flex; display: flex;
margin: 0.5rem 0; margin: 0.5rem 0;
.search-field { .search-field {
@ -117,7 +117,7 @@ input[type="submit"],
} }
.ofisuport-icon-search:before { .xarxaprod-icon-search:before {
position: absolute; position: absolute;
padding: 0; padding: 0;
margin: 0.2rem 0 0 -1.5rem; margin: 0.2rem 0 0 -1.5rem;

View File

@ -35,7 +35,7 @@ a {
} }
} }
//.home-featured,.archive-posts { //.home-featured,.archive-posts {
// .category-faq,.type-ofisuport-ajut { // .category-faq,.type-xarxaprod-ajut {
// position: relative; // position: relative;
// padding-bottom: 4rem; // padding-bottom: 4rem;
// .entry-title { // .entry-title {

View File

@ -28,7 +28,7 @@ dd {
} }
article:not(.type-post){ article:not(.type-post){
.ofisuport-label { .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
@ -73,7 +73,7 @@ article:not(.type-post){
text-transform: uppercase; text-transform: uppercase;
} }
} }
.ofisuport-faqs-types { .xarxaprod-faqs-types {
ul { ul {
margin: 0; margin: 0;
} }
@ -98,9 +98,9 @@ article:not(.type-post){
} }
} }
} }
.single-ofisuport-ajut { .single-xarxaprod-ajut {
article:not(.type-post) { article:not(.type-post) {
.ofisuport-label { .xarxaprod-label {
li { li {
font-size: $font__size-body*1.1; font-size: $font__size-body*1.1;
} }

View File

@ -26,7 +26,7 @@
/* used in /* used in
* ./template-parts/section-eachpost.php * ./template-parts/section-eachpost.php
* */ * */
.ofisuport-card-each { .xarxaprod-card-each {
.entry-title,h6 { .entry-title,h6 {
border-bottom: 1px solid $color__black; border-bottom: 1px solid $color__black;
margin: 0; margin: 0;
@ -43,13 +43,13 @@
} }
} }
/* used in /* used in
* ./template-parts/content-ofisuport-ajut.php * ./template-parts/content-xarxaprod-ajut.php
* ./template-parts/section-eachpost.php * ./template-parts/section-eachpost.php
* */ * */
.ofisuport-fund-info-fields, .xarxaprod-fund-info-fields,
.ofisuport-fund-info-contact-fields { .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
.ofisuport-fund-info-field { .xarxaprod-fund-info-field {
padding-bottom: 1rem; padding-bottom: 1rem;
border-bottom: 1px solid $color__black; border-bottom: 1px solid $color__black;
} }
@ -64,19 +64,19 @@
font-size: 1.3rem; font-size: 1.3rem;
} }
} }
.ofisuport-fund-info-contact-fields { .xarxaprod-fund-info-contact-fields {
.ofisuport-fund-info-field { .xarxaprod-fund-info-field {
margin: 0; margin: 0;
} }
} }
.ofisuport-fund-info-fields { .xarxaprod-fund-info-fields {
.ofisuport-fund-info-field { .xarxaprod-fund-info-field {
margin: 1rem 0 0.5rem 0; margin: 1rem 0 0.5rem 0;
} }
} }
.ofisuport-funder-name, .xarxaprod-funder-name,
.ofisuport-fund-contact-name, .xarxaprod-fund-contact-name,
.ofisuport-fund-web { .xarxaprod-fund-web {
display: flex; display: flex;
margin:0; margin:0;
padding: 0; padding: 0;
@ -91,7 +91,7 @@
} }
/* filters form custom fields /* filters form custom fields
*/ */
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
display:grid; display:grid;
grid: 1fr; grid: 1fr;
.os_fund_target, .os_fund_target,
@ -102,11 +102,11 @@
} }
} }
} }
.ofisuport-filters { .xarxaprod-filters {
section { section {
margin: 1em 0; margin: 1em 0;
} }
.oficinasuport-titol-opcions { .xarxaprod-titol-opcions {
} }
} }
.archive-posts { .archive-posts {
@ -114,7 +114,7 @@
grid-template-columns: repeat(1 , minmax(0,1fr)); grid-template-columns: repeat(1 , minmax(0,1fr));
} }
.oficinasuport-titol-opcions { .xarxaprod-titol-opcions {
// applied in forms and contactforms // applied in forms and contactforms
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -158,7 +158,7 @@
margin: 0 0 1em; margin: 0 0 1em;
} }
.ofisuport-filters { .xarxaprod-filters {
section { section {
display: block; display: block;
h5 { h5 {
@ -180,13 +180,13 @@
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
//only bigger than 48em //only bigger than 48em
.ofisuport-filters { .xarxaprod-filters {
padding-right: 2em; padding-right: 2em;
section { section {
margin: 1em 0; margin: 1em 0;
} }
} }
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
} }
.archive-posts { .archive-posts {
@ -196,7 +196,7 @@
} }
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
//only bigger than 80rem //only bigger than 80rem
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
grid-template-columns: 1fr 3fr; grid-template-columns: 1fr 3fr;
} }
.archive-posts { .archive-posts {

View File

@ -53,8 +53,8 @@
.main-navigation { .main-navigation {
a[href^="http://localhost"], a[href^="http://localhost"],
a[href^="http://oficinasuport.xarxaprod.cat"], a[href^="http://xarxaprod.cat"],
a[href^="https://oficinasuport.xarxaprod.cat"] a[href^="https://xarxaprod.cat"]
{ {
font-family: $font__bold; font-family: $font__bold;
border-left: 1px solid $color__black; border-left: 1px solid $color__black;
@ -255,15 +255,15 @@
} }
} }
a[href^="http://localhost"], a[href^="http://localhost"],
a[href^="http://oficinasuport.xarxaprod.cat"], a[href^="http://xarxaprod.cat"],
a[href^="https://oficinasuport.xarxaprod.cat"] a[href^="https://xarxaprod.cat"]
{ {
font-family: $font__bold; font-family: $font__bold;
border-left:none; border-left:none;
} }
a[href^="http://localhost"]::after, a[href^="http://localhost"]::after,
a[href^="http://oficinasuport.xarxaprod.cat"]::after, a[href^="http://xarxaprod.cat"]::after,
a[href^="https://oficinasuport.xarxaprod.cat"]::after, a[href^="https://xarxaprod.cat"]::after,
.current-menu-item a::after { .current-menu-item a::after {
display: inline-block; display: inline-block;
content: ""; content: "";
@ -358,8 +358,8 @@
.main-navigation { .main-navigation {
padding-bottom: 0; padding-bottom: 0;
a[href^="http://localhost"]::after, a[href^="http://localhost"]::after,
a[href^="http://oficinasuport.xarxaprod.cat"]::after, a[href^="http://xarxaprod.cat"]::after,
a[href^="https://oficinasuport.xarxaprod.cat"]::after, a[href^="https://xarxaprod.cat"]::after,
.current-menu-item a::after { .current-menu-item a::after {
margin-top: 5em; margin-top: 5em;
} }

View File

@ -52,7 +52,7 @@
.home-featured { .home-featured {
padding: 0 1rem; padding: 0 1rem;
} }
.ofisuport-destacats,.ofisuport-featured,.archive-posts { .xarxaprod-destacats,.xarxaprod-featured,.archive-posts {
display: grid; display: grid;
grid-template-columns: repeat(1 , 1fr); grid-template-columns: repeat(1 , 1fr);
gap: $grid__gap; gap: $grid__gap;
@ -110,15 +110,15 @@
margin: 0 auto; margin: 0 auto;
} }
} }
.ofisuport-destacats,.ofisuport-featured,.archive-posts { .xarxaprod-destacats,.xarxaprod-featured,.archive-posts {
grid-template-columns: repeat(4 , 1fr); grid-template-columns: repeat(4 , 1fr);
} }
.ofisuport-faqs-aside { .xarxaprod-faqs-aside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.ofisuport-search-form { .xarxaprod-search-form {
&:hover,&:active,&:focus,&:target { &:hover,&:active,&:focus,&:target {
flex-grow: 1; flex-grow: 1;
} }

View File

@ -1,22 +1,22 @@
/* /*
Theme Name: Espai Assessorament - XarxaProd.cat Theme Name: XarxaProd.cat 2024
Theme URI: https://git.hangar.org/xarxaprod/ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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 Version: 1.0.7
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html 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 Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned. 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. 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 Normalizing styles have been helped along thanks to the fine work of

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();
@ -18,42 +18,42 @@ get_header();
</header><!-- .page-header --> </header><!-- .page-header -->
<?php <?php
// check if is ofisuport-ajut // check if is xarxaprod-ajut
if ( get_post_type( get_the_ID() ) == 'ofisuport-ajut'){ ?> if ( get_post_type( get_the_ID() ) == 'xarxaprod-ajut'){ ?>
<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"> <aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-fitre-ajuts">
<script type="text/javascript"> <script type="text/javascript">
<!-- https://stackoverflow.com/a/48314274 --> <!-- https://stackoverflow.com/a/48314274 -->
(function($) { (function($) {
$('.fund-filter').ready(function() { $('.fund-filter').ready(function() {
$('.oficinasuport-titol-opcions').click(function() { $('.xarxaprod-titol-opcions').click(function() {
$(this).siblings(".filter").toggle(); $(this).siblings(".filter").toggle();
}); });
}); });
})(jQuery); })(jQuery);
</script> </script>
<?php ofisuport_ajuts_filters_form(); // function defined in the plugin ?> <?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
</aside> </aside>
<?php } elseif ( in_category ( 'faq' ) ) { ?> <?php } elseif ( in_category ( 'faq' ) ) { ?>
<section id="filteredsearch" class="ofisuport-searched-query ofisuport-search-faqs"> <section id="filteredsearch" class="xarxaprod-searched-query xarxaprod-search-faqs">
<aside id="ofisuport-faqs-nav" class="ofisuport-faqs-aside"> <aside id="xarxaprod-faqs-nav" class="xarxaprod-faqs-aside">
<?php //if( in_category('faq') ) : ?> <?php //if( in_category('faq') ) : ?>
<?php ofisuport_display_faqs_labels(); ?> <?php xarxaprod_display_faqs_labels(); ?>
<?php ofisuport_display_faqs_search(); ?> <?php xarxaprod_display_faqs_search(); ?>
<?php //endif; //end if is_category faq ?> <?php //endif; //end if is_category faq ?>
</aside> </aside>
<?php } else { ?> <?php } else { ?>
<section id="filteredsearch" class="ofisuport-searched-query"> <section id="filteredsearch" class="xarxaprod-searched-query">
<?php <?php
/* translators: %s: search query. */ /* 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 ?> <?php }; // end if is xarxaprod-ajut ?>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php <?php
/* Start the Loop */ /* Start the Loop */

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * @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' ) ) { if ( ! is_active_sidebar( 'sidebar-funds' ) ) {

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
get_header(); get_header();

View File

@ -1,21 +1,21 @@
/*! /*!
Theme Name: Oficina de Suport theme Theme Name: Xarxaprod theme
Theme URI: https://underscores.me/ Theme URI: https://underscores.me/
Author: Automattic Author: Automattic
Author URI: https://automattic.com/ 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 Version: 1.0.0
Tested up to: 5.4 Tested up to: 5.4
Requires PHP: 5.6 Requires PHP: 5.6
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: LICENSE 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 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned. 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. 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 Normalizing styles have been helped along thanks to the fine work of

148
style.css
View File

@ -1,22 +1,22 @@
/* /*
Theme Name: Espai Assessorament - XarxaProd.cat Theme Name: XarxaProd.cat 2024
Theme URI: https://git.hangar.org/xarxaprod/ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://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 Version: 1.0.7
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 7.4 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html 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 Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned. 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. 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 Normalizing styles have been helped along thanks to the fine work of
@ -762,13 +762,13 @@ dd {
padding: 0; padding: 0;
} }
article:not(.type-post) .ofisuport-label { article:not(.type-post) .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
article:not(.type-post) .ofisuport-label li { article:not(.type-post) .xarxaprod-label li {
display: inline-block; display: inline-block;
margin: 0.1em 0; margin: 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
@ -815,11 +815,11 @@ article:not(.type-post) .item-os_fund_apply_text {
text-transform: uppercase; text-transform: uppercase;
} }
.ofisuport-faqs-types ul { .xarxaprod-faqs-types ul {
margin: 0; margin: 0;
} }
.ofisuport-faqs-types .cat-item { .xarxaprod-faqs-types .cat-item {
display: inline-block; display: inline-block;
margin: 0.1em 0.5em 0.1em 0; margin: 0.1em 0.5em 0.1em 0;
padding: 0.2em 0.2em 0 0.2em; padding: 0.2em 0.2em 0 0.2em;
@ -830,25 +830,25 @@ article:not(.type-post) .item-os_fund_apply_text {
text-transform: uppercase; text-transform: uppercase;
} }
.ofisuport-faqs-types .current-cat { .xarxaprod-faqs-types .current-cat {
background-color: #ff8d76; background-color: #ff8d76;
} }
.ofisuport-faqs-types a { .xarxaprod-faqs-types a {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
} }
.ofisuport-faqs-types a:visited, .xarxaprod-faqs-types a:visited,
.ofisuport-faqs-types a:hover { .xarxaprod-faqs-types a:hover {
color: #fff; 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; 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; font-size: 1.1rem;
} }
@ -1032,16 +1032,16 @@ input[type="submit"]:focus,
line-height: 1.2; line-height: 1.2;
} }
.ofisuport-search-form { .xarxaprod-search-form {
display: flex; display: flex;
margin: 0.5rem 0; margin: 0.5rem 0;
} }
.ofisuport-search-form .search-field { .xarxaprod-search-form .search-field {
padding: 0.5em; padding: 0.5em;
} }
.ofisuport-search-form .search-submit { .xarxaprod-search-form .search-submit {
z-index: 10; z-index: 10;
margin: 0; margin: 0;
border: none; border: none;
@ -1052,7 +1052,7 @@ input[type="submit"]:focus,
font-size: 0; font-size: 0;
} }
.ofisuport-icon-search::before { .xarxaprod-icon-search::before {
position: absolute; position: absolute;
padding: 0; padding: 0;
margin: 0.2rem 0 0 -1.5rem; margin: 0.2rem 0 0 -1.5rem;
@ -1178,8 +1178,8 @@ textarea {
padding: 0 1rem; padding: 0 1rem;
} }
.ofisuport-destacats, .xarxaprod-destacats,
.ofisuport-featured, .xarxaprod-featured,
.archive-posts { .archive-posts {
display: grid; display: grid;
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
@ -1221,23 +1221,23 @@ textarea {
margin: 0 auto; margin: 0 auto;
} }
.ofisuport-destacats, .xarxaprod-destacats,
.ofisuport-featured, .xarxaprod-featured,
.archive-posts { .archive-posts {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
} }
.ofisuport-faqs-aside { .xarxaprod-faqs-aside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.ofisuport-faqs-aside .ofisuport-search-form:hover, .xarxaprod-faqs-aside .xarxaprod-search-form:hover,
.ofisuport-faqs-aside .ofisuport-search-form:active, .xarxaprod-faqs-aside .xarxaprod-search-form:active,
.ofisuport-faqs-aside .ofisuport-search-form:focus, .xarxaprod-faqs-aside .xarxaprod-search-form:focus,
.ofisuport-faqs-aside .ofisuport-search-form:target { .xarxaprod-faqs-aside .xarxaprod-search-form:target {
flex-grow: 1; flex-grow: 1;
} }
} }
@ -1323,8 +1323,8 @@ textarea {
border-left: 1px solid #000; border-left: 1px solid #000;
} }
.main-navigation a[href^="http://localhost"], .main-navigation a[href^="http://localhost"],
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"], .main-navigation a[href^="http://xarxaprod.cat"],
.main-navigation a[href^="https://oficinasuport.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; 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; border-left: 1px solid #000;
} }
@ -1543,14 +1543,14 @@ textarea {
margin: 0.5rem 0; margin: 0.5rem 0;
} }
.main-navigation a[href^="http://localhost"], .main-navigation a[href^="http://localhost"],
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"], .main-navigation a[href^="http://xarxaprod.cat"],
.main-navigation a[href^="https://oficinasuport.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; font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: none; border-left: none;
} }
.main-navigation a[href^="http://localhost"]::after, .main-navigation a[href^="http://localhost"]::after,
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after, .main-navigation a[href^="http://xarxaprod.cat"]::after,
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after, .main-navigation a[href^="https://xarxaprod.cat"]::after,
.main-navigation .current-menu-item a::after { .main-navigation .current-menu-item a::after {
display: inline-block; display: inline-block;
content: ""; content: "";
@ -1649,8 +1649,8 @@ textarea {
padding-bottom: 0; padding-bottom: 0;
} }
.main-navigation a[href^="http://localhost"]::after, .main-navigation a[href^="http://localhost"]::after,
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"]::after, .main-navigation a[href^="http://xarxaprod.cat"]::after,
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"]::after, .main-navigation a[href^="https://xarxaprod.cat"]::after,
.main-navigation .current-menu-item a::after { .main-navigation .current-menu-item a::after {
margin-top: 5em; margin-top: 5em;
} }
@ -1687,65 +1687,65 @@ textarea {
/* used in /* used in
* ./template-parts/section-eachpost.php * ./template-parts/section-eachpost.php
* */ * */
.ofisuport-card-each .entry-title, .xarxaprod-card-each .entry-title,
.ofisuport-card-each h6 { .xarxaprod-card-each h6 {
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
margin: 0; margin: 0;
padding: 0.5rem 0; padding: 0.5rem 0;
} }
.ofisuport-card-each p { .xarxaprod-card-each p {
padding: 0.5rem 0; padding: 0.5rem 0;
margin: 0; margin: 0;
} }
.ofisuport-card-each .more-link { .xarxaprod-card-each .more-link {
display: inline-block; display: inline-block;
margin-top: 2rem; margin-top: 2rem;
} }
/* used in /* used in
* ./template-parts/content-ofisuport-ajut.php * ./template-parts/content-xarxaprod-ajut.php
* ./template-parts/section-eachpost.php * ./template-parts/section-eachpost.php
* */ * */
.ofisuport-fund-info-fields, .xarxaprod-fund-info-fields,
.ofisuport-fund-info-contact-fields { .xarxaprod-fund-info-contact-fields {
display: grid; display: grid;
} }
.ofisuport-fund-info-fields .ofisuport-fund-info-field, .xarxaprod-fund-info-fields .xarxaprod-fund-info-field,
.ofisuport-fund-info-contact-fields .ofisuport-fund-info-field { .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
padding-bottom: 1rem; padding-bottom: 1rem;
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
} }
.ofisuport-fund-info-fields h6, .xarxaprod-fund-info-fields h6,
.ofisuport-fund-info-contact-fields h6 { .xarxaprod-fund-info-contact-fields h6 {
font-size: 2.4rem; font-size: 2.4rem;
font-variant: all-petite-caps; font-variant: all-petite-caps;
} }
.ofisuport-fund-info-fields p, .xarxaprod-fund-info-fields p,
.ofisuport-fund-info-contact-fields p { .xarxaprod-fund-info-contact-fields p {
margin: 0.5rem 0 0 0; margin: 0.5rem 0 0 0;
} }
.ofisuport-fund-info-fields li, .xarxaprod-fund-info-fields li,
.ofisuport-fund-info-contact-fields li { .xarxaprod-fund-info-contact-fields li {
font-size: 1.3rem; font-size: 1.3rem;
} }
.ofisuport-fund-info-contact-fields .ofisuport-fund-info-field { .xarxaprod-fund-info-contact-fields .xarxaprod-fund-info-field {
margin: 0; margin: 0;
} }
.ofisuport-fund-info-fields .ofisuport-fund-info-field { .xarxaprod-fund-info-fields .xarxaprod-fund-info-field {
margin: 1rem 0 0.5rem 0; margin: 1rem 0 0.5rem 0;
} }
.ofisuport-funder-name, .xarxaprod-funder-name,
.ofisuport-fund-contact-name, .xarxaprod-fund-contact-name,
.ofisuport-fund-web { .xarxaprod-fund-web {
display: flex; display: flex;
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -1755,27 +1755,27 @@ textarea {
align-items: center; align-items: center;
} }
.ofisuport-funder-name a, .xarxaprod-funder-name a,
.ofisuport-fund-contact-name a, .xarxaprod-fund-contact-name a,
.ofisuport-fund-web a { .xarxaprod-fund-web a {
text-decoration: none; text-decoration: none;
font-size: 0.8rem; font-size: 0.8rem;
} }
/* filters form custom fields /* filters form custom fields
*/ */
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
display: grid; display: grid;
grid: 1fr; grid: 1fr;
} }
.ofisuport-filtered-funds .os_fund_target .filter, .xarxaprod-filtered-funds .os_fund_target .filter,
.ofisuport-filtered-funds .os_fund_source .filter, .xarxaprod-filtered-funds .os_fund_source .filter,
.ofisuport-filtered-funds .os_fund_field .filter { .xarxaprod-filtered-funds .os_fund_field .filter {
display: none; display: none;
} }
.ofisuport-filters section { .xarxaprod-filters section {
margin: 1em 0; margin: 1em 0;
} }
@ -1783,7 +1783,7 @@ textarea {
grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-columns: repeat(1, minmax(0, 1fr));
} }
.oficinasuport-titol-opcions { .xarxaprod-titol-opcions {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
max-width: 13em; max-width: 13em;
@ -1798,13 +1798,13 @@ textarea {
text-transform: uppercase; text-transform: uppercase;
} }
.oficinasuport-titol-opcions::after { .xarxaprod-titol-opcions::after {
content: ">"; content: ">";
display: inline; display: inline;
float: right; float: right;
} }
.oficinasuport-titol-opcions:hover::after { .xarxaprod-titol-opcions:hover::after {
transform: rotate(90deg); transform: rotate(90deg);
animation: rotate 0.5s; animation: rotate 0.5s;
} }
@ -1828,16 +1828,16 @@ textarea {
margin: 0 0 1em; margin: 0 0 1em;
} }
.ofisuport-filters section { .xarxaprod-filters section {
display: block; display: block;
} }
.ofisuport-filters section h5 { .xarxaprod-filters section h5 {
display: block; display: block;
width: 100%; width: 100%;
} }
.ofisuport-filters section .filter { .xarxaprod-filters section .filter {
display: inline-block; display: inline-block;
width: 45%; width: 45%;
margin-top: 0.5rem; margin-top: 0.5rem;
@ -1845,22 +1845,22 @@ textarea {
float: left; float: left;
} }
.ofisuport-filters section .filter:last-of-type { .xarxaprod-filters section .filter:last-of-type {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.ofisuport-filters { .xarxaprod-filters {
padding-right: 2em; padding-right: 2em;
} }
.ofisuport-filters section { .xarxaprod-filters section {
margin: 1em 0; margin: 1em 0;
} }
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
} }
@ -1872,7 +1872,7 @@ textarea {
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
.ofisuport-filtered-funds { .xarxaprod-filtered-funds {
grid-template-columns: 1fr 3fr; grid-template-columns: 1fr 3fr;
} }

View File

@ -4,14 +4,14 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */
?> ?>
<section class="no-results not-found"> <section class="no-results not-found">
<header class="page-header"> <header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'No s&rsquo;ha trobat res', 'ofisuport' ); ?></h1> <h1 class="page-title"><?php esc_html_e( 'No s&rsquo;ha trobat res', 'xarxaprod' ); ?></h1>
</header><!-- .page-header --> </header><!-- .page-header -->
<div class="page-content"> <div class="page-content">
@ -21,7 +21,7 @@
printf( printf(
'<p>' . wp_kses( '<p>' . wp_kses(
/* translators: 1: link to WP admin new post page. */ /* 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( array(
'a' => array( 'a' => array(
'href' => array(), 'href' => array(),
@ -34,14 +34,14 @@
elseif ( is_search() ) : 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 <?php
get_search_form(); get_search_form();
else : 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 <?php
get_search_form(); get_search_form();

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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>' ); ?> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php ofisuport_post_thumbnail(); ?> <?php xarxaprod_post_thumbnail(); ?>
<div class="entry-content"> <div class="entry-content">
<?php <?php
@ -22,7 +22,7 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );
@ -36,7 +36,7 @@
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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"> <div class="entry-meta">
<?php <?php
ofisuport_display_each_faq_categories(); xarxaprod_display_each_faq_categories();
//ofisuport_display_faqs_labels(); //xarxaprod_display_faqs_labels();
//ofisuport_posted_on(); //xarxaprod_posted_on();
//ofisuport_posted_by(); //xarxaprod_posted_by();
?> ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php endif; ?>
@ -34,7 +34,7 @@
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -47,7 +47,7 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );
@ -55,6 +55,6 @@
</div><!-- .entry-content --> </div><!-- .entry-content -->
<footer class="entry-footer"> <footer class="entry-footer">
<?php //ofisuport_entry_footer(); ?> <?php //xarxaprod_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> --> </article><!-- #post-<?php the_ID(); ?> -->

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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() ) : ?> <?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta"> <div class="entry-meta">
<?php <?php
ofisuport_posted_on(); xarxaprod_posted_on();
//ofisuport_posted_by(); //xarxaprod_posted_by();
?> ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php endif; ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php ofisuport_post_thumbnail(); ?> <?php xarxaprod_post_thumbnail(); ?>
<div class="entry-summary"> <div class="entry-summary">
<?php the_excerpt(); ?> <?php the_excerpt(); ?>
</div><!-- .entry-summary --> </div><!-- .entry-summary -->
<footer class="entry-footer"> <footer class="entry-footer">
<?php ofisuport_entry_footer(); ?> <?php xarxaprod_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> --> </article><!-- #post-<?php the_ID(); ?> -->

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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>' ); ?> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header --> </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') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
</div> </div>
<?php if( get_field('os_funder_name') ): ?> <?php if( get_field('os_funder_name') ): ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<p class="ofisuport-funder-name"><?php the_field('os_funder_name'); ?></p> <p class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_fund_contact_name') ): ?> <?php if( get_field('os_fund_contact_name') ): ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<p class="ofisuport-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p> <p class="xarxaprod-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_fund_contact_mail') ): ?> <?php if( get_field('os_fund_contact_mail') ): ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<p class="ofisuport-fund-contact-mail"><?php the_field('os_fund_contact_mail'); ?></p> <p class="xarxaprod-fund-contact-mail"><?php the_field('os_fund_contact_mail'); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_fund_contact_tel') ): ?> <?php if( get_field('os_fund_contact_tel') ): ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<p class="ofisuport-fund-contact-tel"><?php the_field('os_fund_contact_tel'); ?></p> <p class="xarxaprod-fund-contact-tel"><?php the_field('os_fund_contact_tel'); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
@ -55,7 +55,7 @@
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -68,34 +68,34 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );
?> ?>
</div><!-- .entry-content --> </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> <h6>Dirigit a</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?>
</div> </div>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>Tipus d'ajuda</h6> <h6>Tipus d'ajuda</h6>
<?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_source') ); ?>
</div> </div>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>Sectors</h6> <h6>Sectors</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
</div> </div>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>Termini</h6> <h6>Termini</h6>
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?> <?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_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> <li class="item-os_fund_apply_end">al <?php the_field('os_fund_apply_end'); ?> </li>
</ul> </ul>
@ -107,19 +107,19 @@
</div> </div>
<?php if( get_field('os_fund_web') ): ?> <?php if( get_field('os_fund_web') ): ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>+ Informació</h6> <h6>+ Informació</h6>
<p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p> <p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="ofisuport-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>Necessites assesorament?</h6> <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> <p><a href="<?php echo esc_url( home_url( '/consultoria/' ) ); ?>" class="button button-more button-ourservices">Oferim serveis de consultoria</a></p>
</div> </div>
</section> </section>
<footer class="entry-footer"> <footer class="entry-footer">
<?php ofisuport_entry_footer(); ?> <?php xarxaprod_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> --> </article><!-- #post-<?php the_ID(); ?> -->

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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"> <div class="entry-meta">
<?php <?php
ofisuport_posted_on(); xarxaprod_posted_on();
//ofisuport_posted_by(); //xarxaprod_posted_by();
?> ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php endif; ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php ofisuport_post_thumbnail(); ?> <?php xarxaprod_post_thumbnail(); ?>
<div class="entry-content"> <div class="entry-content">
<?php <?php
@ -37,7 +37,7 @@
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* 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( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -50,7 +50,7 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ofisuport' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );
@ -58,6 +58,6 @@
</div><!-- .entry-content --> </div><!-- .entry-content -->
<footer class="entry-footer"> <footer class="entry-footer">
<?php ofisuport_entry_footer(); ?> <?php xarxaprod_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> --> </article><!-- #post-<?php the_ID(); ?> -->

View File

@ -4,18 +4,18 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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"> <h3 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?> <?php the_title(); ?>
</a> </a>
</h3> </h3>
<?php if( get_field('os_funder_name') ): ?> <?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; ?> <?php endif; ?>
<section class="excerpt post-excerpt"> <section class="excerpt post-excerpt">
<?php the_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_source') ); ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?> <?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') ): ?> <?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>del <?php the_field('os_fund_apply_begin'); ?></li>
<li>al <?php the_field('os_fund_apply_end'); ?></li> <li>al <?php the_field('os_fund_apply_end'); ?></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_fund_apply_text') ): ?> <?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> <li class=""><?php the_field('os_fund_apply_text'); ?></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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. // Detect plugin. For use on Front End only.
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// check for plugin using plugin name // 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 //plugin is activated do
?> ?>
<header> <header>
<h2> <?php echo esc_html__('Destacats', 'ofisuport'); ?></h2> <h2> <?php echo esc_html__('Destacats', 'xarxaprod'); ?></h2>
</header> </header>
<main id="destacats" class="ofisuport-destacats ofisuport-featured"> <main id="destacats" class="xarxaprod-destacats xarxaprod-featured">
<?php <?php
// https://developer.wordpress.org/reference/functions/get_posts/ // https://developer.wordpress.org/reference/functions/get_posts/
// https://www.advancedcustomfields.com/resources/true-false/ // https://www.advancedcustomfields.com/resources/true-false/
$featured_query = new WP_Query( $featured_query = new WP_Query(
array( array(
'post_type' => array( 'post', 'ofisuport-ajut' ), 'post_type' => array( 'post', 'xarxaprod-ajut' ),
'posts_per_page' => '4', 'posts_per_page' => '4',
'meta_query' => array( 'meta_query' => array(
array( array(

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @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); $fields= get_field($fielditerate);
if( $fields ): if( $fields ):
?> ?>
<ul class="ofisuport-label item-<?php echo $fielditerate ?>"> <ul class="xarxaprod-label item-<?php echo $fielditerate ?>">
<?php foreach( $fields as $field ): ?> <?php foreach( $fields as $field ): ?>
<li> <li>
<?php echo $field['label']; ?> <?php echo $field['label']; ?>

View File

@ -4,7 +4,7 @@
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
* *
* @package Oficina_de_Suport_theme * @package Xarxaprod_theme
*/ */