edited typo

This commit is contained in:
jorge-vitrubio 2024-01-10 12:06:34 +01:00
parent fe16f2640d
commit b7b6092988
34 changed files with 147 additions and 224 deletions

View File

@ -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( 'Oops! That page can&rsquo;t be found.', 'xarxarprod' ); ?></h1> <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'xarxaprod' ); ?></h1>
</header><!-- .page-header --> </header><!-- .page-header -->
<div class="page-content"> <div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'xarxarprod' ); ?></p> <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '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( 'Most Used Categories', 'xarxarprod' ); ?></h2> <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'xarxaprod' ); ?></h2>
<ul> <ul>
<?php <?php
wp_list_categories( wp_list_categories(
@ -45,7 +45,7 @@ get_header();
<?php <?php
/* translators: %1$s: smiley */ /* translators: %1$s: smiley */
$xarxaprod_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'xarxarprod' ), convert_smilies( ':)' ) ) . '</p>'; $xarxaprod_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'xarxaprod' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$xarxaprod_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

@ -16,7 +16,7 @@ Them for the Xarxaprod.cat WordPress website.
## Description ## Description
A WordPress theme for the Xarxarprod.cat A WordPress theme for the Xarxaprod.cat
## Installation ## Installation
@ -28,7 +28,7 @@ A WordPress theme for the Xarxarprod.cat
### Does this theme support any plugins? ### Does this theme support any plugins?
Xarxarprod theme includes support for Xarxarprod plugin. Xarxaprod theme includes support for Xarxaprod plugin.
## Changelog ## Changelog

View File

@ -11,23 +11,23 @@
.edit-post-visual-editor__content-area { .edit-post-visual-editor__content-area {
/* /*
Theme Name: Xarxarprod theme Theme Name: Xarxaprod theme
Theme URI: http://underscores.me/ Theme URI: http://underscores.me/
Author: jorge-vitrubio.net Author: jorge-vitrubio.net
Author URI: https://vitrubio.net Author URI: https://vitrubio.net
Description: theme for the Xarxarprod.cat Description: theme for the Xarxaprod.cat
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: xarxarprod Text Domain: xarxaprod
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.
Xarxarprod 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
@ -746,13 +746,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 .xarxarprod-label { .edit-post-visual-editor__content-area .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
.edit-post-visual-editor__content-area .xarxarprod-label li { .edit-post-visual-editor__content-area .xarxaprod-label li {
display: inline-block; display: inline-block;
margin: 0.1rem; margin: 0.1rem;
padding: 0 0.2rem; padding: 0 0.2rem;
@ -1162,8 +1162,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://xarxarprod.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://xarxarprod.cat"] { .edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"] {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: 1px solid #000; border-left: 1px solid #000;
} }
@ -1286,14 +1286,14 @@ Add your custom styles in this file so it is easier to update the theme.
justify-content: end; justify-content: end;
} }
.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://xarxarprod.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://xarxarprod.cat"] { .edit-post-visual-editor__content-area .main-navigation a[href^="https://xarxaprod.cat"] {
font-family: "din-bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: "din-bold", -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://xarxarprod.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://xarxarprod.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: "";
@ -1355,8 +1355,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://xarxarprod.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://xarxarprod.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;
} }

File diff suppressed because one or more lines are too long

View File

@ -32,13 +32,13 @@ if ( post_password_required() ) {
if ( '1' === $xarxaprod_comment_count ) { if ( '1' === $xarxaprod_comment_count ) {
printf( printf(
/* translators: 1: title. */ /* translators: 1: title. */
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'xarxarprod' ), 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;', $xarxaprod_comment_count, 'comments title', 'xarxarprod' ) ), 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( $xarxaprod_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.', 'xarxarprod' ); ?></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/xarxarprod.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

