Forum Replies Created

Viewing 40 posts - 41 through 80 (of 289 total)
  • Author
  • in reply to: how make a single-my-slug-name.php #156911
     wilfriedMarseille
    Participant

    Sorry

    In reality I just copy the single.php and i rename it with my single-slug-name.php
    And i have to remake my own template directly without change this famous line.

    But i have a second question.

    In my custom post type I put some Advanced custom Fields.
    I try to show it in front end but i don’t get it.

    I have the <h1>Tototot</h1>
    But with the
    <h2><?php if (get_field(‘logiciel’)) ?></h2>
    <h2><?php if (get_field(‘lien_youtube’)) ?></h2>

    I don’t see the field in front end.

    I let you the code and the link to see the demo is :

  • http://www.zikrea.com/telechargements/dgf/
  • COPY CODE
    <?php
    /**
     * The Template for displaying all single posts
     *
     * @package WordPress
     * @subpackage Kleo
     * @since Kleo 1.0
     */
    
    get_header(); ?>
    
    <?php
    //Specific class for post listing */
    if ( kleo_postmeta_enabled() ) {
    	$meta_status = ' with-meta';
    	if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) {
    		$meta_status .= ' inline-meta';
    	}
    	add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) );
    }
    
    /* Related posts logic */
    $related = sq_option( 'related_posts', 1 );
    if ( ! is_singular('post') ) {
        $related = sq_option( 'related_custom_posts', 0 );
    }
    //post setting
    if(get_cfield( 'related_posts') != '' ) {
    	$related = get_cfield( 'related_posts' );
    }
    ?>
    
    <?php get_template_part( 'page-parts/general-title-section' ); ?>
    
    <?php get_template_part( 'page-parts/general-before-wrap' );?>
    
    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    
        <?php get_template_part( 'content', get_post_format() ); ?>
        <h1>totopto</h1>
    
        <h2><?php if (get_field('logiciel')) ?></h2>
        <h2><?php if (get_field('lien_youtube')) ?></h2>
        
            <!-- Begin Comments -->
            <div class="aligncenter">
    			<h4 class="titleComments">Une question, une remarque, 3avis ?</h4>
    			<h4>Laissez nous un commentaire.</h4>
    		</div>
        <?php
    	if ( comments_open() || get_comments_number() ) {
    		comments_template( '', true );
    	}
    	?>
        <!-- End Comments -->
    
    		<?php get_template_part( 'page-parts/posts-social-share' ); ?>
    
    		<?php 
    		if( $related == 1 ) {
    			get_template_part( 'page-parts/posts-related' );
    		}
    		?>
    
    		<?php
            if ( sq_option( 'post_navigation', 1 ) == 1 ) :
                // Previous/next post navigation.
                kleo_post_nav();
            endif;
    		?>
    
    <?php endwhile; ?>
    
    <?php get_template_part('page-parts/general-after-wrap');?>
    
    <?php get_footer(); ?>

    If you love Ableton check my blog :
    www.zikrea.com

in reply to: how make a single-my-slug-name.php #156910
 wilfriedMarseille
Participant

single.telechargement.php

COPY CODE
<?php
/**
 * The Template for displaying all single posts
 *
 * @package WordPress
 * @subpackage Kleo
 * @since Kleo 1.0
 */

get_header(); ?>

<?php
//Specific class for post listing */
if ( kleo_postmeta_enabled() ) {
	$meta_status = ' with-meta';
	if ( sq_option( 'blog_single_meta', 'left' ) == 'inline' ) {
		$meta_status .= ' inline-meta';
	}
	add_filter( 'kleo_main_template_classes', create_function( '$cls','$cls .= "' . $meta_status . '"; return $cls;' ) );
}

/* Related posts logic */
$related = sq_option( 'related_posts', 1 );
if ( ! is_singular('post') ) {
    $related = sq_option( 'related_custom_posts', 0 );
}
//post setting
if(get_cfield( 'related_posts') != '' ) {
	$related = get_cfield( 'related_posts' );
}
?>

