Compare commits
No commits in common. "9dfc4c4c8e4554a1dbfb9500923f8ca5f255e555" and "97d077b0c715cf9f97fc55e8e7af9decfeb9081c" have entirely different histories.
9dfc4c4c8e
...
97d077b0c7
|
@ -21,9 +21,20 @@ 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-filtre-ajuts">
|
<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 ?>
|
<script type="text/javascript">
|
||||||
<?php } //end if is_plugin_active ?>
|
<!-- https://stackoverflow.com/a/48314274 -->
|
||||||
|
(function($) {
|
||||||
|
$('.fund-filter').ready(function() {
|
||||||
|
$('.xarxaprod-titol-opcions').click(function() {
|
||||||
|
$(this).siblings(".filter").toggle();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})(jQuery);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||||
|
|
|
@ -127,26 +127,20 @@ require get_template_directory() . '/inc/widgets-register.php';
|
||||||
/**
|
/**
|
||||||
* Enqueue scripts and styles.
|
* Enqueue scripts and styles.
|
||||||
*/
|
*/
|
||||||
function xarxaprod_theme_scripts() {
|
function xarxaprod_scripts() {
|
||||||
wp_enqueue_style( 'xarxaprod-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( 'xarxaprod-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( 'xarxaprod-style', 'rtl', 'replace' );
|
wp_style_add_data( 'xarxaprod-style', 'rtl', 'replace' );
|
||||||
|
|
||||||
// https://stackoverflow.com/a/24994304
|
|
||||||
// deregister default jQuery included with Wordpress
|
|
||||||
//wp_deregister_script( 'jquery' );
|
|
||||||
// register our jQuery minified from theme directory
|
|
||||||
//wp_enqueue_script('jquery', get_template_directory_uri().'/js/jquery.min.js', array(),'3.7.1',true);
|
|
||||||
|
|
||||||
wp_enqueue_script( 'xarxaprod-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', 'xarxaprod_theme_scripts' );
|
add_action( 'wp_enqueue_scripts', 'xarxaprod_scripts' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implement the Custom Header feature.
|
* Implement the Custom Header feature.
|
||||||
|
@ -190,3 +184,9 @@ require get_template_directory() . '/inc/archive-title.php';
|
||||||
* Functions to add admin styles
|
* Functions to add admin styles
|
||||||
*/
|
*/
|
||||||
require get_template_directory() . '/inc/admin-style.php';
|
require get_template_directory() . '/inc/admin-style.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function to add filter in xarxaprod-ajut custom post
|
||||||
|
*/
|
||||||
|
// moved to plugin on 2023 01 05
|
||||||
|
//require get_template_directory() . '/inc/xarxaprod-ajut-filter.php';
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
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' );
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo site_url(); ?>" title="<?php echo get_bloginfo('name') . ' // ' . get_bloginfo('description'); ?>" class="custom-logo-link"><img class="custom-logo" src="<?php echo esc_url( $image[0] ); ?>" /></a>
|
<a href="https://xarxaprod.cat" title="Xarxa d’espais de procucció i creació de Catalunya" class="custom-logo-link"><img class="custom-logo" src="<?php echo esc_url( $image[0] ); ?>" /></a>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
if ( is_front_page() && is_home() ) :
|
if ( is_front_page() && is_home() ) :
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -37,11 +37,24 @@ 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( 'xarxaprod-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?>
|
||||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
|
||||||
<?php } //end if is_plugin_active ?>
|
<!-- https://stackoverflow.com/a/48314274 -->
|
||||||
</aside>
|
<script type="text/javascript">
|
||||||
|
(function($) {
|
||||||
|
$('.fund-filter').ready(function() {
|
||||||
|
$('.xarxaprod-titol-opcions').click(function() {
|
||||||
|
$(this).siblings(".filter").toggle();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})(jQuery);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
||||||
|
|
||||||
|
<?php } //end if is_plugin_active ?>
|
||||||
|
</aside>
|
||||||
|
|
||||||
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
|
||||||
|
|
||||||
|
|
16
search.php
16
search.php
|
@ -22,9 +22,19 @@ get_header();
|
||||||
if ( get_post_type( get_the_ID() ) == '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-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( 'xarxaprod-wp-plugin/xarxaprod-wp-plugin.php' ) ) { // if plugin active do?>
|
|
||||||
<?php xarxaprod_ajuts_filters_form(); // function defined in the plugin ?>
|
<script type="text/javascript">
|
||||||
<?php } //end if is_plugin_active ?>
|
<!-- https://stackoverflow.com/a/48314274 -->
|
||||||
|
(function($) {
|
||||||
|
$('.fund-filter').ready(function() {
|
||||||
|
$('.xarxaprod-titol-opcions').click(function() {
|
||||||
|
$(this).siblings(".filter").toggle();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})(jQuery);
|
||||||
|
</script>
|
||||||
|
<?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="xarxaprod-searched-query xarxaprod-search-faqs">
|
<section id="filteredsearch" class="xarxaprod-searched-query xarxaprod-search-faqs">
|
||||||
|
|
Loading…
Reference in New Issue