@ -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' ); ?>
<!--a href="<?php //echo esc_url( __( 'https://wordpress.org/', 'xarxarprod' ) ); ?>"> <!--a href="<?php //echo 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', 'xarxarprod' ), 'WordPress' ); //printf( esc_html__( 'Proudly powered by %s', 'xarxaprod' ), 'WordPress' );
?> ?>
</a--> </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.', 'xarxarprod' ), 'xarxarprod', '<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,6 +1,6 @@
<?php <?php
/** /**
* Xarxarprod 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/
* *
@ -23,10 +23,10 @@ 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 Xarxarprod theme, use a find and replace * If you're building a theme based on Xarxaprod theme, use a find and replace
* to change 'xarxarprod' 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( 'xarxarprod', 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 xarxaprod_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', 'xarxarprod' ), 'menu-1' => esc_html__( 'Primary', 'xarxaprod' ),
'menu-2' => esc_html__( 'Secondary', 'xarxarprod' ), 'menu-2' => esc_html__( 'Secondary', 'xarxaprod' ),
) )
); );

View File

@ -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', 'xarxarprod' ); ?></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">
@ -47,7 +47,7 @@
</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"><?php esc_html_e( 'Menu XarxaProd', 'xarxarprod' ); ?></button> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Menu XarxaProd', 'xarxaprod' ); ?></button>
<?php <?php
wp_nav_menu( wp_nav_menu(
array( array(

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Xarxarprod theme Theme Customizer * Xarxaprod theme Theme Customizer
* *
* @package Xarxaprod_theme * @package Xarxaprod_theme
*/ */

View File

