Viewing 30 results - 91 through 120 (of 247 total)
  • Author
    Search Results
  • #746865

    In reply to: Move Title Article

    Hey Antonio,

    Yes, you would need to do few things however.

    1. Use a child theme, instructions can be found here: http://kriesi.at/documentation/enfold/using-a-child-theme/
    2. Override the post slider module, check here for instructions: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
    3. The name of the file that needs to changed is: postslider.php.
    4. Edit postslider.php in the child theme and find this code (line 431-450):

    if($show_meta && !empty($excerpt))
    {
    	$meta  = "<div class='slide-meta'>";
    	if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    	{
    		$link_add = $commentCount === "0" ? "#respond" : "#comments";
    		$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    		$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    	}
    	$markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    	$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    	$meta .= "</div>";
    	
    	if($blogstyle !== "elegant-blog")
    	{
    		$output .= $meta;
    		$meta = "";
    	}
    }

    cut this code and paste it below this code which is just below it:

    $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    $excerpt = apply_filters( 'avf_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry );
    $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";

    Hope this helps.

    Best regards,
    Nikko

    #743466

    I don’t know what to tell you, but it’s not working on the home page. I took a screenshot that you can see here (https://ufile.io/8a6af) what it returns and the code is below. What am I missing? I added the code to the end of the section for output, but it’s pulling the home page’s own content with HTML/tags.

    if (!empty($entries))
    			{	global $post;
    				
    				$default_id = $post->ID;
    				$output .= "<div class='av-upcoming-events ".$meta['el_class']."'>";
    				foreach($entries as $entry)
    				{	
    					$class  = "av-upcoming-event-entry";
    					$image  = get_the_post_thumbnail($entry->ID, 'square', array( 'class' => 'av-upcoming-event-image' ));
    					$class .= !empty($image) ? " av-upcoming-event-with-image" : " av-upcoming-event-without-image";
    					$title  = get_the_title($entry->ID);
    					$link	= get_permalink($entry->ID);
    					
    					$post->ID = $entry->ID; //temp set of the post id so that tribe fetches the correct price symbol
    					$price  = tribe_get_cost( $entry->ID, true );
    					$venue  = tribe_get_venue( $entry->ID );
    					$post->ID = $default_id;
    					
    					$output .= "<a href='{$link}' class='{$class}'>";
    					
    		if($image)  $output .= $image;
    					$output .= "<span class='av-upcoming-event-data'>";
    						$output .= "<h4 class='av-upcoming-event-title'>{$title}</h4>";
    							$output .= "<span class='av-upcoming-event-meta'>";
    							$output .= "<span class='av-upcoming-event-schedule'>".tribe_events_event_schedule_details($entry)."</span>";
    							$output .= apply_filters('avf_upcoming_event_extra_data', "", $entry);
    							$output .= "</span>";
    						$output .= "</span>";
    					$output .= "</a>";
    					$excerpt = !empty(get_the_excerpt($entry->ID)) ? get_the_excerpt($entry->ID) :  get_the_content($entry->ID);
    if($excerpt) $output .= "<span class='av-upcoming-event-excerpt'>{$excerpt}</span>";
    				}
    #741007

    Hi!

    This is the “excerpt” part:

    $excerpt = apply_filters( 'avf_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry );
    					$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
    

    If you want to include the date, comments etc. Include this block of code.

                        if($show_meta && !empty($excerpt))
    					{
    						$meta  = "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>";
    
    						if($blogstyle !== "elegant-blog")
    						{
    							$output .= $meta;
    							$meta = "";
    						}
    					}

    Regards,
    Ismael

    #737688

    Hey belugatinu1!

    Thank you for using Enfold.

    In the postslider.php file, look for this line:

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    

    Below, add this code:

    $description = get_post(get_post_thumbnail_id())->post_excerpt;
    					if( !empty( $description ) ) {
    					    $output .=  '<div class="slide_entry_featured_caption">' . $description . '</div>';
    				    }
    

    Cheers!
    Ismael

    #736150
    belugatinu1
    Participant

    Hi,
    how can i add the featured image caption also in my homepage (http://www.agenziagiornalisticaopinione.it/) ?
    Now it’s shown only for single post but i would like to have it also in homepage.

    I understood that i need to change this line
    ————————————————————–
    $output .= $thumbnail ? “{$thumbnail}” : “”;
    ————————————————————–
    in my postslider.php to show it inside the title but I’m not able to make it work.

    Please help me.
    Thanks a million.

    #729893
    Toulmonde
    Participant

    Hello,
    I think there is a bug in last version of enfold (s 3.6.1).
    I use Postslid in Grid Format. My post format are links.
    Link on pictures and Title works well. however, the link of read more redirct to article page.
    Which is not logical.

    it seems that the condition if($format == 'link') on post-slider.php line 322 is not working.
    I solved out the problem by removing this condition but it is not very good because it will interfer with other post format.
    this what I have done
    Line 320

    $current_post = array();
    			                        $current_post['content'] = $entry->post_content;
    			                        $current_post['title'] =  $entry->post_title;
    			                        
    			                        if(function_exists('avia_link_content_filter'))
    			                        {
    			                            $current_post = avia_link_content_filter($current_post);
    			                        }
    			
    			                        $link = $current_post['url'];
    									
    			        
    					$permalink = "<div class='read-more-link'><a href='{$link}' class='more-link'>".__('Read more','avia_framework')."<span class='more-link-arrow'>  &rarr;</span></a></div>";
    					$prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , $excerpt_length) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, '');
    
    		                  	if($format == 'link')
    		                   	{
    			                        $current_post = array();
    			                        $current_post['content'] = $entry->post_content;
    			                        $current_post['title'] =  $entry->post_title;
    			                        
    			                        if(function_exists('avia_link_content_filter'))
    			                        {
    			                            $current_post = avia_link_content_filter($current_post);
    			                        }
    			
    			                        $link = $current_post['url'];
    		                    	}

    Any more elegent solution ?

    #728329

    Hi,

    Please firstly install and start using child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and then refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    then go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

                        if($show_meta && !empty($excerpt))
    					{
    						$meta  = "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>";
    						
    						if($blogstyle !== "elegant-blog")
    						{
    							$output .= $meta;
    							$meta = "";
    						}
    					}

    cut & paste it right above following line

    
    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";

    Best regards,
    Yigit

    Hi,

    – Please do not choose your blog and frontpage in Settings > Reading, only choose them in Enfold theme options.
    – Please use a child theme if you are not – http://kriesi.at/documentation/enfold/using-a-child-theme/ and copy enfold/includes/loop-index.php file to your child theme in the same path enfold-child/includes/loop-index.php file and then find following lines

            echo "<div class='blog-meta'>";
    
            $blog_meta_output = "";
            $icon =  '<span class="iconfont" '.av_icon_string($post_format).'></span>';
    
                if(strpos($blog_style, 'multi') !== false)
                {
                    $gravatar = "";
                    $link = get_post_format_link($post_format);
                    if($post_format == 'standard')
                    {
                    	$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author);
    					$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author);
                    	
    					$gravatar_alt = esc_html($author_name);
    					$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    					$link = get_author_posts_url($post->post_author);
                    }
    
                    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
                }
                else if(strpos($blog_style, 'small')  !== false)
                {
                    $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
                }
    
            echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output);
    
            echo "</div>";

    and change it to following

            if(is_single($initial_id) && get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) {
                $current_post['slider'] = "";
            }
            else{
            echo "<div class='blog-meta'>";
    
            $blog_meta_output = "";
            $icon =  '<span class="iconfont" '.av_icon_string($post_format).'></span>';
    
                if(strpos($blog_style, 'multi') !== false)
                {
                    $gravatar = "";
                    $link = get_post_format_link($post_format);
                    if($post_format == 'standard')
                    {
                    	$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author);
    					$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author);
                    	
    					$gravatar_alt = esc_html($author_name);
    					$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    					$link = get_author_posts_url($post->post_author);
                    }
    
                    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
                }
                else if(strpos($blog_style, 'small')  !== false)
                {
                    $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>";
                }
    
            echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output);
    
            echo "</div>";
            }

    Best regards,
    Yigit

    • This reply was modified 9 years, 1 month ago by Yigit.
    #704341

    In reply to: Hotspot on mobile

    Hey snitt,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .responsive .av-hotspot-fallback-tooltip {
        display: block;
    }
    

    Then go to enfold/config-templatebuilder/avia-shortcodes/image_hotspots.php file and find

    			function add_fallback_tooltip($hotspot, $counter)
    			{
    				$content = $hotspot['content'];
    				
    				if(empty($content)) return;
    				
    				$output  = "";
    				$output .= "<div class='av-hotspot-fallback-tooltip'>";
    				$output .= "<div class='av-hotspot-fallback-tooltip-count'>";
    				$output .= $counter;
    				$output .= "<div class='avia-arrow'></div></div>";
    				$output .= "<div class='av-hotspot-fallback-tooltip-inner clearfix'>";
    				$output .= ShortcodeHelper::avia_apply_autop($content);
    				$output .= "</div>";
    				$output .= "</div>";
    				
    				return $output;
    			}

    and change it to

    			function add_fallback_tooltip($hotspot, $counter)
    			{
    				$content = $hotspot['content'];
                    
    
    					$blank  = strpos($link_target, '_blank') !== false ? ' target="_blank" ' : "";
    					$blank .= strpos($link_target, 'nofollow') !== false ? ' rel="nofollow" ' : "";
    					
    					$link = aviaHelper::get_url($link, false);
    					$tags = array("a href={$link} {$blank}", 'a');
    				
    				if(empty($content)) return;
    				
    				$output  = "";
    				$output .= "<div class='av-hotspot-fallback-tooltip'>";
    				$output .= "<div class='av-hotspot-fallback-tooltip-count'>";
    				$output .= $counter;
    				$output .= "<div class='avia-arrow'></div></div>";
    				$output .= "<div class='av-hotspot-fallback-tooltip-inner clearfix'>";
                        $output .= "<".$tags[0].">";
    				$output .= ShortcodeHelper::avia_apply_autop($content);
                        $output .= "</".$tags[1].">";
    				$output .= "</div>";
    				$output .= "</div>";
    				
    				return $output;
    			}

    Best regards,
    Yigit

    Solved :)

    by copying the function to my child theme and adding an extra check to see if a post exists and if not putput dummy << >> links that dont click

    I also had to add the taxonomy name in the single-portfolio.php and to tell it to keep in same category only

    echo avia_post_nav(true,'case-studies');

    if(!function_exists('avia_post_nav'))
    {
    	function avia_post_nav($same_category = false, $taxonomy = 'category')
    	{
    		global $wp_version;
    	        $settings = array();
    	        $settings['same_category'] = $same_category;
    	        $settings['excluded_terms'] = '';
    			$settings['wpversion'] = $wp_version;
            
    		//dont display if a fullscreen slider is available since they overlap 
    		if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || 
    			class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true;
    
    		$settings['type'] = get_post_type();
    		//if ($taxonomy) {
    			//$settings['taxonomy'] = $taxonomy;
    		//} else {
    			$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    		//}
    
    		if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
    		if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
    
    	        $settings = apply_filters('avia_post_nav_settings', $settings);
    	        if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
    	
    	        if(version_compare($settings['wpversion'], '3.8', '>=' ))
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	            $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	        }
    	        else
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category']);
    	            $entries['next'] = get_next_post($settings['same_category']);
    	        }
    	        
    		$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
            $output = "";
    
    		foreach ($entries as $key => $entry)
    		{
                if(empty($entry)) { // continue;
    			
    			//echo '<div class="disabled-post-nav">';
    		//echo '<a class="avia-post-nav avia-post-next with-image" ><span class="entry-info-wrap"><span class="entry-info"><span class="entry-image"></span></span></a>';
    		//echo '</div>';
    			
    			$output .= "<div class='disabled-post-nav'><a class='avia-post-nav avia-post-{$key} {$class}' >";
    		    //$output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		    $output .= "    <span class='entry-info-wrap'>";
    		    $output .= "        <span class='entry-info'><span class='entry-image'></span>";
    		   // $tc1     = "            <span class='entry-title'>{$the_title}</span>";
    if($image)  //$tc2     = "            <span class='entry-image'>{$image}</span>";
                //$output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
                $output .= "        </span>";
                //$output .= "    </span>";
    		    $output .= "</a></div>";
    			
    			} else {
    			$the_title 	= isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
    			$link 		= isset($entry->av_custom_link)  ? $entry->av_custom_link  : get_permalink($entry->ID);
    			$image 		= isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
    			
                $tc1   = $tc2 = "";
                $class = $image ? "with-image" : "without-image";
    
                $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";//.$same_category.$taxonomy;
    		    $output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		    $output .= "    <span class='entry-info-wrap'>";
    		    $output .= "        <span class='entry-info'>";
    		    $tc1     = "            <span class='entry-title'>{$the_title}</span>";
    if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
                $output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
                $output .= "        </span>";
                $output .= "    </span>";
    		    $output .= "</a>";
    			} //end if JJA
    		}
    		return $output;
    	}
    }
    #693041

    In reply to: tema Enfold duvidas

    Boa tarde,

    Abrir config-templatebuilder> avia-shortcodes> testimonials.php, encontrar este código:

    
    if($link)	$output .= 					" &ndash; <a class='avia-testimonial-link' target='_blank' href='{$link}'>{$linktext}</a>";

    Remover target = ‘_blank ‘.

    Saudações,
    Jordan

    CurlyHost
    Participant

    Hello.
    We have created two blog layouts using the Advanced Layout Builder.
    The first correctly displays the content as desired but is limited to one entry as expected and desired.
    The second displays multiple entries, in a two column grid, as desired but displays the site’s admin nickname instead of the blog entry’s author nickname.

    We have modified the postslider.php in a child theme described here http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/. The code from the page is changed here:

    					if($loop_counter == 1) $output .= "<div class='slide-entry-wrap'>";
    					
    					$post_format = get_post_format($the_id) ? get_post_format($the_id) : 'standard';
    					
                        $markup = avia_markup_helper(array('context' => 'entry','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    					$output .= "<article class='slide-entry flex_column {$style} {$post_class} {$grid} {$extraClass} {$thumb_class}' $markup>";
    					$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    					
    					if($post_format == "audio")
    					{	
    						$current_post = array();
    			            $current_post['content'] = $entry->post_content;
    			            $current_post['title'] =  $entry->post_title;
    						
    						$current_post = apply_filters( 'post-format-'.$post_format, $current_post );
    						
    						if(!empty( $current_post['before_content'] )) $output .= '<div class="big-preview single-big audio-preview">'.$current_post['before_content'].'</div>';
    					}
    					
    					$output .= "<div class='slide-content'>";
    
                        $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
                        $output .= '<header class="entry-content-header">';
                        
                        if (!empty($title))
                        {
    	                    if($show_meta)
    	                    {
    		                    $taxonomies  = get_object_taxonomies(get_post_type($the_id));
    			                $cats = '';
    			                $excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array('post_tag','post_format') );
    							$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', $excluded_taxonomies, get_post_type($the_id), $the_id);
    			
    			                if(!empty($taxonomies))
    			                {
    			                    foreach($taxonomies as $taxonomy)
    			                    {
    			                        if(!in_array($taxonomy, $excluded_taxonomies))
    			                        {
    			                            $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
    			                        }
    			                    }
    			                }
    			                
    			                if(!empty($cats))
    		                    {
    		                        $output .= '<span class="blog-categories minor-meta">';
    		                        $output .= $cats;
    		                        $output .= '</span>';
    		                    }
    	                    }
    	                    
                        	$output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
                        	$output .= '<span class="av-vertical-delimiter"></span>';
                        }
                        
                        $output .= '</header>';
    
                        if($show_meta && !empty($excerpt))
    					{
    						$meta  = "<div class='slide-meta'>";
    
    						//if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') {
    						//	$link_add = $commentCount === "0" ? "#respond" : "#comments";
    						//	$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    						//	$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						//}
    						
    						
    						
                $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						//$meta .= "</div>";
    
    						$meta .= "<div class='slide-meta-del'>/</div>";
    						$meta .= "<div class='slide-meta-comments'>By " .get_the_author_posts_link(). "</div>";
    						if($blogstyle !== "elegant-blog")
    						{
    							$output .= $meta;
    							$meta = "";
    						}
    					}
                        $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    					$excerpt = apply_filters( 'avf_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry );
    					$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
    
                        $output .= "</div>";
                        $output .= '<footer class="entry-footer">';
                        if( !empty($meta) ) $output .= $meta;
                        $output .= '</footer>';
                        
                        $output .= av_blog_entry_markup_helper( $the_id );
                        
    					$output .= "</article>";
    
    					$loop_counter ++;
    					$post_loop_count ++;
    					$extraClass = "";
    
    					if($loop_counter > $columns)
    					{
    						$loop_counter = 1;
    						$extraClass = 'first';
    					}
    
    					if($loop_counter == 1 || !empty($last))
    					{
    						$output .="</div>";
    					}
    				}
    
    			$output .= 		"</div>";

    Specifically we are calling the get_the_author_posts_link() to display the author post link.

    What could be the cause of this not displaying as desired?

    Hi,

    We are very sorry for the late response.

    This is possible but you have to edit the portfolio items and set the “Overwrite Portfolio Link setting” to “Define a custom link”. Add the url of the featured image. Add this code in the functions.php file to use the excerpt as the lightbox title.

    function avf_portfolio_custom_image_container_mod($link_markup, $entry)
    {
    	$the_id = $entry->ID;
    	$custom_link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : false;
    	$link = !empty($custom_link) ? $custom_link : get_permalink($the_id);
    	$title = get_post(get_post_thumbnail_id($the_id))->post_title;
    	$link_markup[0] = "a href='{$link}' title='{$entry->post_excerpt}' ";
    	return $link_markup;
    }
    add_filter('avf_portfolio_custom_image_container', 'avf_portfolio_custom_image_container_mod', 10, 2);

    Best regards,
    Ismael

    #671673

    Hi,

    1. Open /enfold/config-templatebuilder/avia-shortcodes/productslider.php and look for line:

    if($show_meta && !empty($excerpt))
    

    Replace it by this:

    if($show_meta)
    

    2. Move the whole if($show_meta conditional above, just before line 395:

    $output .= '<header class="entry-content-header">';
    

    3. Remove:

    if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "
    <div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div>
    <div class='slide-meta-del'>/</div>
    ";
    						}

    Regards,
    Josue

    #668404

    Hi,

    Please add this in the functions.php file instead:

    add_filter('avf_loop_index_blog_meta', 'avf_loop_index_blog_meta_mod', 10, 1);
    function avf_loop_index_blog_meta_mod($output) {
    	$link = get_permalink();
    	$fallback = strpos($output, 'iconfont');
    
    	if ($fallback <= 200) {
    	    $output = "<a href='{$link}' class='small-preview' title='Advanced Post'><img src='FALLBACK IMAGE URL HERE'/></a>";
    	}
    
    	return $output;
    }

    Adjust the placeholder image url.

    Best regards,
    Ismael

    #662751

    Hi,

    Add this css code to adjust the title alignment of the “next button”:

    .avia-post-next.with-image {
        text-align: left;
    }

    Add this in the functions.php file to display the time:

    	function avia_post_nav($same_category = false, $taxonomy = 'category')
    	{
    		global $wp_version;
    	        $settings = array();
    	        $settings['same_category'] = $same_category;
    	        $settings['excluded_terms'] = '';
    			$settings['wpversion'] = $wp_version;
    
    		//dont display if a fullscreen slider is available since they overlap
    		if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) ||
    			class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true;
    
    		$settings['type'] = get_post_type();
    		$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
    
    		if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
    		if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
    
    	        $settings = apply_filters('avia_post_nav_settings', $settings);
    	        if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
    
    	        if(version_compare($settings['wpversion'], '3.8', '>=' ))
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	            $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	        }
    	        else
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category']);
    	            $entries['next'] = get_next_post($settings['same_category']);
    	        }
    
    		$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
            $output = "";
    
    		foreach ($entries as $key => $entry)
    		{
                if(empty($entry)) continue;
    			$the_title 	= isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
    			$link 		= isset($entry->av_custom_link)  ? $entry->av_custom_link  : get_permalink($entry->ID);
    			$image 		= isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
    			$time 		= "<time class='date-container minor-meta updated' >".get_the_time(get_option('date_format'), $entry->ID)."</time>";
    
                $tc1   = $tc2 = "";
                $class = $image ? "with-image" : "without-image";
    
                $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    		    $output .= "    <span class='label iconfont' ".av_icon_string($key)."></span>";
    		    $output .= "    <span class='entry-info-wrap'>";
    		    $output .= "        <span class='entry-info'>";
    		    $tc1     = "            <span class='entry-title'>{$the_title}</span>$time";
    if($image)  $tc2     = "            <span class='entry-image'>{$image}</span>";
                $output .= $key == 'prev' ?  $tc1.$tc2 : $tc2.$tc1;
                $output .= "        </span>";
                $output .= "    </span>";
    		    $output .= "</a>";
    		}
    		return $output;
    	}

    Adjust the position of the date container in the Quick CSS field.

    Best regards,
    Ismael

    #658456

    Hey!

    Please find following line
    $output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
    and then change it to following

    						$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a target='_blank' href='{$link}'>".$entry->post_title."</a></h2>";
    

    Cheers!
    Yigit

    Hey brightvessel,

    Please go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

    						$meta  = "
    <div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "
    <div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div>
    <div class='slide-meta-del'>/</div>
    ";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>
    ";

    and change it to

    						$meta  = "
    <div class='slide-meta'>";
                            $meta .= get_the_author();
    						$meta .= "</div>
    ";

    If you are using a child theme, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

    • This reply was modified 9 years, 6 months ago by Yigit.
    #639282

    Hi,

    Please go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find
    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    and change it to
    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title='$title'>{$thumbnail}</a>" : "";

    Best regards,
    Yigit

    #623853

    Hi!

    Please refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ and move enfold/config-templatebuilder/avia-shortcodes/postslider.php file to your child theme and then remove following lines

    $meta  = "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>";
    						
    						if($blogstyle !== "elegant-blog")
    						{
    							$output .= $meta;
    							$meta = "";
    						}

    Cheers!
    Yigit

    #613987

    In reply to: Testimonial formatting

    Hey!

    Please go to Enfold/config-templatebuilder/avia-shortcodes/testimonials.php file and find following line
    if($link) $output .= " &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";
    and change it to
    if($link) $output .= "<a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";

    If you are using a child theme, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Regards,
    Yigit

    #606992

    Hey!

    The blog layout was already set to multi author for Single Post Options. Any other workaround?

    Edit includes > loop-index.php file, look for this code around line 136:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    

    .. replace it with:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span><span class='author-name'>".$author_name."</span></a>";
    

    I have pasted $author = get_the_author(); in config-templatebuilder > aviashortcodes > postslider.php but not showing up anything. Where do paste it?

    Look for this code inside the postslider.php file:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    .. below, add this:

    $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $entry->post_author), $entry->post_author);
    						$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $entry->post_author), $entry->post_author);
    
    						$gravatar_alt = esc_html($author_name);
    						$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    						$link = get_author_posts_url($entry->post_author);
    						$output .=  "<a href='{$link}' class='post-author-format-type'>".$author_name."</a>";

    Best regards,
    Ismael

    #603152
    hurraken
    Participant

    Hello the team,

    In the Ajax Portfolio , I’d like to know if it’s possible to change the link of the preview image. I’d like to link the image to the item post instead of the image in the lightbox.

    I tried to change

    $output .= " <a href='".$img[0]."' class='portolio-preview-list-image' title='".$description."' ><img src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";

    to

    $output .= " <a href='".{$link}."' title='".$description."'><img src='".$img[0]."' alt='".$alt."' /></a>";

    but the link is this of the current page instead of of this of the item page.

    Pleae help.

    Best regards.

    • This topic was modified 9 years, 9 months ago by hurraken.
    #603028

    Hey ruralcomputerservices!

    Thank you for using Enfold.

    The author is not included in the grid style because there’s not enough space in the post meta info container when the columns option is set to more than 2. If you really need the author, please edit the config-templatebuilder > aviashortcodes > postslider.php file, add this code below line 440:

    $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $entry->post_author), $entry->post_author);
    						$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $entry->post_author), $entry->post_author);
    						$link = get_author_posts_url($entry->post_author);
    
    						$meta .= "<div class='slide-meta-del'>/</div><a href='{$link}' class='slide-meta-author'>".$author_name."</a>";

    Best regards,
    Ismael

    #601756

    Hi!

    Are you sure that they have a gravatar account? I checked the markup and the gravatar image is missing which means that the current account or author doesn’t have a gravatar account. You can find the script in the includes > loop-index.php file, line 136:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    

    If a gravatar image is available, it will cover the icon.

    Best regards,
    Ismael

    #600761

    In reply to: Author's name

    Hi,

    Open includes/loop-index.php and look for line:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    

    Replace it by this:

    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span>".$author_name."</a>";
    

    Regards,
    Josue

    #599864

    In reply to: Google Event Tracking

    For anyone experiencing the same issue, I have just gone into the PHP file and re-written the code for the fullwidth button to allow the addition of onClick attributes. Please see below for the full replacement php code for the file “buttons_fullwidth.php” which can be found in wp_content/themes/enfold/config-templatebuilder/avia-shortcodes/

    <?php
    /**
     * Button
     * Displays a button that links to any url of your choice
     */
     
    if ( !class_exists( 'avia_sc_button_full' ) ) 
    {
    	class avia_sc_button_full extends aviaShortcodeTemplate
    	{
    			static $count = 0;
    			
    			/**
    			 * Create the config array for the shortcode button
    			 */
    			function shortcode_insert_button()
    			{
    				$this->config['name']		= __('Fullwidth Button', 'avia_framework' );
    				$this->config['tab']		= __('Content Elements', 'avia_framework' );
    				$this->config['icon']		= AviaBuilder::$path['imagesURL']."sc-button.png";
    				$this->config['order']		= 84;
    				$this->config['target']		= 'avia-target-insert';
    				$this->config['shortcode'] 	= 'av_button_big';
    				$this->config['tooltip'] 	= __('Creates a colored button that stretches across the full width', 'avia_framework' );
    				$this->config['tinyMCE']    = array('tiny_always'=>true);
    			}
    		
    			/**
    			 * Popup Elements
    			 *
    			 * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
    			 * opens a modal window that allows to edit the element properties
    			 *
    			 * @return void
    			 */
    			function popup_elements()
    			{
    				$this->elements = array(
    					
    					array(
    							"type" 	=> "tab_container", 'nodescription' => true
    						),
    						
    					array(
    							"type" 	=> "tab",
    							"name"  => __("Content" , 'avia_framework'),
    							'nodescription' => true
    						),
    					
    					array(	"name" 	=> __("Button Title", 'avia_framework' ),
    							"desc" 	=> __("This is the text that appears on your button.", 'avia_framework' ),
    				            "id" 	=> "label",
    				            "type" 	=> "input",
    				            "std" => __("Click me", 'avia_framework' )),
    				            
    				    
    				    array(
    							"name" 	=> __("Additional Description",'avia_framework' ),
    							"desc" 	=> __("Enter an additional description",'avia_framework' ),
    							"id" 	=> "content",
    							"type" 	=> "textarea",
    							"std" 	=> ""
    							),
    				    
    				    array(	
    							"name" 	=> __("Description position", 'avia_framework' ),
    							"desc" 	=> __("Show the description above or below the title?", 'avia_framework' ),
    							"id" 	=> "description_pos",
    							"type" 	=> "select",
    							"subtype" => array(	
    												__('Description above title', 'avia_framework' ) =>'above',
    												__('Description below title', 'avia_framework' ) =>'below',
    												),
    							"std" 	=> "below"),
    				    
    				    array(	
    							"name" 	=> __("Button Link?", 'avia_framework' ),
    							"desc" 	=> __("Where should your button link to?", 'avia_framework' ),
    							"id" 	=> "link",
    							"type" 	=> "linkpicker",
    							"fetchTMPL"	=> true,
    							"subtype" => array(	
    												__('Set Manually', 'avia_framework' ) =>'manually',
    												__('Single Entry', 'avia_framework' ) =>'single',
    												__('Taxonomy Overview Page',  'avia_framework' )=>'taxonomy',
    												),
    							"std" 	=> ""),
    							
    					array(	
    							"name" 	=> __("onClick Event?", 'avia_framework' ),
    							"desc" 	=> __("onClick=\"ga('send', 'event', 'Category', 'Action', 'Label');\"", 'avia_framework' ),
    							"id" 	=> "link_oc",
    							"type" 	=> "input",
    							"std" 	=> ""),	
    							
    					array(	
    							"name" 	=> __("Open Link in new Window?", 'avia_framework' ),
    							"desc" 	=> __("Select here if you want to open the linked page in a new window", 'avia_framework' ),
    							"id" 	=> "link_target",
    							"type" 	=> "select",
    							"std" 	=> "",
    							"subtype" => AviaHtmlHelper::linking_options()),	
    							
    					array(	
    							"name" 	=> __("Button Icon", 'avia_framework' ),
    							"desc" 	=> __("Should an icon be displayed at the left side of the button", 'avia_framework' ),
    							"id" 	=> "icon_select",
    							"type" 	=> "select",
    							"std" 	=> "no",
    							"subtype" => array(
    								__('No Icon',  'avia_framework' ) =>'no',
    								__('Yes, display Icon to the left of the title',  'avia_framework' ) => 'yes-left-icon' ,	
    								__('Yes, display Icon to the right of the title',  'avia_framework' ) =>'yes-right-icon',
    							)),	
    					
    					array(	
    							"name" 	=> __("Icon Visibility",'avia_framework' ),
    							"desc" 	=> __("Check to only display icon on hover",'avia_framework' ),
    							"id" 	=> "icon_hover",
    							"type" 	=> "checkbox",
    							"std" 	=> "",
    							"required" => array('icon_select','not_empty_and','no')
    							),
    					
    					array(	
    							"name" 	=> __("Button Icon",'avia_framework' ),
    							"desc" 	=> __("Select an icon for your Button below",'avia_framework' ),
    							"id" 	=> "icon",
    							"type" 	=> "iconfont",
    							"std" 	=> "",
    							"required" => array('icon_select','not_empty_and','no')
    							),
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    					
    					array(
    							"type" 	=> "tab",
    							"name"	=> __("Colors",'avia_framework' ),
    							'nodescription' => true
    						),
    					
    					array(	
    							"name" 	=> __("Font Color", 'avia_framework' ),
    							"desc" 	=> __("Select a custom font color for your Button here", 'avia_framework' ),
    							"id" 	=> "custom_font",
    							"type" 	=> "colorpicker",
    							"std" 	=> "#ffffff",
    						),
    					
    					array(	
    							"name" 	=> __("Background Color", 'avia_framework' ),
    							"desc" 	=> __("Choose a background color for your button here", 'avia_framework' ),
    							"id" 	=> "color",
    							"type" 	=> "select",
    							"std" 	=> "theme-color",
    							"subtype" => array(	
    												__('Theme Color', 'avia_framework' )=>'theme-color',
    												__('Theme Color Subtle', 'avia_framework' )=>'theme-color-subtle',
    												__('Blue', 'avia_framework' )=>'blue',
    												__('Red',  'avia_framework' )=>'red',
    												__('Green', 'avia_framework' )=>'green',
    												__('Orange', 'avia_framework' )=>'orange',
    												__('Aqua', 'avia_framework' )=>'aqua',
    												__('Teal', 'avia_framework' )=>'teal',
    												__('Purple', 'avia_framework' )=>'purple',
    												__('Pink', 'avia_framework' )=>'pink',
    												__('Silver', 'avia_framework' )=>'silver',
    												__('Grey', 'avia_framework' )=>'grey',
    												__('Black', 'avia_framework' )=>'black',
    												__('Custom Color', 'avia_framework' )=>'custom',
    												)),
    					
    					array(	
    							"name" 	=> __("Custom Background Color", 'avia_framework' ),
    							"desc" 	=> __("Select a custom background color for your Button here", 'avia_framework' ),
    							"id" 	=> "custom_bg",
    							"type" 	=> "colorpicker",
    							"std" 	=> "#444444",
    							"required" => array('color','equals','custom')
    						),
    							
    					
    					array(	
    							"name" 	=> __("Background Hover Color", 'avia_framework' ),
    							"desc" 	=> __("Choose a background hover color for your button here", 'avia_framework' ),
    							"id" 	=> "color_hover",
    							"type" 	=> "select",
    							"std" 	=> "theme-color-subtle",
    							"subtype" => array(	
    												__('Theme Color', 'avia_framework' )=>'theme-color',
    												__('Theme Color Subtle', 'avia_framework' )=>'theme-color-subtle',
    												__('Blue', 'avia_framework' )=>'blue',
    												__('Red',  'avia_framework' )=>'red',
    												__('Green', 'avia_framework' )=>'green',
    												__('Orange', 'avia_framework' )=>'orange',
    												__('Aqua', 'avia_framework' )=>'aqua',
    												__('Teal', 'avia_framework' )=>'teal',
    												__('Purple', 'avia_framework' )=>'purple',
    												__('Pink', 'avia_framework' )=>'pink',
    												__('Silver', 'avia_framework' )=>'silver',
    												__('Grey', 'avia_framework' )=>'grey',
    												__('Black', 'avia_framework' )=>'black',
    												__('Custom Color', 'avia_framework' )=>'custom',
    												)),
    					
    					array(	
    							"name" 	=> __("Custom Hover Color", 'avia_framework' ),
    							"desc" 	=> __("Select a custom background color for your Button here", 'avia_framework' ),
    							"id" 	=> "custom_bg_hover",
    							"type" 	=> "colorpicker",
    							"std" 	=> "#444444",
    							"required" => array('color_hover','equals','custom')
    						),
    					
    						
    						
    											
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    						
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    						
    				);
    
    			}
    			
    			
    			
    			/**
    			 * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
    			 * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
    			 * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
    			 *
    			 *
    			 * @param array $params this array holds the default values for $content and $args. 
    			 * @return $params the return array usually holds an innerHtml key that holds item specific markup.
    			 */
    			function editor_element($params)
    			{
    				extract(av_backend_icon($params)); // creates $font and $display_char if the icon was passed as param "icon" and the font as "font" 
    				
    				$inner  = "<div class='avia_button_box avia_hidden_bg_box avia_textblock avia_textblock_style'>";
    				$inner .= "		<div ".$this->class_by_arguments('icon_select, color' ,$params['args']).">";
    				$inner .= "			<span ".$this->class_by_arguments('font' ,$font).">";
    				$inner .= "			<span data-update_with='icon_fakeArg' class='avia_button_icon avia_button_icon_left'>".$display_char."</span>";
    				$inner .= "			</span>";
    				$inner .= "			<span data-update_with='label' class='avia_iconbox_title' >".$params['args']['label']."</span>";
    				$inner .= "			<span ".$this->class_by_arguments('font' ,$font).">";
    				$inner .= "			<span data-update_with='icon_fakeArg' class='avia_button_icon avia_button_icon_right'>".$display_char."</span>";
    				$inner .= "			</span>";
    				$inner .= "		</div>";
    				$inner .= "</div>";
    				
    				$params['innerHtml'] = $inner;
    				$params['class'] = "";
    				
    				return $params;
    			}
    			
    			
    			
    			/**
    			 * Frontend Shortcode Handler
    			 *
    			 * @param array $atts array of attributes
    			 * @param string $content text within enclosing form of shortcode element 
    			 * @param string $shortcodename the shortcode found, when == callback name
    			 * @return string $output returns the modified html string 
    			 */
    			function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "")
    			{
    			   avia_sc_button_full::$count++;
    			
    			   $atts =  shortcode_atts(array('label' => 'Click me', 
    			                                 'link' => '',
    											 'link_oc' => '', 
    			                                 'link_target' => '',
    			                                 'color' => 'theme-color',
    			                                 'color_hover' => 'theme-color-subtle',
    			                                 'custom_bg' => '#444444',
    			                                 'custom_bg_hover' => '#444444',
    			                                 'custom_font' => '#ffffff',
    			                                 'position' => 'center',
    			                                 'icon_select' => 'no',
    			                                 'icon' => '', 
    			                                 'font' =>'',
    			                                 'icon_hover' => '',
    			                                 'description_pos' => ''
    			                                 ), $atts, $this->config['shortcode']);
    			
    				$display_char = av_icon($atts['icon'], $atts['font']);
    			
    				
    				$style = "color:".$atts['custom_font']."; ";
    				$style_hover = "";
    				if($atts['color'] == "custom") 
    				{
    					$style .= "background-color:".$atts['custom_bg'].";  ";
    				}
    				
    				if($atts['color_hover'] == "custom") 
    				{
    					$style_hover = "style='background-color:".$atts['custom_bg_hover']."; '";
    				}
    				
    				$extraClass = $atts['icon_hover'] ? "av-icon-on-hover" : "";
    				
    			    $blank = strpos($atts['link_target'], '_blank') !== false ? ' target="_blank" ' : "";
    			    $blank .= strpos($atts['link_target'], 'nofollow') !== false ? ' rel="nofollow" ' : "";
    
    			    $link  = AviaHelper::get_url($atts['link']);
    			    $link  = $link == "http://" ? "" : $link;
    				
    				$link_oc  = $atts['link_oc'];
    			    
    			    if($style) $style = "style='{$style}'";
    			    
    			    $content_html = "";
    			    
    				if($content && $atts['description_pos'] == 'above') 
    				{
    					$content_html .= "<div class='av-button-description av-button-description-above'>".ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content) )."</div>";
    			    }
    			    if('yes-left-icon' == $atts['icon_select']) $content_html .= "<span class='avia_button_icon avia_button_icon_left ' {$display_char}></span>";
    				$content_html .= "<span class='avia_iconbox_title' >".$atts['label']."</span>";
    			    if('yes-right-icon' == $atts['icon_select']) $content_html .= "<span class='avia_button_icon avia_button_icon_right' {$display_char}></span>";
    				if($content && $atts['description_pos'] == 'below') 
    				{
    					$content_html .= "<div class='av-button-description av-button-description-below'>".ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content) )."</div>";
    			    }
    			    
    			    $output  = "";
    				$output .= "<a href='{$link}' {$link_oc} class='avia-button avia-button-fullwidth {$extraClass} ".$this->class_by_arguments('icon_select, color' , $atts, true)."' {$blank} {$style} >";
    				$output .= $content_html;
    				$output .= "<span class='avia_button_background avia-button avia-button-fullwidth avia-color-".$atts['color_hover']."' {$style_hover}></span>";
    				$output .= "</a>";
    				
    				$output =  "<div class='avia-button-wrap avia-button-".$atts['position']." ".$meta['el_class']."'>".$output."</div>";
    			
    				
    				$params['class'] = "main_color av-fullscreen-button avia-no-border-styling ".$meta['el_class'];
    				$params['open_structure'] = false;
    				$id = AviaHelper::save_string($atts['label'],'-');
    				$params['id'] = !empty($id) ? $id : "av-fullwidth-button-".avia_sc_button_full::$count;
    				$params['custom_markup'] = $meta['custom_markup'];
    				
    				//we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before
    				if($meta['index'] == 0) $params['close'] = false;
    				if(!empty($meta['siblings']['prev']['tag']) && in_array($meta['siblings']['prev']['tag'], AviaBuilder::$full_el_no_section )) $params['close'] = false;
    				
    				
    				if(!ShortcodeHelper::is_top_level()) return $output;
    				
    				$button_html = $output;
    				
    				$output  =  avia_new_section($params);
    				$output .= $button_html;
    				$output .= avia_section_after_element_content( $meta , 'after_fullwidth_button' );
    				
    				return $output;
    				
    				
    				return $output;
    			}
    			
    			
    			
    	
    	}
    }
    

    Unless Kriesei decide to take this free bit of code development and add it to their next Enfold theme update, this code will be overwritten when the next Enfold update is released. Easiest way around that is to save it in the equivalent location within a child theme.

    #599621

    In reply to: Post Slider Titles

    Hi!

    Thank you for coming back.

    Currently this is not possible.

    I added 2 filter hooks to the core – hope, kriesi will integrate in the next update.

    To use the hooks add following code to Functions.php file of your child theme (or parent theme, if not using a child theme)- you can use Dashboard -> Appearance > Editor:

    
    add_filter( 'avf_postslider_title', 'my_postslider_title', 10, 2 );
    add_filter( 'avf_magazine_title', 'my_magazine_title', 10, 2 );
    
    function my_postslider_title( $title, $entry )
    		{
    			$title = substr( $title, 0, 15 );      // change 15 to desired length
    			return $title;
    		}
    
    function my_magazine_title( $title, $entry )
    		{
    			$title = substr( $title, 0, 15 );
    			return $title;
    		}
    

    You have to modify core files:

    In enfold\config-templatebuilder\avia-shortcodes\postslider.php line 374 you find:

    
    if($loop_counter == 1) $output .= "<div class='slide-entry-wrap'>";
    

    Replace with:

    
    $title = apply_filters( 'avf_postslider_title', $title, $entry );
    
    if($loop_counter == 1) $output .= "<div class='slide-entry-wrap'>";
    

    In enfold\config-templatebuilder\avia-shortcodes\magazine.php line 529:

    
    $title	 		= "<a href='{$link}' {$titleAttr}>". get_the_title( $entry->ID ) ."</a>";
    

    replace with:

    
    $title	 		= "<a href='{$link}' {$titleAttr}>". apply_filters( 'avf_magazine_title', get_the_title( $entry->ID ), $entry ) ."</a>";
    
    

    Cheers!
    Günter

    #599428

    Hey!

    You have to do this modification inside the includes > loop-index.php file. Look for this code around line 139:

                    $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    
    

    .. above that, add this code:

    if(in_category('open-theism')) {
    					$icon = '<span class="iconfont" '.av_icon_string('new').'></span>';
    				}

    After that, add this code in the functions.php file:

    add_filter('avf_default_icons', 'avf_default_icons_mod', 10, 100);
    function avf_default_icons_mod($icons) {
        $icons['new'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue858');
        return $icons;
    }
    

    Cheers!
    Ismael

    #596560

    Hi,

    That happens because the grid doesn’t use the_title so the plugin is unable to hook into it, try the following, open /config-templatebuilder/avia-shortcodes/postslider.php and look for line:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    Replace it by this:

    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".get_the_title()."</a></h3>";
    

    Regards,
    Josue

Viewing 30 results - 91 through 120 (of 247 total)