<?php get_template_part( 'page-parts/general-title-section' ); ?>

<?php get_template_part( 'page-parts/general-before-wrap' );?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'content', get_post_format() ); ?>

        <!-- Begin Comments -->
        <div class="aligncenter">
			<h4 class="titleComments">Une question, une remarque, un avis ?</h4>
			<h4>Laissez nous un commentaire.</h4>
		</div>
    <?php
	if ( comments_open() || get_comments_number() ) {
		comments_template( '', true );
	}
	?>
    <!-- End Comments -->

		<?php get_template_part( 'page-parts/posts-social-share' ); ?>

		<?php 
		if( $related == 1 ) {
			get_template_part( 'page-parts/posts-related' );
		}
		?>

		<?php
        if ( sq_option( 'post_navigation', 1 ) == 1 ) :
            // Previous/next post navigation.
            kleo_post_nav();
        endif;
		?>

<?php endwhile; ?>

<?php get_template_part('page-parts/general-after-wrap');?>

<?php get_footer(); ?>

If you love Ableton check my blog :
www.zikrea.com

in reply to: How add a page template #156904
 wilfriedMarseille
Participant
COPY CODE
‘<?php

/**

Template Name : TELECHARGEMENT

*/

 

get_header(); ?>

 

<?php get_template_part(‘page-parts/general-title-section’); ?>

 

<?php get_template_part(‘page-parts/general-before-wrap’); ?>

 

<?php if ( have_posts() ) : ?>

<?php

// Start the Loop.

while ( have_posts() ) : the_post();

?>

 

<?php

/*

* Include the post format-specific template for the content. If you want to

* use this in a child theme, then include a file called called content-___.php

* (where ___ is the post format) and that will be used instead.

*/

get_template_part( ‘content-toto’ );

?>

 

<?php get_template_part( ‘page-parts/posts-social-share’ ); ?>

 

<?php if ( sq_option( ‘page_comments’, 0 ) == 1 ): ?>

 

<!– Begin Comments –>

<?php

if ( comments_open() || get_comments_number() ) {

comments_template( ”, true );

} ?>

<!– End Comments –>

 

<?php endif; ?>

 

 

<?php endwhile; ?>

 

<?php endif; ?>

 

<?php get_template_part(‘page-parts/general-after-wrap’); ?>

 

<?php get_footer(); ?>’

If you love Ableton check my blog :
www.zikrea.com

in reply to: How remove a taxonomy from a custom post type #156525
 wilfriedMarseille
Participant

Yes the plugin get this option.
But is not working ….
I try to get support from the plugin, but i don’t get answer :/
Maybe manually …
If you know where can i search in the codex it’s cool.

If you love Ableton check my blog :
www.zikrea.com

in reply to: Can we male calcul with Go Price Tables #156524
 wilfriedMarseille
Participant

It’s okay.
I make that with gravityForms.

If you love Ableton check my blog :
www.zikrea.com

in reply to: How import old post in custom post type #155967
 wilfriedMarseille
Participant

Hello it’s okay I resolve it with Plugin CPT UI

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About register demo page and BP profile search #149711
 wilfriedMarseille
Participant
This reply has been set as private.
in reply to: Modificate Lib > custom post type in child theme #149585
 wilfriedMarseille
Participant

Hello,

I Try to find a solution to add a custom post type.
Do you know a good Way ?

I would like add post for tutorial with softawre and level in taxomony

And if possible transfert post – category tuto in this CPT

Add i would like add an other CPT name instrument with type brand and model in taxomony

Do you know a good way for make that ?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About Multi Site Installation #149484
 wilfriedMarseille
Participant

Ok thanks

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About register demo page and BP profile search #149453
 wilfriedMarseille
Participant

Hello,

I will imaginate maybe get directly acces to te form and change label.
But i don’t know how can i do that so i try your solution but i got problem …

I try to go in :
WP Admin – Tools – Manage translations But i don’t fund it

