Forum Replies Created

Viewing 30 posts - 1 through 30 (of 50 total)
  • Author
    Posts
  • in reply to: enfold burger menu aligment of close cross on big screens #1261539

    Hi,
    but i dont want the logo and the menu icon to be Fullwidth in the header. From the point of usability the cross to close a menu is always in the right corner.

    in reply to: enfold burger menu aligment of close cross on big screens #1261528

    in your screenshot i see the error. The cross (to close the flyout menu) has to be in the right corner of the flyout menu but it isnt. it is in the container of the header.

    please take a look at my screenshot. In pink you see the position i want for the close-cross-icon.

    in reply to: enfold burger menu aligment of close cross on big screens #1258879

    hi,
    screenwidth is 2023px for example. i use firefox but the problem is also in chrome.

    in reply to: Can't expand WordPress Boxes in WooCommerce Product #900746

    okay, hired a freelancer.

    in reply to: Six columns Section with Equal Height #824803

    and please no workarounds anymore.

    in reply to: Six columns Section with Equal Height #824801

    hi victoria,
    sorry you are not a big help. i do not want to use a grid row because there are plenty other problems which i had and have with the grid row.
    So how can i make a 6-column grid with the equal height columns???

    in reply to: Six columns Section with Equal Height #824042

    hi victoria,
    that was not the question – the screendesign said, that it must be 6 columns. so how i figure that out?
    bye

    in reply to: Six columns Section with Equal Height #822854

    there it is :)

    in reply to: White Startpage in Safari #807623

    okay i solved it! It was the css minify Settings in the W3 Total Cache Plugin. i deactived the minifying and now all is good!

    in reply to: White Startpage in Safari #803356

    Sure I did that – the error is also on the iphone.

    in reply to: Enfold Video Thumbnail not displayed on mobile devices #688516

    i tried it at several smartphones at the weekend at its NOT working. Not on iphone 6 or 5 and also not on android devices. i hired a freelancer how fixed the problem now – but what about future updates of enfold? this is a bug in the theme and its not good that the support team do not see the error and also is doing nothing about it.

    in reply to: Enfold Video Thumbnail not displayed on mobile devices #687489

    hi,
    i tested both wifi and G and i didn’t load the thumbnail. Also the client said, that some of his clients do not see the videothumbnail on mobile devices. my version is 9.3.5 (13G36).

    bye

    in reply to: Enfold Video Thumbnail not displayed on mobile devices #687468

    no – i didnt fix it. On my iPhone 5s it doesnt work (with safari) also not on the iphone 6. An even on my Huawei android phone it doesnt work. Please its very urgent.
    Its fine that it works fine on your phone – but not everybody has your phone. it has to be cross-device-compatibel.

    in reply to: Enfold Video Thumbnail not displayed on mobile devices #686230

    ?

    in reply to: Add new Element to ALB #656129

    hello,

    i have create a Titeloben.php in shortcodes folder in my child-theme. I attached the php file. What must i change so that the shortcode is working and its a new element. this is the content:

    <?php
    /**
     * COLUMNS
     * Shortcode which creates columns for better content separation
     */
    
     // Don't load directly
    if ( !defined('ABSPATH') ) { die('-1'); }
    
    if ( !class_exists( 'avia_sc_titeloben' ) )
    {
    	class avia_sc_titeloben extends aviaShortcodeTemplate{
    
    			static $section_count = 0;
    			static $add_to_closing = "";
    			static $close_overlay = "";
    
    			/**
    			 * Create the config array for the shortcode button
    			 */
    			function shortcode_insert_button()
    			{
    				$this->config['name']		= __('TitelOben', 'avia_framework' );
    				$this->config['icon']		= AviaBuilder::$path['imagesURL']."sc-titeloben.png";
    				$this->config['tab']		= __('Layout Elements', 'avia_framework' );
    				$this->config['order']		= 20;
    				$this->config['shortcode'] 	= 'titeloben';
    				$this->config['html_renderer'] 	= false;
    				$this->config['tinyMCE'] 	= array('disable' => "true");
    				$this->config['tooltip'] 	= __('Creates a section with unique background image and colors', 'avia_framework' );
    				$this->config['drag-level'] = 1;
    				$this->config['drop-level'] = 1;
    
    			}
    
    			/**
    			 * 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($params);
    				$name = $this->config['shortcode'];
    				$data['shortcodehandler'] 	= $this->config['shortcode'];
        			$data['modal_title'] 		= $this->config['name'];
        			$data['modal_ajax_hook'] 	= $this->config['shortcode'];
    				$data['dragdrop-level'] 	= $this->config['drag-level'];
    				$data['allowed-shortcodes']	= $this->config['shortcode'];
    
        			if(!empty($this->config['modal_on_load']))
        			{
        				$data['modal_on_load'] 	= $this->config['modal_on_load'];
        			}
    
        			$dataString  = AviaHelper::create_data_string($data);
    
    				$output  = "<div class='avia_layout_section avia_pop_class avia-no-visual-updates ".$name." av_drag' ".$dataString.">";
    
    				$output .= "    <div class='avia_sorthandle menu-item-handle'>";
    				$output .= "        <span class='avia-element-title'>".$this->config['name']."</span>";
    			    //$output .= "        <a class='avia-new-target'  href='#new-target' title='".__('Move Section','avia_framework' )."'>+</a>";
    				$output .= "        <a class='avia-delete'  href='#delete' title='".__('Delete Section','avia_framework' )."'>x</a>";
    
    				if(!empty($this->config['popup_editor']))
        			{
        				$output .= "    <a class='avia-edit-element'  href='#edit-element' title='".__('Edit Section','avia_framework' )."'>edit</a>";
        			}
    				$output .= "<a class='avia-save-element'  href='#save-element' title='".__('Save Element as Template','avia_framework' )."'>+</a>";
    				$output .= "        <a class='avia-clone'  href='#clone' title='".__('Clone Section','avia_framework' )."' >".__('Clone Section','avia_framework' )."</a></div>";
    				$output .= "    <div class='avia_inner_shortcode avia_connect_sort av_drop' data-dragdrop-level='".$this->config['drop-level']."'>";
    				$output .= "<textarea data-name='text-shortcode' cols='20' rows='4'>".ShortcodeHelper::create_shortcode_by_array($name, $content, $args)."</textarea>";
    				if($content)
    				{
    					$content = $this->builder->do_shortcode_backend($content);
    				}
    				$output .= $content;
    				$output .= "</div></div>";
    
    				return $output;
    			}
    
    			/**
    			 * 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()
    			{
    			    global  $avia_config;
    
    				$this->elements = array(
    
    					array(
    							"type" 	=> "tab_container", 'nodescription' => true
    						),
    											
    					array(
    							"type" 	=> "tab",
    							"name"	=> __("Section Layout",'avia_framework' ),
    							'nodescription' => true
    						),
    					
    					
    					array(
    						"name" 	=> __("Section Minimum Height",'avia_framework' ),
    						"id" 	=> "min_height",
    						"desc"  => __("Define a minimum height for the section. Content within the section will be centered vertically within the section",'avia_framework' ),
    						"type" 	=> "select",
    						"std" 	=> "",
    						"subtype" => array(   __('No minimum height, use content within section to define Section height','avia_framework' )	=>'',
    						                      __('At least 100&percnt; of Browser Window height','avia_framework' )=>'100',
    						                      __('At least 75&percnt; of Browser Window height','avia_framework' )	=>'75',
    											  __('At least 50&percnt; of Browser Window height','avia_framework' )	=>'50',
    											  __('At least 25&percnt; of Browser Window height','avia_framework' )	=>'25',
    											  __('Custom height in pixel','avia_framework' )	=>'custom',
    						                  )
    				    ),
    				    
    				    array(	
    							"name" 	=> __("Section custom height", 'avia_framework' ),
    							"desc" 	=> __("Define a minimum height for the section. Use a pixel value. eg: 500px", 'avia_framework' ) ,
    							"id" 	=> "min_height_px",
    							"required"=> array('min_height','equals','custom'),
    							"std" 	=> "500px",
    							"type" 	=> "input"),
    					
    				
    				    array(
    						"name" 	=> __("Section Padding",'avia_framework' ),
    						"id" 	=> "padding",
    						"desc"  => __("Define the sections top and bottom padding",'avia_framework' ),
    						"type" 	=> "select",
    						"std" 	=> "default",
    						"subtype" => array(   __('No Padding','avia_framework' )	=>'no-padding',
    											  __('Small Padding','avia_framework' )	=>'small',
    						                      __('Default Padding','avia_framework' )	=>'default',
    						                      __('Large Padding','avia_framework' )	=>'large',
    						                      __('Huge Padding','avia_framework' )	=>'huge',
    						                  )
    				    ),
    
    /*
    				   array(
    						"name" 	=> __("Section Top Border Styling",'avia_framework' ),
    						"id" 	=> "shadow",
    						"desc"  => __("Chose a border styling for the top of your section",'avia_framework' ),
    						"type" 	=> "select",
    						"std" 	=> "no-shadow",
    						"subtype" => array( __('Display simple top border','avia_framework' )	=>'no-shadow',  
    											__('Display a small styling shadow at the top of the section','avia_framework' )	=>'shadow',
    											__('No border styling','avia_framework' )	=>'no-border-styling',
    						                      
    						                  )
    				    ),
    				    
    				    
    				    array(
    						"name" 	=> __("Section Bottom Border Styling",'avia_framework' ),
    						"id" 	=> "bottom_border",
    						"desc"  => __("Chose a border styling for the bottom of your section",'avia_framework' ),
    						"type" 	=> "select",
    						"std" 	=> "no-border-styling",
    						"subtype" => array(   
    											__('No border styling','avia_framework' )	=>'no-border-styling',
    											__('Display a small arrow that points down to the next section','avia_framework' )	=>'border-extra-arrow-down',
    						                  )
    				    ),
    				    
    				    array(	
    						"name" 	=> __("Display a scroll down arrow", 'avia_framework' ),
    						"desc" 	=> __("Check if you want to show a button at the bottom of the section that takes the user to the next section by scrolling down", 'avia_framework' ) ,
    						"id" 	=> "scroll_down",
    						"std" 	=> "",
    						"type" 	=> "checkbox"),
    */
    
    				  array(	"name" 	=> __("For Developers: Section ID", 'avia_framework' ),
    							"desc" 	=> __("Apply a custom ID Attribute to the section, so you can apply a unique style via CSS. This option is also helpful if you want to use anchor links to scroll to a sections when a link is clicked", 'avia_framework' )."<br/><br/>".
    									   __("Use with caution and make sure to only use allowed characters. No special characters can be used.", 'avia_framework' ),
    				            "id" 	=> "id",
    				            "type" 	=> "input",
    				            "std" => ""),
    				            
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    					array(
    							"type" 	=> "tab",
    							"name"  => __("Section Background" , 'avia_framework'),
    							'nodescription' => true
    						),
    						
    					/*	
    			        array(
    						"name" 	=> __("Section Colors",'avia_framework' ),
    						"id" 	=> "color",
    						"desc"  => __("The section will use the color scheme you select. Color schemes are defined on your styling page",'avia_framework' ) .
    						           '<br/><a target="_blank" href="'.admin_url('admin.php?page=avia#goto_styling').'">'.__("(Show Styling Page)",'avia_framework' )."</a>",
    						"type" 	=> "select",
    						"std" 	=> "main_color",
    						"subtype" =>  array_flip($avia_config['color_sets'])
    				    ),
    */
    				    array(
    							"name" 	=> __("Custom Background Color", 'avia_framework' ),
    							"desc" 	=> __("Select a custom background color for your Section here. Leave empty if you want to use the background color of the color scheme defined above", 'avia_framework' ),
    							"id" 	=> "custom_bg",
    							"type" 	=> "colorpicker",
    							"std" 	=> "",
    						),
    
    					array(
    							"name" 	=> __("Custom Background Image",'avia_framework' ),
    							"desc" 	=> __("Either upload a new, or choose an existing image from your media library. Leave empty if you want to use the background image of the color scheme defined above",'avia_framework' ),
    							"id" 	=> "src",
    							"type" 	=> "image",
    							"title" => __("Insert Image",'avia_framework' ),
    							"button" => __("Insert",'avia_framework' ),
    							"std" 	=> ""),
    					
    					
    					array(
    							"name" 	=> __("Custom Logo",'avia_framework' ),
    							"desc" 	=> __("Either upload a new, or choose an existing image from your media library. Leave empty if you want to use the background image of the color scheme defined above",'avia_framework' ),
    							"id" 	=> "srclogo",
    							"type" 	=> "image",
    							"title" => __("Insert Image",'avia_framework' ),
    							"button" => __("Insert",'avia_framework' ),
    							"std" 	=> ""),
    					
    					
    					
    					
    					
    					array(
    						"name" 	=> __("Background Attachment",'avia_framework' ),
    						"desc" 	=> __("Background can either scroll with the page, be fixed or scroll with a parallax motion", 'avia_framework' ),
    						"id" 	=> "attach",
    						"type" 	=> "select",
    						"std" 	=> "scroll",
                            "required" => array('src','not',''),
    						"subtype" => array(
    							
    							__('Parallax','avia_framework' ) =>'parallax'
    							
    							)
    						),
    					
                        array(
    						"name" 	=> __("Background Image Position",'avia_framework' ),
    						"id" 	=> "position",
    						"type" 	=> "select",
    						"std" 	=> "top left",
                            "required" => array('src','not',''),
    						"subtype" => array(   __('Top Left','avia_framework' )       =>'top left',
    						                      __('Top Center','avia_framework' )     =>'top center',
    						                      __('Top Right','avia_framework' )      =>'top right',
    						                      __('Bottom Left','avia_framework' )    =>'bottom left',
    						                      __('Bottom Center','avia_framework' )  =>'bottom center',
    						                      __('Bottom Right','avia_framework' )   =>'bottom right',
    						                      __('Center Left','avia_framework' )    =>'center left',
    						                      __('Center Center','avia_framework' )  =>'center center',
    						                      __('Center Right','avia_framework' )   =>'center right'
    						                      )
    				    ),
    /*
    	               array(
    						"name" 	=> __("Background Repeat",'avia_framework' ),
    						"id" 	=> "repeat",
    						"type" 	=> "select",
    						"std" 	=> "no-repeat",
                            "required" => array('src','not',''),
    						"subtype" => array(   __('No Repeat','avia_framework' )          =>'no-repeat',
    						                      __('Repeat','avia_framework' )             =>'repeat',
    						                      __('Tile Horizontally','avia_framework' )  =>'repeat-x',
    						                      __('Tile Vertically','avia_framework' )    =>'repeat-y',
    						                      __('Stretch to fit (stretches image to cover the element)','avia_framework' )     =>'stretch',
    						                      __('Scale to fit (scales image so the whole image is always visible)','avia_framework' )     =>'contain'
    						                      )
    				  ),
    
    	               */
    
    					
    					array(	
    						"name" 	=> __("Background Video", 'avia_framework' ),
    						"desc" 	=> __('You can also place a video as background for your section. Enter the URL to the Video. Currently supported are Youtube, Vimeo and direct linking of web-video files (mp4, webm, ogv)', 'avia_framework' ) .'<br/><br/>'.
    						__('Working examples Youtube & Vimeo:', 'avia_framework' ).'<br/>
    					<strong>http://vimeo.com/1084537</strong><br/> 
    					<strong>http://www.youtube.com/watch?v=5guMumPFBag</strong><br/><br/>',
    						"id" 	=> "video",
    						"std" 	=> "",
    						"type" 	=> "input"),
    						
    					array(	
    							"name" 	=> __("Video Aspect Ratio", 'avia_framework' ),
    							"desc" 	=> __("In order to calculate the correct height and width for the video slide you need to enter a aspect ratio (width:height). usually: 16:9 or 4:3.", 'avia_framework' )."<br/>".__("If left empty 16:9 will be used", 'avia_framework' ) ,
    							"id" 	=> "video_ratio",
    							"required"=> array('video','not',''),
    							"std" 	=> "16:9",
    							"type" 	=> "input"),
    					
    					array(	
    							"name" 	=> __("Hide video on Mobile Devices?", 'avia_framework' ),
    							"desc" 	=> __("You can chose to hide the video entirely on Mobile devices and instead display the Section Background image", 'avia_framework' )."<br/><small>".__("Most mobile devices can't autoplay videos to prevent bandwidth problems for the user", 'avia_framework' ) ."</small>" ,
    							"id" 	=> "video_mobile_disabled",
    							"required"=> array('video','not',''),
    							"std" 	=> "",
    							"type" 	=> "checkbox"),
    					
    					
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    					
    
    					
    array(
    							"type" 	=> "tab",
    							"name"  => __("Section Background Overlay" , 'avia_framework'),
    							'nodescription' => true
    						),
    					
    					array(	
    							"name" 	=> __("Enable Overlay?", 'avia_framework' ),
    							"desc" 	=> __("Check if you want to display a transparent color and/or pattern overlay above your section background image/video", 'avia_framework' ),
    							"id" 	=> "overlay_enable",
    							"std" 	=> "",
    							"type" 	=> "checkbox"),
    					
    					 array(
    						"name" 	=> __("Overlay Opacity",'avia_framework' ),
    						"desc" 	=> __("Set the opacity of your overlay: 0.1 is barely visible, 1.0 is opaque ", 'avia_framework' ),
    						"id" 	=> "overlay_opacity",
    						"type" 	=> "select",
    						"std" 	=> "0.5",
                            "required" => array('overlay_enable','not',''),
    						"subtype" => array(   __('0.1','avia_framework' )=>'0.1',
    						                      __('0.2','avia_framework' )=>'0.2',
    						                      __('0.3','avia_framework' )=>'0.3',
    						                      __('0.4','avia_framework' )=>'0.4',
    						                      __('0.5','avia_framework' )=>'0.5',
    						                      __('0.6','avia_framework' )=>'0.6',
    						                      __('0.7','avia_framework' )=>'0.7',
    						                      __('0.8','avia_framework' )=>'0.8',
    						                      __('0.9','avia_framework' )=>'0.9',
    						                      __('1.0','avia_framework' )=>'1',
    						                      )
    				  		),
    				  		
    				  	array(
    							"name" 	=> __("Overlay Color", 'avia_framework' ),
    							"desc" 	=> __("Select a custom  color for your overlay here. Leave empty if you want no color overlay", 'avia_framework' ),
    							"id" 	=> "overlay_color",
    							"type" 	=> "colorpicker",
                            	"required" => array('overlay_enable','not',''),
    							"std" 	=> "",
    						),
    				  	
    				  	array(
                            "required" => array('overlay_enable','not',''),
    						"id" 	=> "overlay_pattern",
    						"name" 	=> __("Background Image", 'avia_framework'),
    						"desc" 	=> __("Select an existing or upload a new background image", 'avia_framework'),
    						"type" 	=> "select",
    						"subtype" => array(__('No Background Image', 'avia_framework')=>'',__('Upload custom image', 'avia_framework')=>'custom'),
    						"std" 	=> "",
    						"folder" => "images/background-images/",
    						"folderlabel" => "",
    						"group" => "Select predefined pattern",
    						"exclude" => array('fullsize-', 'gradient')
    					),
    				  	
    				  	
    				  	array(
    							"name" 	=> __("Custom Pattern",'avia_framework' ),
    							"desc" 	=> __("Upload your own seamless pattern",'avia_framework' ),
    							"id" 	=> "overlay_custom_pattern",
    							"type" 	=> "image",
    							"fetch" => "url",
    							"secondary_img"=>true,
                            	"required" => array('overlay_pattern','equals','custom'),
    							"title" => __("Insert Pattern",'avia_framework' ),
    							"button" => __("Insert",'avia_framework' ),
    							"std" 	=> ""),
    					
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
    
    							
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						),
                    );
    			}
    
    			/**
    			 * 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 = "")
    			{
    				global $avia_config;
    			
    				avia_sc_titeloben::$section_count ++;
    			    $atts = shortcode_atts(array(	'src' => '', 
    			    								'position' => 'top left', 
    			    								'repeat' => 'no-repeat', 
    			    								'attach' => 'scroll', 
    			    								'color' => 'main_color', 
    			    								'custom_bg' => '', 
    			    								'padding'=>'default' , 
    			    								'shadow'=>'shadow', 
    			    								'id'=>'', 
    			    								'min_height' => '', 
    			    								'min_height_px' => '', 
    			    								'video' => '', 
    			    								'video_ratio'=>'16:9', 
    			    								'video_mobile_disabled'=>'',
    			    								'custom_markup' => '',
    			    								'attachment' => '',
    			    								'attachment_size' => '',
    			    								'bottom_border' => '',
    			    								'overlay_enable' => '',
    			    								'overlay_opacity' => '',
    			    								'overlay_color' => '',
    			    								'overlay_pattern' => '',
    			    								'overlay_custom_pattern' => '',
    			    								'scroll_down' => ''
    			    								
    			    								), 
    			    							$atts, $this->config['shortcode']);
    							    							
    			    							
    				extract($atts);
    			    $output      = "";
    			    $class       = "avia-section ".$color." avia-section-".$padding." avia-".$shadow;
    			    $background  = "";
    				
    				
    				$params['id'] = !empty($id) ? AviaHelper::save_string($id,'-') :"av_section_".avia_sc_titeloben::$section_count;
    				$params['custom_markup'] = $meta['custom_markup'];
    				$params['attach'] = "";
    				
    				if(!empty($attachment) && !empty($attachment_size))
    				{
    					$attachment_entry = get_post( $attachment );
    					
    					if(!empty($attachment_entry))
    					{
    	                	if(!empty($attachment_size))
    						{
    							$src = wp_get_attachment_image_src($attachment_entry->ID, $attachment_size);
    							$src = !empty($src[0]) ? $src[0] : "";
    						}
    					}
    				}
    				else
    				{
    					$attachment = false;
    				}
    				
    				if($custom_bg != "")
    			    {
    			         $background .= "background-color: {$custom_bg}; ";
    			    }
    				
    				
    				/*set background image*/
    				if($src != "")
    				{
    					if($repeat == 'stretch')
    					{
    						$background .= "background-repeat: no-repeat; ";
    						$class .= " avia-full-stretch";
    					} 
    					else if($repeat == "contain")
    					{
    						$background .= "background-repeat: no-repeat; ";
    						$class .= " avia-full-contain";
    					}
    					else
    					{
    						$background .= "background-repeat: {$repeat}; ";
    					}
    				
    				     $background .= "background-image: url({$src}); ";
    				     $background .= $attach == 'parallax' ? "background-attachment: scroll; " : "background-attachment: {$attach}; ";
    				     $background .= "background-position: {$position}; ";
    				     
    				     
    				     
    				    if($attach == 'parallax')
    					{
    						$attachment_class = "";
    						if($repeat == 'stretch' || $repeat == 'no-repeat' ){ $attachment_class .= " avia-full-stretch"; }
    						if($repeat == 'contain'  ){ $attachment_class .= " avia-full-contain"; }
    					
    						$class .= " av-parallax-section";
    						$speed = apply_filters('avf_parallax_speed', "0.3", $params['id']); 
    						$params['attach'] .= "<div class='av-parallax' data-avia-parallax-ratio='{$speed}' >";
    						$params['attach'] .= "<div class='av-parallax-inner {$color} {$attachment_class}' style = '{$background}' >";
    						$params['attach'] .= "</div>";
    						$params['attach'] .= "</div>";
    						$background = "";
    					}
    					
    					
    					$params['data'] = "data-section-bg-repeat='{$repeat}'";
    					
    				}
    				else
    				{
    					$attach = "scroll";
    				}
    				
    				
    				if($custom_bg != "")
    			    {
    			         $background .= "background-color: {$custom_bg}; ";
    			    }
    
    			    
    				
    			
    			    if($background) $background = "style = '{$background}'";
    			    
    			    
    			    /*check/create overlay*/
    				$overlay 	= "";
    				$pre_wrap 	= "<div class='av-section-color-overlay-wrap'>" ;
    				if(!empty($overlay_enable))
    				{
    					$overlay_src = "";
    					$overlay = "opacity: {$overlay_opacity}; ";
    					if(!empty($overlay_color)) $overlay .= "background-color: {$overlay_color}; ";
    					if(!empty($overlay_pattern))
    					{
    						if($overlay_pattern == "custom")
    						{
    							$overlay_src = $overlay_custom_pattern;
    						}
    						else
    						{
    							$overlay_src = str_replace('{{AVIA_BASE_URL}}', AVIA_BASE_URL, $overlay_pattern);
    						}
    					}
    					
    					if(!empty($overlay_src)) $overlay .= "background-image: url({$overlay_src}); background-repeat: repeat;";
    					$overlay = "<div class='av-section-color-overlay' style='{$overlay}'></div>";
    					$class .= " av-section-color-overlay-active";
    					
    					$params['attach'] .= $pre_wrap . $overlay;
    					
    				}
    				
    				
    				
    				
    				if(!empty($scroll_down))
    				{	
    					if(!$overlay)
    					{
    					$params['attach'] .= $pre_wrap;	
    					}
    					$params['attach'] .= "<a href='#next-section' title='' class='scroll-down-link' ". av_icon_string( 'scrolldown' ). "></a>";
    				}
    			    
    			    
    			    
    				$class .= " avia-bg-style-".$attach;
    			    $params['class'] = $class." ".$meta['el_class'];
    			    $params['bg']    = $background;
    				$params['min_height'] = $min_height;
    				$params['min_height_px'] = $min_height_px;
    				$params['video'] = $video;
    				$params['video_ratio'] = $video_ratio;
    				$params['video_mobile_disabled'] = $video_mobile_disabled;
    				
    			    if(isset($meta['index']))
    			    {
    			    	if($meta['index'] == 0) 
    			    	{
    			    		$params['main_container'] = true;
    			    	}
    			    	
    			    	if($meta['index'] == 0 || (isset($meta['siblings']['prev']['tag']) && in_array($meta['siblings']['prev']['tag'], AviaBuilder::$full_el_no_section )))
    			    	{
    			    		$params['close'] = false;
    			    	}
    			    }
    		
    				
    				$avia_config['layout_container'] = "section";
    				
    				$output .= avia_new_section($params);
    				$output .=  ShortcodeHelper::avia_remove_autop($content,true) ;
    				
    				/*set extra arrow element*/
    				if(strpos($bottom_border, 'border-extra') !== false)
    				{
    					$backgroundEl = "";
    					$backgroundElColor = !empty($custom_bg) ? $custom_bg : $avia_config['backend_colors']['color_set'][$color]['bg'];
    					
    					if($backgroundElColor) $backgroundEl = " style='background-color:{$backgroundElColor};' ";
    					
    					avia_sc_titeloben::$add_to_closing = "<div class='av-extra-border-element {$bottom_border}'><div class='av-extra-border-outer'><div class='av-extra-border-inner' {$backgroundEl}></div></div></div>";
    				}
    				else
    				{
    					avia_sc_titeloben::$add_to_closing = "";
    				}
    				
    				
    				//next section needs an extra closing tag if overlay with wrapper was added:
    				if($overlay || !empty($scroll_down)) 
    				{ 
    					avia_sc_titeloben::$close_overlay = "</div>";
    				}
    				else
    				{
    					avia_sc_titeloben::$close_overlay = "";
    				}
    				
    				//if the next tag is a section dont create a new section from this shortcode
    				if(!empty($meta['siblings']['next']['tag']) && in_array($meta['siblings']['next']['tag'], AviaBuilder::$full_el))
    				{
    				    $skipSecond = true;
    				}
    
    				//if there is no next element dont create a new section. if we got a sidebar always create a next section at the bottom
    				if(empty($meta['siblings']['next']['tag']) && !avia_has_sidebar())
    				{
    				    $skipSecond = true;
    				}
    
    				if(empty($skipSecond))
    				{
    					$new_params['id'] = "after_section_".( avia_sc_titeloben::$section_count );
    					$output .= avia_new_section($new_params);
    				}
    				
    				unset($avia_config['layout_container']);
    				return $output;
    			}
    	}
    }
    
    if(!function_exists('avia_new_section'))
    {
    	function avia_new_section($params = array())
    	{
    		global $avia_section_markup, $avia_config;
    		
    	    $defaults = array(	'class'=>'main_color', 
    	    					'bg'=>'', 
    	    					'close'=>true, 
    	    					'open'=>true, 
    	    					'open_structure' => true, 
    	    					'open_color_wrap' => true, 
    	    					'data'=>'', 
    	    					"style"=>'', 
    	    					'id' => "", 
    	    					'main_container' => false, 
    	    					'min_height' => '',
    	    					'min_height_px' => '',
    	    					'video' => '',
    	    					'video_ratio' => '16:9',
    	    					'video_mobile_disabled' => '',
    	    					'attach' => "",
    	    					'before_new' => "",
    	    					'custom_markup' => ''
    	    					);
    	    
    	    
    	    
    	    $defaults = array_merge($defaults, $params);
    	    extract($defaults);
    			
    	    $post_class = "";
    	    $output     = "";
    	    $bg_slider  = "";
    	    $container_style = "";
    	    if($id) $id = "id='{$id}'";
    	
    	    //close old content structure. only necessary when previous element was a section. other fullwidth elements dont need this
    	    if($close) 
    	    {
    	    	$cm		 = avia_section_close_markup();
    	    	$output .= "</div></div>{$cm}</div>".avia_sc_titeloben::$add_to_closing.avia_sc_titeloben::$close_overlay."</div>";
    	    	
    		}
    	    //start new
    	    if($open)
    	    {	
    	        if(function_exists('avia_get_the_id')) $post_class = "post-entry-".avia_get_the_id();
    	
    	        if($open_color_wrap)
    	        {
    	        	if(!empty($min_height)) 
    	        	{
    	        		$class .= " av-minimum-height av-minimum-height-".$min_height;
    	        		if($min_height == 'custom' && $min_height_px != "")
    	        		{
    	        			$min_height_px 		= (int)$min_height_px;
    	        			$container_style 	= "style='height:{$min_height_px}px'";
    	        		}
    	        	}
    	        	
    	        	if(!empty($video)) 
    	        	{
    	        		$slide = array( 
    	        						'shortcode' => 'av_slideshow',  
    	        						'content' => '', 
    	        						'attr' => array( 	'id'=>'', 
    	        											'video'=>$video , 
    	        											'slide_type' => 'video', 
    	        											'video_mute' => true,
    	        											'video_loop' => true,
    	        											'video_ratio' => $video_ratio,
    	        											'video_controls' => 'disabled',
    	        											'video_section_bg' => true,
    	        											'video_format'=> '',
    	        											'video_mobile'	=>'',
    	        											'video_mobile_disabled'=> $video_mobile_disabled
    	        										)  
    	        						);
    	        		
    	        		
    	        		$bg_slider = new avia_slideshow( array('content' => array($slide) ) );
    	        		$bg_slider->set_extra_class('av-section-video-bg');
    	        		$class .= " av-section-with-video-bg";
    	        		$class .= !empty($video_mobile_disabled) ? " av-section-mobile-video-disabled" : "";
    	        		$data .= "  data-section-video-ratio='{$video_ratio}'";
    	        		
    	        	}
    	        	$output .= $before_new;
    	        	
    	        	if($class == "main_color") $class .= " av_default_container_wrap";
    	        	
    	        	$output .= "<div {$id} class='{$class} container_wrap ".avia_layout_class( 'main' , false )."' {$bg} {$data} {$style}>"; 
    	        	$output .= !empty($bg_slider) ? $bg_slider->html() : "";
    	        	$output .= $attach;
    	        	$output .= apply_filters('avf_section_container_add','',$defaults);
    	        }
    	
    	
    			//this applies only for sections. other fullwidth elements dont need the container for centering
    	        if($open_structure)
    	        {
    	        	if(!empty($main_container))
    	        	{
    					$markup = 'main '.avia_markup_helper(array('context' =>'content','echo'=>false, 'custom_markup'=>$custom_markup));
    					$avia_section_markup = 'main';
    				}
    				else
    				{
    					$markup = "div";
    				}
    				
    		        $output .= "<div class='container' {$container_style}>";
    		        $output .= "<{$markup} class='template-page content  ".avia_layout_class( 'content' , false )." units'>";
    		        $output .= "<div class='post-entry post-entry-type-page {$post_class}'>";
    		        $output .= "<div class='entry-content-wrapper clearfix'>";
    		        
    		       
    
    	        }
    	    }
    	    return $output;
    	
    	}
    }
    
    if(!function_exists('avia_section_close_markup'))
    {
    	function avia_section_close_markup()
    	{
    		global $avia_section_markup, $avia_config;
    		
    		if(!empty($avia_section_markup))
    		{
    			$avia_section_markup = false;
    						$close_markup = "</main><!-- close content main element -->";
    			
    		}
    		else
    		{
    			$close_markup = "</div><!-- close content main div -->"; 
    		}
    		
    		return $close_markup;
    	}
    }
    
    if(!function_exists('avia_section_after_element_content'))
    {
    	function avia_section_after_element_content($meta, $second_id = "", $skipSecond = false, $extra = "")
    	{
    	
    		$output = "</div>"; //close section
    		$output .= $extra;
    					
    		//if the next tag is a section dont create a new section from this shortcode
    		if(!empty($meta['siblings']['next']['tag']) && in_array($meta['siblings']['next']['tag'], AviaBuilder::$full_el )){ $skipSecond = true; }
    	
    		//if there is no next element dont create a new section.
    		if(empty($meta['siblings']['next']['tag'])) { $skipSecond = true; }
    		
    		if(empty($skipSecond)) { $output .= avia_new_section(array('close'=>false, 'id' => $second_id)); }
    		
    		return $output;
    	}
    }
    
    
    in reply to: Content Slider same height and button on the bottom #640965

    here you got it :)

    in reply to: Content Slider same height and button on the bottom #640618

    hey sorry but the code is only working on resize. maybe this line is wrong:
    $(window).on(‘resize’, function()
    also the button is overlayed in the text

    in reply to: Add Links (mini menu) in Header #640042

    thanks vinay!
    but i need the widget in the content container. with the provided code, the widget is positioned fullwidth. there is the problem with the cart icon (see attached site for example)

    in reply to: Content Slider same height and button on the bottom #639927

    thanks 4 help! sorry but the content slider only gets the same height when i resize the window?! but it should be same height when i go on the site.
    and sometimes (when the text is too long) the button is in the text. can you plz check that?
    thanks!

    in reply to: Navigation left – Search right? #639789

    thanks vinay for response! but when i hover the icon it jumps to the menu. (look at the attached website). I cant find the css rule for only hovering the icon….plz help :)

    in reply to: Content Slider same height and button on the bottom #639754

    hello ismael,

    thanks 4 reply. but the first code snippet is php so inserting this snippet in the css field will not help. In which php file i have to put the first code snippet?
    thanks!

    in reply to: Styling blog articles with css | article div problem #610093

    hello,

    thx 4 reply but this will change the whole site. As i said, i only want the whitebackground and the shadow in the blog:
    i have a little problem. i styled my blog entries a little bit different to the normal site. therefor i used css code like this:
    article.post-entry {
    background-color: white;
    margin-bottom: 25px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(178,178,178,0.1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(178,178,178,0.1);
    box-shadow: 0px 0px 5px 0px rgba(178,178,178,0.1);
    }

    -> all my blog articles are build without the advanced layout builder. I used the article tag because on my normale site pages the contentboxes are all normal divs. but now i build a blog article with the advanced layoutbuilder and i realized that the css code i wrote dont aplly on these article because all blog entries with the advanced layout builder dont show up with the article tag – instead of with a normal div tag. how can i just change the .post-entry class only for the blog articles (not for the whole site).

    here you can see some examples:

    normal page: http://kopfundstift.de/webdesign/
    blog article as it should be: http://kopfundstift.de/die-10-besten-wordpress-themes-2015/
    and the private article with no white background (you have to login to see it) with the ERROR: http://kopfundstift.de/scrollytelling-verfeinert-das-multimediale-storytelling/

    Thanks!

    in reply to: Styling blog articles with css | article div problem #608785

    thanks 4 the reply. But the code doesnt work for me?!?! What should i do?

    bye

    in reply to: Styling blog articles with css | article div problem #601207

    ok, got the problem described above here:

    should look like this:

    another question is why the thumbnail for the post is not 100% width. It get reduced by some inline css with a width 845px. but should be 883px? Enfold is picking the wrong thumbnail size. How get i managed that the Thumbnail is width:100% ??? see attached screenshot:
    wordpress themes 2016

    thanks!

    in reply to: Styling blog articles with css | article div problem #591149

    sorry didnt get it to work with that. can you just post the concrete css rule for that?

    thanks :)

    in reply to: Turn Social Share buttons in Social Link Icons #564495

    yeah! You just copied the html code. good coding skills!

    in reply to: Turn Social Share buttons in Social Link Icons #564009

    here it is!

    in reply to: Turn Social Share buttons in Social Link Icons #563996

    hi yigit,

    i dont want the social icons in the footer or header. see the screenshot for position. i used the social share shortcode to position it. but these links are share links. but i cant find the file where to change the php code.Kopf und Stift webdesign

    in reply to: Turn Social Share buttons in Social Link Icons #563985

    i enabled it in the footer

    in reply to: enfold full width slider disappears after one round #561458

    seriously? wait for the next update is your solution?

Viewing 30 posts - 1 through 30 (of 50 total)