updated queries and css for custom post types
This commit is contained in:
parent
6f41ee9d7d
commit
d65bfb35d3
|
@ -1886,18 +1886,17 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid: 1fr;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-content [class*="xxp_fund"] .filter,
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filtered-content [class*="xxp_convo"] .filter {
|
||||
display: none;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters section .filter {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .xarxaprod-filters .button-more {
|
||||
width: 100%;
|
||||
max-width: 11.7em;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@
|
|||
|
||||
get_header();
|
||||
?>
|
||||
<!-- archive-xarxaprod-ajut.php -->
|
||||
<!-- archive-xarxaprod-ajut-php -->
|
||||
<main id="primary" class="site-main">
|
||||
<?php
|
||||
// Detect plugin. For use on Front End only.
|
||||
|
@ -19,7 +19,7 @@ get_header();
|
|||
//plugin is activated do
|
||||
?>
|
||||
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-filtre-ajuts">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
|
|
|
@ -19,7 +19,8 @@ get_header();
|
|||
//plugin is activated do
|
||||
?>
|
||||
|
||||
<section id="filteredassociats" class="xarxaprod-filtered-associats xarxaprod-associats-filtrats">associat<aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats">
|
||||
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
|
||||
<aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-filtre-associats">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<?php xarxaprod_associats_filters_form(); // function defined in the plugin ?>
|
||||
<?php } //end if is_plugin_active ?>
|
||||
|
|
|
@ -19,7 +19,8 @@ get_header();
|
|||
//plugin is activated do
|
||||
?>
|
||||
|
||||
<section id="filteredconvos" class="xarxaprod-filtered-convos xarxaprod-convos-filtrats">convo<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos">
|
||||
<section id="filteredcall" class="xarxaprod-filtered-content xarxaprod-filtered-convos xarxaprod-convos-filtrats">
|
||||
<aside id="convosfilter" class="xarxaprod-filter-convos xarxaprod-filtre-convos">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<?php xarxaprod_convos_filters_form(); // function defined in the plugin ?>
|
||||
<?php } //end if is_plugin_active ?>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying the "associats" calls with search capabilities
|
||||
* The template for displaying the "associats" associats with search capabilities
|
||||
*
|
||||
* Template Name: Cercador associats
|
||||
*
|
||||
|
@ -14,6 +14,7 @@
|
|||
get_header();
|
||||
?>
|
||||
|
||||
<!-- page-templates associats-search-php -->
|
||||
<main id="primary" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
@ -35,9 +36,9 @@ get_header();
|
|||
|
||||
endif;
|
||||
?>
|
||||
<section id="filteredcalls" class="xarxaprod-filtered-content xarxaprod-filtered-calls xarxaprod-associats-filtrats">
|
||||
<section id="filteredassociats" class="xarxaprod-filtered-content xarxaprod-filtered-content xarxaprod-filtered-associats xarxaprod-associats-filtrats">
|
||||
|
||||
<aside id="callsfilter" class="xarxaprod-filter-calls xarxaprod-fitre-associats">
|
||||
<aside id="associatsfilter" class="xarxaprod-filter-associats xarxaprod-fitre-associats">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<?php xarxaprod_associats_filters_form(); // function defined in the plugin ?>
|
||||
<?php } //end if is_plugin_active ?>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<!-- page-templates convos-search-php -->
|
||||
<main id="primary" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
@ -35,7 +35,7 @@ get_header();
|
|||
|
||||
endif;
|
||||
?>
|
||||
<section id="filteredcalls" class="xarxaprod-filtered-content xarxaprod-filtered-calls xarxaprod-convos-filtrats">
|
||||
<section id="filteredcalls" class="xarxaprod-filtered-content xarxaprod-filtered-content xarxaprod-filtered-calls xarxaprod-convos-filtrats">
|
||||
|
||||
<aside id="callsfilter" class="xarxaprod-filter-calls xarxaprod-fitre-convos">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
get_header();
|
||||
?>
|
||||
|
||||
<!-- page-templates funds-search-php -->
|
||||
<main id="primary" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
|
|
@ -94,16 +94,20 @@
|
|||
*/
|
||||
.xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid: 1fr;
|
||||
[class*="xxp_fund"],[class*="xxp_convo"] {
|
||||
.filter {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
grid-template-columns: 1fr;
|
||||
//[class*="xxp_fund"],[class*="xxp_convo"],[class*="xxp_associat"],
|
||||
//.xarxaprod-filtered-fields {
|
||||
// .filter {
|
||||
// display: none;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
.xarxaprod-filters {
|
||||
section {
|
||||
margin: 1em 0;
|
||||
.filter {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.button-more {
|
||||
width: 100%;
|
||||
|
|
|
@ -20,7 +20,7 @@ get_header();
|
|||
<?php
|
||||
// check if is xarxaprod-ajut
|
||||
if ( get_post_type( get_the_ID() ) == 'xarxaprod-ajut'){ ?>
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<section id="filteredfunds" class="xarxaprod-filtered-content xarxaprod-filtered-funds xarxaprod-ajuts-filtrats">
|
||||
<aside id="fundsfilter" class="xarxaprod-filter-funds xarxaprod-fitre-ajuts">
|
||||
<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||
|
|
11
style.css
11
style.css
|
@ -1747,18 +1747,17 @@ textarea {
|
|||
*/
|
||||
.xarxaprod-filtered-content {
|
||||
display: grid;
|
||||
grid: 1fr;
|
||||
}
|
||||
|
||||
.xarxaprod-filtered-content [class*="xxp_fund"] .filter,
|
||||
.xarxaprod-filtered-content [class*="xxp_convo"] .filter {
|
||||
display: none;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.xarxaprod-filters section {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.xarxaprod-filters section .filter {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.xarxaprod-filters .button-more {
|
||||
width: 100%;
|
||||
max-width: 11.7em;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
?>
|
||||
<!-- /template-parts/content-xarxaprod-ajut.php -->
|
||||
<!-- template-parts content-xarxaprod-ajut-php -->
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
?>
|
||||
<!-- template-parts/content-xarxaprod-associat.php -->
|
||||
<!-- template-parts content-xarxaprod-associat-php -->
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
?>
|
||||
<!-- template-parts/content-xarxaprod-convo.php -->
|
||||
<!-- template-parts content-xarxaprod-convo-php -->
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
|
|
Loading…
Reference in New Issue