@ -38,14 +38,14 @@ add_action( 'wp_head', 'xarxaprod_pingback_header' );
/** /**
* Detect if the Xarxarprod "xarxarprod" plugin is active * Detect if the Xarxaprod "xarxaprod" plugin is active
*/ */
function xarxaprod_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( 'xarxarprod-wp-plugin/xarxaprod-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

View File

@ -27,7 +27,7 @@ if ( ! function_exists( 'xarxaprod_posted_on' ) ) :
$posted_on = sprintf( $posted_on = sprintf(
/* translators: %s: post date. */ /* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', 'xarxarprod' ), 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>'
); );
@ -43,7 +43,7 @@ if ( ! function_exists( 'xarxaprod_posted_by' ) ) :
function xarxaprod_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', 'xarxarprod' ), 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>'
); );
@ -60,17 +60,17 @@ if ( ! function_exists( '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__( ', ', 'xarxarprod' ) ); $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', 'xarxarprod' ) . '</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', 'xarxarprod' ) ); $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', 'xarxarprod' ) . '</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( 'xarxaprod_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>', 'xarxarprod' ), __( '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( 'xarxaprod_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>', 'xarxarprod' ), __( 'Edit <span class="screen-reader-text">%s</span>', 'xarxaprod' ),
array( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),

View File

@ -7,9 +7,9 @@
function xarxaprod_widgets_init() { function xarxaprod_widgets_init() {
register_sidebar( register_sidebar(
array( array(
'name' => esc_html__( 'Front Page - principal', 'xarxarprod' ), 'name' => esc_html__( 'Front Page - principal', 'xarxaprod' ),
'id' => 'front-page-widgets', 'id' => 'front-page-widgets',
'description' => esc_html__( 'Add widgets here.', 'xarxarprod' ), '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', 'xarxarprod' ), 'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'xarxaprod' ),
'id' => 'sidebar-funds', 'id' => 'sidebar-funds',
'description' => esc_html__( 'Add widgets here.', 'xarxarprod' ), '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', 'xarxarprod' ), 'name' => esc_html__( 'Footer - Peu', 'xarxaprod' ),
'id' => 'footer-widgets', 'id' => 'footer-widgets',
'description' => esc_html__( 'Add widgets here.', 'xarxarprod' ), '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">',

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: Xarxarprod 1.0.0\n" "Project-Id-Version: Xarxaprod 1.0.0\n"
"Report-Msgid-Bugs-To: https://git.hangar.org/xarxaprod/xarxarprod-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 "Xarxarprod" msgid "Xarxaprod"
msgstr "" msgstr ""
#. Theme URI of the theme #. Theme URI of the theme
msgid "https://git.hangar.org/xarxaprod/xarxarprod-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 Xarxarprod.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 ../Xarxarprod-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

@ -38,7 +38,7 @@ get_header();
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats"> <section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-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( 'xarxarprod-wp-plugin/xarxaprod-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?>
<nav class="sidebar fund-filter"> <nav class="sidebar fund-filter">
</nav> </nav>

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="xarxarprod"/> <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="xarxarprod" /> <property name="prefixes" type="array" value="xarxaprod" />
</properties> </properties>
</rule> </rule>

View File

@ -1,4 +1,4 @@
=== Xarxarprod theme === === Xarxaprod theme ===
Contributors: vitrubio.net Contributors: vitrubio.net
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
@ -10,11 +10,11 @@ Stable tag: 1.0.0
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.en.html License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
A starter theme called Xarxarprod theme. A starter theme called Xarxaprod theme.
== Description == == Description ==
theme for the Xarxarprod.cat theme for the Xarxaprod.cat
== Installation == == Installation ==
@ -26,7 +26,7 @@ theme for the Xarxarprod.cat
= Does this theme support any plugins? = = Does this theme support any plugins? =
Xarxarprod theme includes support for Xarxarprod plugin. Xarxaprod theme includes support for Xarxaprod plugin.
== Changelog == == Changelog ==

View File

@ -27,7 +27,7 @@ dd {
padding: 0; padding: 0;
} }
.xarxarprod-label { .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;

View File

@ -61,7 +61,7 @@
margin: 1rem 0 0.5rem 0; margin: 1rem 0 0.5rem 0;
} }
} }
.xarxarprod-label { .xarxaprod-label {
} }
.xarxaprod-funder-name, .xarxaprod-funder-name,
.xarxaprod-fund-contact-name, .xarxaprod-fund-contact-name,

View File

@ -89,8 +89,8 @@
.main-navigation { .main-navigation {
a[href^="http://localhost"], a[href^="http://localhost"],
a[href^="http://xarxarprod.cat"], a[href^="http://xarxaprod.cat"],
a[href^="https://xarxarprod.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;
@ -225,15 +225,15 @@
justify-content: end; justify-content: end;
} }
a[href^="http://localhost"], a[href^="http://localhost"],
a[href^="http://xarxarprod.cat"], a[href^="http://xarxaprod.cat"],
a[href^="https://xarxarprod.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://xarxarprod.cat"]::after, a[href^="http://xarxaprod.cat"]::after,
a[href^="https://xarxarprod.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: "";
@ -298,8 +298,8 @@
.main-navigation { .main-navigation {
padding-bottom: 0; padding-bottom: 0;
a[href^="http://localhost"]::after, a[href^="http://localhost"]::after,
a[href^="http://xarxarprod.cat"]::after, a[href^="http://xarxaprod.cat"]::after,
a[href^="https://xarxarprod.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

@ -1,22 +1,22 @@
/* /*
Theme Name: Xarxarprod theme Theme Name: Xarxaprod theme
Theme URI: http://underscores.me/ Theme URI: http://underscores.me/
Author: jorge-vitrubio.net Author: jorge-vitrubio.net
Author URI: https://vitrubio.net Author URI: https://vitrubio.net
Description: theme for the Xarxarprod.cat Description: theme for the Xarxaprod.cat
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: xarxarprod Text Domain: xarxaprod
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.
Xarxarprod 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

View File

@ -18,7 +18,7 @@ get_header();
<h1 class="page-title"> <h1 class="page-title">
<?php <?php
/* translators: %s: search query. */ /* translators: %s: search query. */
printf( esc_html__( 'Search Results for: %s', 'xarxarprod' ), '<span>' . get_search_query() . '</span>' ); printf( esc_html__( 'Search Results for: %s', 'xarxaprod' ), '<span>' . get_search_query() . '</span>' );
?> ?>
</h1> </h1>
</header><!-- .page-header --> </header><!-- .page-header -->

View File

@ -20,8 +20,8 @@ get_header();
//the_post_navigation( //the_post_navigation(
// array( // array(
// 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Anterior:', 'xarxarprod' ) . '</span> <span class="nav-title">%title</span>', // 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Anterior:', 'xarxaprod' ) . '</span> <span class="nav-title">%title</span>',
// 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Següent:', 'xarxarprod' ) . '</span> <span class="nav-title">%title</span>', // 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Següent:', 'xarxaprod' ) . '</span> <span class="nav-title">%title</span>',
// ) // )
//); //);

View File

@ -1,21 +1,21 @@
/*! /*!
Theme Name: Xarxarprod 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>Xarxarprod 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: Xarxarprod 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.
Xarxarprod 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

View File

@ -633,13 +633,13 @@ dd {
padding: 0; padding: 0;
} }
.xarxaprod-label { article:not(.type-post) .xarxaprod-label {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
.xarxaprod-label li { article:not(.type-post) .xarxaprod-label li {
display: inline-block; display: inline-block;
margin: 0.1rem; margin: 0.1rem;
padding: 0 0.2rem; padding: 0 0.2rem;
@ -647,34 +647,71 @@ dd {
background-color: #000; background-color: #000;
font-family: var(--font-xarxaprod); font-family: var(--font-xarxaprod);
font-size: 0.7rem; font-size: 0.7rem;
/*text-transform: uppercase;*/ text-transform: uppercase;
} }
.item-os_fund_target li { article:not(.type-post) .item-os_fund_target li {
background-color: #ff8d76; background-color: #ff8d76;
} }
.item-os_fund_source li { article:not(.type-post) .item-os_fund_source li {
background-color: #5bcee8; background-color: #5bcee8;
} }
.item-os_fund_field li { article:not(.type-post) .item-os_fund_field li {
background-color: #f6cc4c; background-color: #f6cc4c;
} }
.item-os_fund_dates li { article:not(.type-post) .item-os_fund_dates li {
background-color: #69ed82; background-color: #69ed82;
} }
.item-os_fund_call { article:not(.type-post) .item-os_fund_call {
display: block; display: block;
margin: 0.2rem 0.1rem; margin: 0.2rem 0.1rem;
} }
.item-os_fund_call li { article:not(.type-post) .item-os_fund_call li {
font-size: 1.2rem; font-size: 1.2rem;
} }
.xarxaprod-faqs-types ul {
margin: 0;
}
.xarxaprod-faqs-types .cat-item {
display: inline-block;
margin: 0.1em 0.5em 0.1em 0;
padding: 0.2em 0.2em 0 0.2em;
color: #fff;
background-color: #000;
font-family: din-black, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1.1rem;
text-transform: uppercase;
}
.xarxaprod-faqs-types .current-cat {
background-color: #ff8d76;
}
.xarxaprod-faqs-types a {
color: #fff;
text-decoration: none;
}
.xarxaprod-faqs-types a:visited,
.xarxaprod-faqs-types a:hover {
color: #fff;
}
.single-xarxaprod-ajut article:not(.type-post) .ofisuport-label li {
font-size: 1.1rem;
}
.single-xarxaprod-ajut article:not(.type-post) .item-os_fund_apply_text {
font-size: 1.1rem;
}
/* Make sure embeds and iframes fit their containers. */ /* Make sure embeds and iframes fit their containers. */
embed, embed,
iframe, iframe,

View File

@ -11,7 +11,7 @@
<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( 'Nothing Found', 'xarxarprod' ); ?></h1> <h1 class="page-title"><?php esc_html_e( 'Nothing Found', '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>.', 'xarxarprod' ), __( '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( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'xarxarprod' ); ?></p> <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'xarxaprod' ); ?></p>
<?php <?php
get_search_form(); get_search_form();
else : else :
?> ?>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'xarxarprod' ); ?></p> <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'xarxaprod' ); ?></p>
<?php <?php
get_search_form(); get_search_form();