So ( my setting is already on Farnçais languages) and i go on :
WP Admin – LocoTranslate – theme
and i’m here ( image upload ) and i click diretly on synch But i got always the problem.
I will try the same way but select plugin gravity form or no ?
Or maybe you know how add a string ?

But i will preffer If you know a solution to enter in code and modificate label name

If you got a simple Way Like edit this file to modificate/add function at the home-register-page
To change my label Form and change the rediriction

If you got again a simple Way Like edit/add this file to modificate/add function at the confirmation-regiter page

To add a rediriction page in the confirmation page. And when i will make that i could add a redirection at the redirection confirmation page.

If not,
I try loco translte, i going to read documentation tommorow

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About Multi Site Installation #149452
 wilfriedMarseille
Participant

Hello,

Yes is true sorry, i’m like a ADHD who discovery Wodpress. I got a lot of stupid question …
Actually i’m in Codex everyday.
I search the most economic way for my businnes, but i found WordPress and Kleo so fantastic and i would like keep contact with your team !!!

I got proposition let me know if is possible.

For me the Best it will be to get a “prenium forum” adapt with your planing for a numbers of hours or other solution may be is a good idea for your businness to add a prenium forum or a E learning Website connect With Kleo for WordPress Lesson.
But that not the question.

Just if i can get some hours of prenium support with a question list.

To get information like :

I want do it :
Whats the Way to find which file i have to modificate/add function in php
And in wich File i have to add the function to edit the template or template of template.

Or

Ffr make this functon Do you think that’s code is the good Way ? ( in Php or Ajax Jason )

I actually in studying with a WordPress Book.
My English is not really famous.
But I think than I could be make a lot of things with Kleo if i can get some hours of prenium support.

I could pay for this, if is possible give me your best and most economic solution

My project is E-learning connect with a community and association for finance events in Creative Numeric Art.
So i have to start network, and when my businnes going to ride on you’re will be like my mentor partner if is useful for your business, network…

🙂 ?.?.?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About Multi Site Installation #149151
 wilfriedMarseille
Participant

Hello,
Thanks you for your information. I just put a subdomain test to remake a second version of the main domain.

And i’m develop my own heme to improve my PHP language so maybe it will il be more economic than use My own theme for subdomain.

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About Multi Site Installation #148294
 wilfriedMarseille
Participant

thanks you

I remake a test with a new installatioon in a subdomain where i import my css, media, category and post. And where i will make a redirection in the main domain to use it like main domain

And I re-install Just plugin whose i need, because i make some mistake when i started it on my first installation. ( I had install itheme security, after i was a bug so i choose Vanguard, but some mistake stay here …. )

So in reality I hesitate between make a subdomain to remake my website and import just media, css, category, page and post.

Or make my actually website in a multiSite.
Because maybe the problem was only in the htacces with itheme security installation than i used when i started with kleo. And i have t modoficate it like you say me in another post.

Juste one question
I don’t find the devloper license for use theme in unlimited website, or 3 website with one license like i saw when i started with kleo. You delete option, or you make a bad search ?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question About Multi Site Installation #148062
 wilfriedMarseille
Participant

I mean turn my site into a multisite and use theme in each subdomain

If you love Ableton check my blog :
www.zikrea.com

in reply to: i need your advice for make a subdomain #147903
 wilfriedMarseille
Participant

Ok thanks 🙂

If you love Ableton check my blog :
www.zikrea.com

in reply to: i need your advice for make a subdomain #147829
 wilfriedMarseille
Participant

Ok thanks.

So i will make my test, and after i will took a new license.
And if the project work good, i willtake the unlimited license, because the ideae is than an user can make his subdomain to may are selected to be vendor in the main domain crew.

Is an ambitious project so i need to make a team.

When all will be okay, could i work wih the kleo team member to configure the website with me and get avdvancer advice ?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Authorsation problem. #147768
 wilfriedMarseille
