WordPress.org

Ready to get started?Download WordPress

Forums

Awesome Filterable Portfolio
Bugs image-links and categories (2 posts)

  1. alex83270
    Member
    Posted 5 months ago #

    Anglais

    Hello,
    I try to use your plugin as widget portfolio but several problems come to me:
    - When I click on an item, there is a lightbox that prevents redirection link
    - When I change category, the items are no longer in the initial state

    Thank you for Avence and super passing plugin.

    -------------------------------------

    Français

    Bonjour,
    j'essaie d'utiliser votre plugin en tant que widget portfolio mais plusieurs problèmes viennent à moi :
    - Quand je clique sur un item, il y a une lightbox qui empêche la redirection du lien
    - Quand je change de catégorie, les items ne sont plus à l'état initial

    Merci d'avence et au passage super plugin.

    http://game.black-omegadesign.fr/
    https://wordpress.org/plugins/awesome-filterable-portfolio/

  2. alex83270
    Member
    Posted 5 months ago #

    Anglais
    I resolved the bug for image link :

    afp.php

    //Start Echo Portfolio Items
            $output.='<ul class="afp-items">';
            $k = 1;
            foreach ($items as $item ){
                	$output.='<li class="afp-single-item" data-id="id-' . $k . '" data-type="' . ereg_replace("[^A-Za-z0-9]", "", $item->item_category) .'">
                    <a class="colorbox" title="' . $item->item_description . '" href="' . $item->item_link . '"><img alt="" class="img-link-initial" src="' . $item->item_thumbnail . '"></a><br /> <ul class="afp-item-details">'; // MODIF (href="' . $item->item_image . '")
    
                        if($item->item_title != null) { $output.='<li><strong>' . $item->item_title . '</strong></li>'; }
    					if($item->item_client != null) { $output.='<li>' . $item->item_client . '</li>'; }
    					if($item->item_date != '0000-00-00') { $output.='<li>' . date("m/d/Y", strtotime($item->item_date)) . '</li>'; }
    					// DELETE
    if($item->item_link != null) { $output.='<li><a target="_' . $afpOptions['project_link'] . '" href="' . $item->item_link . '">' . __('Project Link', 'awesome-filterable-portfolio') . '</a></li>'; }
                    $output.='</ul>
                </li>';
    
                $k++;
    		}


    afp-functions.js

    /* DELETE jQuery(document).ready(function($) {
    	$(".colorbox").colorbox();
    });*/

    but this bug

    When I change category, the items are no longer in the initial state

    I don't understand.

    ---------------

    Francais
    J'ai résolu le bug pour les liens des images :

    afp.php

    //Start Echo Portfolio Items
            $output.='<ul class="afp-items">';
            $k = 1;
            foreach ($items as $item ){
                	$output.='<li class="afp-single-item" data-id="id-' . $k . '" data-type="' . ereg_replace("[^A-Za-z0-9]", "", $item->item_category) .'">
                    <a class="colorbox" title="' . $item->item_description . '" href="' . $item->item_link . '"><img alt="" class="img-link-initial" src="' . $item->item_thumbnail . '"></a><br /> <ul class="afp-item-details">'; // MODIFIER (href="' . $item->item_image . '")
                        if($item->item_title != null) { $output.='<li><strong>' . $item->item_title . '</strong></li>'; }
    					if($item->item_client != null) { $output.='<li>' . $item->item_client . '</li>'; }
    					if($item->item_date != '0000-00-00') { $output.='<li>' . date("m/d/Y", strtotime($item->item_date)) . '</li>'; }
    					// SUPPRIMER if($item->item_link != null) { $output.='<li><a target="_' . $afpOptions['project_link'] . '" href="' . $item->item_link . '">' . __('Project Link', 'awesome-filterable-portfolio') . '</a></li>'; }
                    $output.='</ul>
                </li>';
    
                $k++;
    		}


    afp-functions.js

    /* SUPPRIMER jQuery(document).ready(function($) {
    	$(".colorbox").colorbox();
    });*/

    Mais ce bug

    Quand je change de catégorie, les items ne sont plus à l'état initial

    je ne comprend pas.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.