View File

@ -1,114 +0,0 @@
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Xarxaprod_theme
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
</header><!-- .entry-header -->
<section class="xarxaprod-fund-info-contact-fields">
<div class="xarxaprod-fund-info-field">
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
</div>
<?php if( get_field('os_funder_name') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></p>
</div>
<?php endif; ?>
<?php if( get_field('os_fund_contact_name') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-contact-name"><?php the_field('os_fund_contact_name'); ?></p>
</div>
<?php endif; ?>
<?php if( get_field('os_fund_web') ): ?>
<div class="xarxaprod-fund-info-field">
<p class="xarxaprod-fund-web"><a href="<?php the_field('os_fund_web'); ?>"><?php the_field('os_fund_web'); ?></a></p>
</div>
<?php endif; ?>
</section>
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxarprod' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxarprod' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<section class="xarxaprod-fund-info-fields">
<div class="xarxaprod-fund-info-field">
<h6>Dirigit a</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_target') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
<h6>Tipus d'ajuda</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_source') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
<h6>Sectors</h6>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_field') ); ?>
</div>
<div class="xarxaprod-fund-info-field">
<h6>Termini</h6>
<?php if( get_field('os_fund_apply_begin') || get_field('os_fund_apply_end') ): ?>
<ul class="xarxarprod-label item-os_fund_dates">
<li> <?php the_field('os_fund_apply_begin'); ?> </li>
<li> <?php the_field('os_fund_apply_end'); ?> </li>
</ul>
<?php endif; ?>
</div>
<?php if( get_field('os_fund_web') ): ?>
<div class="xarxaprod-fund-info-field">
<h6>+ Informació</h6>
<p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p>
</div>
<?php endif; ?>
<div class="xarxaprod-fund-info-field">
<h6>Necessites assesorament?</h6>
<p><a href="<?php echo esc_url( home_url( '/consultoria/' ) ); ?>" class="button button-more button-ourservices">Oferim serveis de consultoria</a></p>
</div>
</section>
<footer class="entry-footer">
<?php xarxaprod_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->

View File

@ -22,7 +22,7 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxarprod' ), '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>', 'xarxarprod' ), __( 'Edit <span class="screen-reader-text">%s</span>', 'xarxaprod' ),
array( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),

View File

@ -31,7 +31,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>', 'xarxarprod' ), __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'xarxaprod' ),
array( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -44,7 +44,7 @@
wp_link_pages( wp_link_pages(
array( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxarprod' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );

View File

@ -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>', 'xarxarprod' ), __( '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:', 'xarxarprod' ), 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'xarxaprod' ),
'after' => '</div>', 'after' => '</div>',
) )
); );

View File

@ -24,7 +24,7 @@
<?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') ); ?>
<?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') ); ?>
<ul class="xarxarprod-label item-os_fund_dates"> <ul class="xarxaprod-label item-os_fund_dates">
<li> <?php the_field('os_fund_apply_begin'); ?> </li> <li> <?php the_field('os_fund_apply_begin'); ?> </li>
<li> <?php the_field('os_fund_apply_end'); ?> </li> <li> <?php the_field('os_fund_apply_end'); ?> </li>
</ul> </ul>

View File

@ -14,11 +14,11 @@
// 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( 'xarxarprod-wp-plugin/xarxaprod-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', 'xarxarprod'); ?></h2> <h2> <?php echo esc_html__('Destacats', 'xarxaprod'); ?></h2>
</header> </header>
<main id="destacats" class="xarxaprod-destacats xarxaprod-featured"> <main id="destacats" class="xarxaprod-destacats xarxaprod-featured">

View File

@ -20,7 +20,7 @@
$fields= get_field($fielditerate); $fields= get_field($fielditerate);
if( $fields ): if( $fields ):
?> ?>
<ul class="xarxarprod-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']; ?>