Participant
This reply has been set as private.
in reply to: i need your advice for make a subdomain #147688
 wilfriedMarseille
Participant

hello,

thanks but how can i assign the ticket for higher support.
May be you did it ?
Because my name is will and i don’t know if you talk on futur on about me …. :-/

My english is bad sorry:/

If you love Ableton check my blog :
www.zikrea.com

in reply to: Authorsation problem. #147554
 wilfriedMarseille
Participant

Hello,
So i contactmy host provider and h found a solution.
I have to rename my htacces. And can use my export tools.
So the problem is from this file.
But i don’t know which line i need to change.
If you have an issue i lisen to you.

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #147135
 wilfriedMarseille
Participant

Hi

I found the solution in the dashboard -_-

Juste because i select profil page in homepageredirect in theme options.

So all is Good :DDDD

PS I let you a pic for show you the solution

If you love Ableton check my blog :
www.zikrea.com

Attachments:
You must be logged in to view attached files.
in reply to: A bad redirictiono when i connect my profil on my blog #147018
 wilfriedMarseille
Participant

Ok,
I don’t get again the solution i try to find it i let you know when i found it.
Thanks you

If you love Ableton check my blog :
www.zikrea.com

in reply to: Big Bug since my WordPress Update … #147015
 wilfriedMarseille
Participant

All is good thanks ^^

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question about Install Service #146851
 wilfriedMarseille
Participant

okay, note in fav’

thanks’

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question about Install Service #146804
 wilfriedMarseille
Participant

Yes for the CSS is okay. Thanks.

And for the rest, with a installation service can we get a prenium support for make what i want or is just for install a newsite. And not for re install the theme with a better optimisation ?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Big Bug since my WordPress Update … #146755
 wilfriedMarseille
Participant

Hello,

My blog is become Good.
I don’t have the problem actually.

Are you done something ?

If you love Ableton check my blog :
www.zikrea.com

in reply to: Question about Install Service #146752
 wilfriedMarseille
Participant

ok thanks

If you love Ableton check my blog :
www.zikrea.com

in reply to: Big Bug since my WordPress Update … #146632
 wilfriedMarseille
Participant

Hello

I’m sorry but CSS is not Fine.

Check My Pic :From the dashboard RaleWay is select , i got open Sans ….

Blue Color is select for background navbar and is White ….

And for the update, i had make all update when i ask question.

And the problem is come when i update WordPress.

And i had make extension update too !!!

If you love Ableton check my blog :
www.zikrea.com

Attachments:
You must be logged in to view attached files.
in reply to: A bad redirictiono when i connect my profil on my blog #146556
 wilfriedMarseille
Participant

I open a new ticket ta ask info about install service.

Thanks you.

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146550
 wilfriedMarseille
Participant

Hello,
So you don’t know why my theme is in bug actually ?

An with the install service how we say pre sales question ?
Because i know how install WordPress, import demo and all the service.

But i search some one who can debug my installation. ( Make a good back up, keep all my post and design, and re instal the theme fr a best optimisation. And get a good support for develop some basic function like different design for the different category post. )

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146549
 wilfriedMarseille
Participant

Ok thanks but for the CSS bug you don’t have solution ?
Because i got it just after a wordpress update …

If you love Ableton check my blog :
www.zikrea.com

in reply to: Big Bug since my WordPress Update … #146427
 wilfriedMarseille
Participant
This reply has been set as private.
in reply to: Big Bug since my WordPress Update … #146423
 wilfriedMarseille
Participant
This reply has been set as private.
in reply to: How say for this category you put this slider. #146323
 wilfriedMarseille
Participant

Ok thanks.
I’m making my own theme for improve my php.

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146322
 wilfriedMarseille
Participant

Hello,
Only function.php is edit on my child theme.
And i don’t think the bug is from this script.
May be do you have a prenium support ? To “Re-install” my blog together. Because i got a lot of probleme actually …

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146321
 wilfriedMarseille
Participant
COPY CODE
<?php
/**
 * @package WordPress
 * @subpackage Kleo
 * @author SeventhQueen <themesupport@seventhqueen.com>
 * @since Kleo 1.0
 */

/**
 * Kleo Child Theme Functions
 * Add custom code below
*/ 

/*Ajouter image sous le menu*//*
add_action('kleo_before_content','my_header_image');
function my_header_image() {
    echo '<img class="banner" src="http://www.zikrea.com/wp-content/uploads/2015/10/Un_blog_mao_associatifOK.jpg" />';
}*/

/*Ajouter slider en bas d'un article*/
/*
function KleoAddSlideUnderPosts( $content ) {
 
    if( is_single() ) {
 
        $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]');
        $content .= $revslidershortcode;
    }
 
    return $content;
 
}
add_filter('the_content', 'KleoAddSlideUnderPosts');
*/

/*Ajouter slider endessous le menu*/
function KleoAddSlideUnderPosts( $content ) {
    if( is_single() ) {
        $revslidershortcode = do_shortcode('[rev_slider alias="acc3"]');
        $content = $revslidershortcode . $content;
    }
    return $content;
}
add_filter('the_content', 'KleoAddSlideUnderPosts');

/*Supprimer l'icone des thumbnails*/
add_action( 'after_setup_theme', 'change_hover_element', 10 );
 
function change_hover_element() {
    global $kleo_config;
    $kleo_config['image_overlay'] = '<span class="hover-element"><i class="equalizer"></i></span>';
 
}

/*Function metadonné : modification auteur*/
if ( ! function_exists( 'kleo_entry_meta' ) ) :
    /**
     * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
     * Create your own kleo_entry_meta() to override in a child theme.
     * @since 1.0
     */
    function kleo_entry_meta( $echo = true, $att = array() ) {

        global $kleo_config;
        $meta_list = array();
        $author_links = '';
        $meta_elements =  sq_option( 'blog_meta_elements', $kleo_config['blog_meta_defaults'] );

        // Translators: used between list items, there is a space after the comma.
        if ( in_array( 'categories', $meta_elements ) ) {
            $categories_list = get_the_category_list(__(', ', 'kleo_framework'));
        }

        // Translators: used between list items, there is a space after the comma.
        if ( in_array('tags', $meta_elements ) ) {
            $tag_list = get_the_tag_list('', __(', ', 'kleo_framework'));
        }

        $date = sprintf( '<a href="%1$s" rel="bookmark" class="post-time">' .
            '<time class="entry-date" datetime="%2$s">%3$s</time>' .
            '<time class="modify-date hide hidden updated" datetime="%4$s">%5$s</time>' .
            '</a>',
            esc_url( get_permalink() ),
            esc_attr( get_the_date( 'c' ) ),
            esc_html( get_the_date() ),
            esc_html( get_the_modified_date( 'c' ) ),
            esc_html( get_the_modified_date() )
        );

        if ( is_array( $meta_elements ) && !empty( $meta_elements ) ) {

            if ( in_array( 'author_link', $meta_elements ) || in_array( 'avatar', $meta_elements ) ) {

                /* If buddypress is active then create a link to Buddypress profile instead */
                if (function_exists( 'bp_is_active' ) ) {
                    $author_link = esc_url( bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) );
                    $author_title = esc_attr( sprintf( __( 'View %s\'s profile', 'kleo_framework' ), get_the_author() ) );
                } else {
                    $author_link = esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );
                    $author_title = esc_attr( sprintf( __( 'View all POSTS by %s', 'kleo_framework' ), get_the_author() ) );
                }

                $author = sprintf( '<a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s %4$s</a>',
                    $author_link,
                    $author_title,
                    in_array( 'avatar', $meta_elements ) ? get_avatar( get_the_author_meta( 'ID' ), 50) : '',
                    in_array( 'author_link', $meta_elements ) ? '<span class="author-name">' .'Auteur : '. get_the_author() . '</span>' : ''
                );

                $meta_list[] = '<small class="meta-author author vcard">' . $author . '</small>';
            }

            if ( function_exists( 'bp_is_active' ) ) {
                if ( in_array( 'profile', $meta_elements ) ) {
                    $author_links .= '<a href="' . bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) . '">' .
                        '<i class="icon-user-1 hover-tip" ' .
                        'data-original-title="' . esc_attr(sprintf(__('View profile', 'kleo_framework'), get_the_author())) . '"' .
                        'data-toggle="tooltip"' .
                        'data-placement="top"></i>' .
                        '</a>';
                }

                if ( bp_is_active( 'messages' ) ) {
                    if ( in_array( 'message', $meta_elements ) ) {
                        $author_links .= '<a href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( get_the_author_meta( 'ID' ) ) ) . '">' .
                            '<i class="icon-mail hover-tip" ' .
                            'data-original-title="' . esc_attr(sprintf(__('Contact %s', 'kleo_framework'), get_the_author())) . '" ' .
                            'data-toggle="tooltip" ' .
                            'data-placement="top"></i>' .
                            '</a>';
                    }
                }
            }

            if ( in_array( 'archive', $meta_elements ) ) {
                $author_links .= '<a href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' .
                    '<i class="icon-docs hover-tip" ' .
                    'data-original-title="' . esc_attr(sprintf(__('View all posts by %s', 'kleo_framework'), get_the_author())) . '" ' .
                    'data-toggle="tooltip" ' .
                    'data-placement="top"></i>' .
                    '</a>';
            }

        }

        if ( $author_links != '' ) {
            $meta_list[] = '<small class="meta-links">' . $author_links . '</small>';
        }

        if (in_array( 'date', $meta_elements ) ) {
            $meta_list[] = '<small>' . $date . '</small>';
        }

        $cat_tag = array();

        if ( isset( $categories_list ) && $categories_list ) {
            $cat_tag[] = $categories_list;
        }

        if ( isset( $tag_list ) && $tag_list ) {
            $cat_tag[] = $tag_list;
        }
        if (!empty($cat_tag)) {
            $meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
        }

        //comments
        if ((!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) && in_array( 'comments', $meta_elements )) {
            $meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments">'.get_comments_number() .
                ' <i class="icon-chat-1 hover-tip" ' .
                'data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" ' .
                'data-toggle="tooltip" ' .
                'data-placement="top"></i>' .
                '</a></small>';
        }

        $meta_separator = isset( $att['separator'] ) ? $att['separator'] : sq_option( 'blog_meta_sep', ', ') ;

        if ( $echo ) {
            echo implode( $meta_separator, $meta_list );
        }
        else {
            return implode( $meta_separator, $meta_list );
        }

    }
endif;

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146320
 wilfriedMarseille
Participant

Hi,
I got only the function.php than i edit and i don’t think than is the script inside who make the bug.
<?php
/**
* @package WordPress
* @subpackage Kleo
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Kleo 1.0
*/

/**
* Kleo Child Theme Functions
* Add custom code below
*/

/*Ajouter image sous le menu*//*
add_action(‘kleo_before_content’,’my_header_image’);
function my_header_image() {
echo ‘‘;
}*/

/*Ajouter slider en bas d’un article*/
/*
function KleoAddSlideUnderPosts( $content ) {

if( is_single() ) {

$revslidershortcode = do_shortcode(‘[rev_slider alias=”acc3″]’);
$content .= $revslidershortcode;
}

return $content;

}
add_filter(‘the_content’, ‘KleoAddSlideUnderPosts’);
*/

/*Ajouter slider endessous le menu*/
function KleoAddSlideUnderPosts( $content ) {
if( is_single() ) {
$revslidershortcode = do_shortcode(‘[rev_slider alias=”acc3″]’);
$content = $revslidershortcode . $content;
}
return $content;
}
add_filter(‘the_content’, ‘KleoAddSlideUnderPosts’);

/*Supprimer l’icone des thumbnails*/
add_action( ‘after_setup_theme’, ‘change_hover_element’, 10 );

function change_hover_element() {
global $kleo_config;
$kleo_config[‘image_overlay’] = ‘<span class=”hover-element”><i class=”equalizer”></i></span>’;

}

/*Function metadonné : modification auteur*/
if ( ! function_exists( ‘kleo_entry_meta’ ) ) :
/**
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
* Create your own kleo_entry_meta() to override in a child theme.
* @since 1.0
*/
function kleo_entry_meta( $echo = true, $att = array() ) {

global $kleo_config;
$meta_list = array();
$author_links = ”;
$meta_elements = sq_option( ‘blog_meta_elements’, $kleo_config[‘blog_meta_defaults’] );

// Translators: used between list items, there is a space after the comma.
if ( in_array( ‘categories’, $meta_elements ) ) {
$categories_list = get_the_category_list(__(‘, ‘, ‘kleo_framework’));
}

// Translators: used between list items, there is a space after the comma.
if ( in_array(‘tags’, $meta_elements ) ) {
$tag_list = get_the_tag_list(”, __(‘, ‘, ‘kleo_framework’));
}

$date = sprintf( ‘‘ .
‘<time class=”entry-date” datetime=”%2$s”>%3$s</time>’ .
‘<time class=”modify-date hide hidden updated” datetime=”%4$s”>%5$s</time>’ .
‘,
esc_url( get_permalink() ),
esc_attr( get_the_date( ‘c’ ) ),
esc_html( get_the_date() ),
esc_html( get_the_modified_date( ‘c’ ) ),
esc_html( get_the_modified_date() )
);

if ( is_array( $meta_elements ) && !empty( $meta_elements ) ) {

if ( in_array( ‘author_link’, $meta_elements ) || in_array( ‘avatar’, $meta_elements ) ) {

/* If buddypress is active then create a link to Buddypress profile instead */
if (function_exists( ‘bp_is_active’ ) ) {
$author_link = esc_url( bp_core_get_userlink( get_the_author_meta( ‘ID’ ), $no_anchor = false, $just_link = true ) );
$author_title = esc_attr( sprintf( __( ‘View %s\’s profile’, ‘kleo_framework’ ), get_the_author() ) );
} else {
$author_link = esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) );
$author_title = esc_attr( sprintf( __( ‘View all POSTS by %s’, ‘kleo_framework’ ), get_the_author() ) );
}

$author = sprintf( ‘%3$s %4$s‘,
$author_link,
$author_title,
in_array( ‘avatar’, $meta_elements ) ? get_avatar( get_the_author_meta( ‘ID’ ), 50) : ”,
in_array( ‘author_link’, $meta_elements ) ? ‘<span class=”author-name”>’ .’Auteur : ‘. get_the_author() . ‘</span>’ : ”
);

$meta_list[] = ‘<small class=”meta-author author vcard”>’ . $author . ‘</small>’;
}

if ( function_exists( ‘bp_is_active’ ) ) {
if ( in_array( ‘profile’, $meta_elements ) ) {
$author_links .= ‘‘ .
‘<i class=”icon-user-1 hover-tip” ‘ .
‘data-original-title=”‘ . esc_attr(sprintf(__(‘View profile’, ‘kleo_framework’), get_the_author())) . ‘”‘ .
‘data-toggle=”tooltip”‘ .
‘data-placement=”top”></i>’ .
‘;
}

if ( bp_is_active( ‘messages’ ) ) {
if ( in_array( ‘message’, $meta_elements ) ) {
$author_links .= ‘‘ .
‘<i class=”icon-mail hover-tip” ‘ .
‘data-original-title=”‘ . esc_attr(sprintf(__(‘Contact %s’, ‘kleo_framework’), get_the_author())) . ‘” ‘ .
‘data-toggle=”tooltip” ‘ .
‘data-placement=”top”></i>’ .
‘;
}
}
}

if ( in_array( ‘archive’, $meta_elements ) ) {
$author_links .= ‘‘ .
‘<i class=”icon-docs hover-tip” ‘ .
‘data-original-title=”‘ . esc_attr(sprintf(__(‘View all posts by %s’, ‘kleo_framework’), get_the_author())) . ‘” ‘ .
‘data-toggle=”tooltip” ‘ .
‘data-placement=”top”></i>’ .
‘;
}

}

if ( $author_links != ” ) {
$meta_list[] = ‘<small class=”meta-links”>’ . $author_links . ‘</small>’;
}

if (in_array( ‘date’, $meta_elements ) ) {
$meta_list[] = ‘<small>’ . $date . ‘</small>’;
}

$cat_tag = array();

if ( isset( $categories_list ) && $categories_list ) {
$cat_tag[] = $categories_list;
}

if ( isset( $tag_list ) && $tag_list ) {
$cat_tag[] = $tag_list;
}
if (!empty($cat_tag)) {
$meta_list[] = ‘<small class=”meta-category”>’.implode(“, “,$cat_tag).'</small>’;
}

//comments
if ((!isset($att[‘comments’]) || (isset($att[‘comments’]) && $att[‘comments’] !== false)) && in_array( ‘comments’, $meta_elements )) {
$meta_list[] = ‘<small class=”meta-comment-count”>‘.get_comments_number() .
‘ <i class=”icon-chat-1 hover-tip” ‘ .
‘data-original-title=”‘.sprintf( _n( ‘This article has one comment’, ‘This article has %1$s comments’, get_comments_number(), ‘kleo_framework’ ),number_format_i18n( get_comments_number() ) ).'” ‘ .
‘data-toggle=”tooltip” ‘ .
‘data-placement=”top”></i>’ .
</small>’;
}

$meta_separator = isset( $att[‘separator’] ) ? $att[‘separator’] : sq_option( ‘blog_meta_sep’, ‘, ‘) ;

if ( $echo ) {
echo implode( $meta_separator, $meta_list );
}
else {
return implode( $meta_separator, $meta_list );
}

}
endif;

May be do you have a prenium support ? To “Re-install” my blog together. Because i got a lot of probleme actually …

If you love Ableton check my blog :
www.zikrea.com

in reply to: A bad redirictiono when i connect my profil on my blog #146115
 wilfriedMarseille
Participant

So I try to let only the 5 extension for buddypress and the problem is always here …

I reactive my extensions, i let you a pic with the only 5 extension than i activate for the test.

If you love Ableton check my blog :
www.zikrea.com

Attachments:
You must be logged in to view attached files.
in reply to: A bad redirictiono when i connect my profil on my blog #146111
 wilfriedMarseille
Participant

Hello,
Yes I try to desactivate extensions.
And i don’t have add custom code.
I just activate the kleo bundle extensions.
you can see all the activate plugin on the pics.

If you love Ableton check my blog :
www.zikrea.com

Attachments:
You must be logged in to view attached files.
in reply to: How say for this category you put this slider. #145909
 wilfriedMarseille
Participant

okay thanks for the tips.

If i don’t say a mistake. I remember than i have to copy/past single.php to remake the template-part organisation for a post.

Do you know if i can copy/past in the kleo child-theme a script to remake the template-part organisation by default for the category-page ? ( where you say all the post for a category).

Second question.
When i write a post i saw : (look the image uploaded).
So is it possible to make an organisation for the template-part for each formats ? And when i choose the format post i saw my post with this of this organisation according to my format-post selected ?
If yes, wich script i have to copy/paste in my kleo child theme to remake the video-post format by example ?

Thanks you

If you love Ableton check my blog :
www.zikrea.com

Attachments:
You must be logged in to view attached files.
in reply to: A bad redirictiono when i connect my profil on my blog #145797
 wilfriedMarseille
Participant

Yes i just make all updates and the problem is always here …

If you love Ableton check my blog :
www.zikrea.com

Viewing 40 posts - 41 through 80 (of 289 total)

Log in with your credentials

Forgot your details?