__( "Advanced Hover Effects", "awavcl" ), "base" => "awavc_hover_effects", "class" => "", "icon" => "advc_hover_effects_icon", "category" => __( "Advanced Elements", "awavcl"), "description" => __( "Image on hover effects", "awavcl"), "params" => array( array( "type" => "dropdown", "heading" => __( "Select Style", "awavcl" ), "param_name" => "advc_style", "value" => array( __( 'Style 1', "awavcl" ) => "style-one", __( 'Style 2', "awavcl" ) => "style-two", __( 'Style 3', "awavcl" ) => "style-four", __( 'Style 4', "awavcl" ) => "style-five", __( 'Style 5', "awavcl" ) => "style-six", __( 'Style 6', "awavcl" ) => "style-eight", __( 'Style 7', "awavcl" ) => "style-nine", __( 'Style 8', "awavcl" ) => "style-eleven", __( 'Style 9', "awavcl" ) => "style-twelve", __( 'Style 10', "awavcl" ) => "style-Thirteen", __( 'Style 11(Circle)', "awavcl" ) => "style-cr-11", __( 'Style 12(Circle)', "awavcl" ) => "style-cr-12", __( 'Style 13(Circle)', "awavcl" ) => "style-cr-13",/* __( 'Style 14(Circle)', "awavcl" ) => "style-cr-14", __( 'Style 15(Circle)', "awavcl" ) => "style-cr-15", __( 'Style 16(Circle)', "awavcl" ) => "style-cr-16", __( 'Style 17(Circle)', "awavcl" ) => "style-cr-17", __( 'Style 18(Circle)', "awavcl" ) => "style-cr-18", __( 'Style 19(Circle)', "awavcl" ) => "style-cr-19", __( 'Style 20(Circle)', "awavcl" ) => "style-cr-20",*/ ), "admin_label" => true, ), array( "type" => "attach_image", "heading" => __("Image", "awavcl"), "param_name" => "advc_image", "value" => "", "description" => __("select image", "awavcl"), "group" => __("Image", "awavcl") ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Width', 'awavcl' ), 'param_name' => 'img_wid', "value" => 300, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("For getting best view give width as column width", "awavcl"), "group" => __("Image", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Height', 'awavcl' ), 'param_name' => 'img_hite', "value" => 300, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("You may need to fix the height for make image fully circle", "awavcl"), "group" => __("Image", 'awavcl'), ), array( "type" => "dropdown", "heading" => __( "Image Responsive", "awavcl" ), "param_name" => "img_respo", "value" => array( __( 'Smae Size On All Device', "awavcl" ) => "same", __( 'Different Size On Mobile And Tab', "awavcl" ) => "not_same", ), "group" => "Image", ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Width On Tab', 'awavcl' ), 'param_name' => 'img_wid_tab', "value" => 250, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("Image", 'awavcl'), "dependency" => array( 'element' => "img_respo", 'value' => array('not_same') ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Height On Tab', 'awavcl' ), 'param_name' => 'img_hite_tab', "value" => 250, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("You may need to fix the height for make image fully circle", "awavcl"), "group" => __("Image", 'awavcl'), "dependency" => array( 'element' => "img_respo", 'value' => array('not_same') ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Width On Mobile', 'awavcl' ), 'param_name' => 'img_wid_mob', "value" => 200, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("Check your site responsiveness here https://www.responsinator.com/", "awavcl"), "group" => __("Image", 'awavcl'), "dependency" => array( 'element' => "img_respo", 'value' => array('not_same') ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Image Height On Mobile', 'awavcl' ), 'param_name' => 'img_hite_mob', "value" => 200, "min" => 5, "max" => 1500, "step" => 1, "unit" => "px", "description" => __("You may need to fix the height for make image fully circle", "awavcl"), "group" => __("Image", 'awavcl'), "dependency" => array( 'element' => "img_respo", 'value' => array('not_same') ), ), array( "type" => "textfield", "heading" => __("Title", "awavcl"), "param_name" => "advc_ttl", "value" => "John Doe", ), array( "type" => "textarea_html", "heading" => __("Description", "awavcl"), "param_name" => "content", "value" => "

Lorem ipsum dolor sit amet, consetetur sadipscing elitr.

", "dependency" => array( 'element' => "advc_style", 'value' => array('style-two', 'style-four','style-five','style-six','style-eleven','style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15','style-cr-16','style-cr-17','style-cr-18','style-cr-19','style-cr-20') ), ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'awavcl' ), 'param_name' => 'advc_icon', 'value' => 'fa fa-check-square', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'iconsPerPage' => 4000, // default 100, how many icons per/page to display, we use (big number) to display all icons in single page 'type' => 'fontawesome', ), 'description' => __( 'Select icon from library.', 'awavcl' ), "dependency" => array( 'element' => "advc_style", 'value' => array('style','style-eight') ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Icon Size', 'awavcl' ), 'param_name' => 'advc_icon_size', "value" => 18, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("Settings", 'awavcl'), "dependency" => array( 'element' => "advc_style", 'value' => array('style','style-eight') ), ), array( "type" => "colorpicker", "heading" => __( "Icon Color", "awavcl" ), "param_name" => "advc_icon_color", "value" => '', "group" => "Settings", "description" => __("This is also title hover color", "awavcl"), "dependency" => array( 'element' => "advc_style", 'value' => array('style','style-eight') ), ), array( 'type' => 'vc_link', 'heading' => __( 'Add a Link', 'awavcl' ), 'param_name' => 'image_link', 'description' => __( 'If dont want to link,just leave it empty', 'awavcl' ), 'value' => '#', "dependency" => array( 'element' => "advc_style", 'value' => array('style-one', 'style-four','style-five','style-four','style-six','style-nine','style-eleven','style-Thirteen','style-cr-11','style-cr-12','style-cr-13') ), "group" => "Link" ), // Social Group array( 'type' => 'param_group', 'heading' => __( 'Social Links', 'awavcl' ), 'param_name' => 'advc_social_links', "dependency" => array( 'element' => "advc_style", 'value' => array('style-two', 'style-three','style-eleven') ), 'params' => array( array( 'type' => 'vc_link', 'heading' => __( 'Social Link URL', 'awavcl' ), 'param_name' => 'social_link_url', 'description' => __( '', 'awavcl' ), 'value' => 'https://www.facebook.com/', ), array( 'type' => 'iconpicker', 'heading' => __( 'Social icon', 'awavcl' ), 'param_name' => 'social_icon', 'value' => 'fa fa-check-square', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'iconsPerPage' => 4000, // default 100, how many icons per/page to display, we use (big number) to display all icons in single page 'type' => 'fontawesome', ), 'description' => __( 'Select icon from library.', 'awavcl' ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Social icon Size', 'awavcl' ), 'param_name' => 'social_icon_size', "value" => 16, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), ), array( "type" => "colorpicker", "heading" => __( "Icon Color", "awavcl" ), "param_name" => "sc_icon_color", "value" => '', "description" => __("default color is #ffffff", "awavcl"), ), ), ), array( 'type' => 'param_group', 'heading' => __( 'Links', 'awavcl' ), 'param_name' => 'advc_custom_links', "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen') ), 'params' => array( array( 'type' => 'textfield', 'heading' => __( 'Link Text', 'awavcl' ), 'param_name' => 'link_txt', 'description' => __( '', 'awavcl' ), 'value' => 'Learn More', ), array( 'type' => 'textfield', 'heading' => __( 'Link URL', 'awavcl' ), 'param_name' => 'link_url', 'description' => __( '', 'awavcl' ), 'value' => '#', ), array( "type" => "dropdown", "heading" => __( "Link Open In ", "awavcl" ), "param_name" => "advc_target", "value" => array( __( 'Same Window', "awavcl" ) => "", __( 'New Window', "awavcl" ) => "_target", ), ), ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Title Font Size', 'awavcl' ), 'param_name' => 'advc_ttl_font_size', "value" => 21, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __( "Title Color", "awavcl" ), "param_name" => "advc_ttl_color", "value" => '', "group" => "Color", ), array( "type" => "dropdown", "heading" => __( "Title to be italic", "awavcl" ), "param_name" => "advc_ttl_italic", "value" => array( __( 'No', "awavcl" ) => "no", __( 'Yes', "awavcl" ) => "italic", ), "group" => "Settings", ), /* Description Elements Here *//* Description Elements Here *//* Description Elements Here *//* Description Elements Here */ /* Description Elements Here */ /* Description Elements Here *//* Description Elements Here *//* Description Elements Here *//* Description Elements Here */ array( 'type' => 'prime_slider', 'heading' => __( 'Description Font Size', 'awavcl' ), 'param_name' => 'advc_desc_font_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("Settings", 'awavcl'), "dependency" => array( 'element' => "advc_style", 'value' => array('style-two','style-four','style-five','style-six','style-eleven','style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15','style-cr-16','style-cr-17','style-cr-18','style-cr-19','style-cr-20',) ), ), array( "type" => "colorpicker", "heading" => __( "Description Color", "awavcl" ), "param_name" => "advc_desc_color", "value" => '', //"description" => __("default color is #ffffff", "awavcl"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-two','style-four','style-five','style-six','style-eleven','style-cr-11','style-cr-12','style-cr-12','style-cr-13','style-cr-14','style-cr-15','style-cr-16','style-cr-17','style-cr-18','style-cr-19','style-cr-20',) ), ), array( "type" => "dropdown", "heading" => __( "Description to be italic", "awavcl" ), "param_name" => "advc_desc_italic", "value" => array( __( 'No', "awavcl" ) => "no", __( 'Yes', "awavcl" ) => "italic", ), "group" => "Settings", "dependency" => array( 'element' => "advc_style", 'value' => array('style-two','style-four','style-five','style-six','style-eleven','style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15','style-cr-16','style-cr-17','style-cr-18','style-cr-19','style-cr-20',) ), ), /* Description Elements Here *//* Description Elements Here *//* Description Elements Here *//* Description Elements Here */ /* Description Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ array( 'type' => 'prime_slider', 'heading' => __( 'Link Text Font Size', 'awavcl' ), 'param_name' => 'advc_link_font_size', "value" => 21, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => "Link", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen','style-cr-11') ), ), array( "type" => "colorpicker", "heading" => __( "Link Text Background", "awavcl" ), "param_name" => "advc_link_bg", "value" => '', //"description" => __("default color is #ffffff", "advc_cr"), "group" => "Link", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen','style-cr-11') ), ), array( "type" => "colorpicker", "heading" => __( "Link Text Color", "awavcl" ), "param_name" => "advc_link_color", "value" => '', //"description" => __("default color is #ffffff", "advc_cr"), "group" => "Link", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen','style-cr-11') ), ), array( "type" => "colorpicker", "heading" => __( "Link Text Color on Hover", "awavcl" ), "param_name" => "link_hvr_clr", "value" => '', //"description" => __("default color is #ffffff", "advc_cr"), "group" => "Link", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen','style-cr-11') ), ), array( "type" => "dropdown", "heading" => __( "Link Text To Be Italic", "awavcl" ), "param_name" => "advc_link_italic", "value" => array( __( 'No', "awavcl" ) => "no", __( 'Yes', "awavcl" ) => "italic", ), "group" => "Link", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen','style-cr-11') ), ), /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ /* Link Elements Here *//* Link Elements Here *//* Link Elements Here *//* Link Elements Here */ array( "type" => "colorpicker", "heading" => __( "Background Color", "awavcl" ), "param_name" => "advc_bg_color", "value" => '', "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-one','style-four','style-eight','style-nine') ), ), array( "type" => "colorpicker", "heading" => __( "Overlay Color", "awavcl" ), "param_name" => "advc_ovrlay_color", "value" => '', "description" => __("Overlay background/border/ color Ps: give some transparency to the color", "awavcl"), //"description" => __("default color is #ffffff", "awavcl"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-two','style-four','style-five','style-six','style-nine','style-eleven','style-twelve','style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15','style-cr-16','style-cr-17','style-cr-18','style-cr-19','style-cr-20') ), ), array( "type" => "colorpicker", "heading" => __( "Overlay Color 2", "awavcl" ), "param_name" => "advc_ovrlay_color_1", "value" => '', //"description" => __("default color is #ffffff", "advc_cr"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-three','style-Thirteen') ), ), array( "type" => "colorpicker", "heading" => __( "Overlay Graddient Color 1", "awavcl" ), "param_name" => "advc_ovrlay_grd_1", "value" => '', //"description" => __("default color is #ffffff", "awavcl"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-four','style-Thirteen') ), ), array( "type" => "colorpicker", "heading" => __( "Overlay Graddient Color 2", "awavcl" ), "param_name" => "advc_ovrlay_grd_2", "value" => '', //"description" => __("default color is #ffffff", "advc"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-four','style-Thirteen') ), ), array( "type" => "colorpicker", "heading" => __( "Border Color", "awavcl" ), "param_name" => "brdr_clr", "value" => '', //"description" => __("default color is #ffffff", "advc"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15') ), ), array( "type" => "colorpicker", "heading" => __( "Border Color on Hover", "awavcl" ), "param_name" => "brdr_clr_hvr", "value" => '', //"description" => __("default color is #ffffff", "advc"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-cr-11','style-cr-12','style-cr-13','style-cr-14','style-cr-15',) ), ), array( "type" => "colorpicker", "heading" => __( "Title Under Line Color", "awavcl" ), "param_name" => "underline_clr", "value" => '', //"description" => __("default color is #ffffff", "advc"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-cr-12','style-cr-13') ), "description" => __("Leaving it empty:border color will replace it . If dont want any line then make it transparent ", "awavcl"), ), array( "type" => "textfield", "heading" => __( "Custom CSS Class", "awavcl" ), "param_name" => "advc_css_class", "value" => '', "description" => __("using custom class you can customize styles.", "awavcl"), "group" => "", ), ) ) ); function awavc_hvr_effects_shortcode( $atts, $content = null, $tag ) { extract(shortcode_atts(array( "advc_style" => 'style-one', "advc_image" => '', "img_hite" => '', "img_wid" => '', "img_hite_tab" => '', "img_wid_tab" => '', "img_hite_mob" => '', "img_wid_mob" => '', "advc_ttl" => 'Title', "image_link" => '', "advc_icon" => 'fa fa-atom', "advc_icon_size" => '', "advc_icon_color" => '', "advc_icon_color_hvr" => '', "advc_open_window" => '', "advc_social_links" => '', "advc_custom_links" => '', "advc_ovrlay_color" => '', "advc_opacity" => '', "advc_ovrlay_color_1" => '', "advc_ovrlay_grd_1" => '', "advc_ovrlay_grd_2" => '', "advc_ttl_font_size" => '', "advc_ttl_color" => '', "advc_ttl_italic" => '', "advc_desc_font_size" => '', "advc_desc_color" => '', "advc_desc_italic" => '', "advc_link_font_size" => '', "advc_link_color" => '', "advc_link_bg" => '', "link_hvr_clr" => '', "advc_link_italic" => '', "advc_bg_color" => '', "brdr_clr" => '', "brdr_clr_hvr" => '', "underline_clr" => '', "advc_css_class" => '', ), $atts)); wp_register_style('advc_style_flowerx', plugins_url( 'css/style-flowerx.css' , __FILE__ ) ); wp_enqueue_style( 'advc_style_flowerx' ); $image = wp_get_attachment_image_src( $advc_image, 'full' ); $image_link = vc_build_link( $image_link); $image_url = $image_link['url']; $image_target = $image_link['target']; $image_title = $image_link['title']; $output =''; //$output .= ''; $image_linking =''; $cr_link =''; If($image_url !== ''){ $image_linking =''; } If($image_url !== '' || $advc_style =='style-cr-11' ){ $cr_link =''.$image_title.''; } $advc_social_links = vc_param_group_parse_atts($advc_social_links); if($advc_style =='style-two'||$advc_style =='style-eleven'){ $advc_social_links_html =''; $advc_social_links_html .= '
'; foreach ($advc_social_links as $advc_social_link) { $social_icon = ''; $social_icon_size = ''; $sc_icon_color = ''; $sc_icon_color_hvr = ''; $sc_icon_color_bg = ''; $sc_icon_color_bg_hvr = ''; $social_link = $advc_social_link['social_link_url']; $social_linked = vc_build_link( $social_link); $social_url = $social_linked['url']; $social_target = $social_linked['target']; if(!empty($advc_social_link['social_icon'])){$social_icon = $advc_social_link['social_icon'];} if(!empty($advc_social_link['social_icon_size'])){$social_icon_size = $advc_social_link['social_icon_size'];} if(!empty($advc_social_link['sc_icon_color'])){$sc_icon_color = $advc_social_link['sc_icon_color'];} if(!empty($advc_social_link['sc_icon_color_hvr'])){$sc_icon_color_hvr = $advc_social_link['sc_icon_color_hvr'];} if(!empty($advc_social_link['sc_icon_color_bg'])){$sc_icon_color_bg = $advc_social_link['sc_icon_color_bg'];} if(!empty($advc_social_link['sc_icon_color_bg_hvr'])){$sc_icon_color_bg_hvr = $advc_social_link['sc_icon_color_bg_hvr'];} $advc_social_links_html .= ' '; } $advc_social_links_html .='
'; } $advc_custom_links = vc_param_group_parse_atts($advc_custom_links); if($advc_style == 'style-twelve'|| $advc_style == 'style-Thirteen'){ $advc_custom_links_html =''; $advc_custom_links_html .= ''; } if ( $advc_style =='style-one' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$image_linking.'
'; } if ( $advc_style =='style-two' ){ $add_class = (rand(99,99999)); if(empty($advc_ttl_color)){$advc_ttl_color ='#fff';} $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$content.'

'.$advc_social_links_html.'
'.$image_linking.' '; } if ( $advc_style =='style-four' ){ //style3 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$content.'

'; } if ( $advc_style =='style-five' ){ //style4 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$image_linking.'
'; } if ( $advc_style =='style-six' ){ //style5 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$content.'

'.$image_linking.'
' ; } if ( $advc_style =='style-eight' ){ //style6 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$image_linking.'
'; } if ( $advc_style =='style-nine' ){ //style7 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$image_linking.'
'; } if ( $advc_style =='style-eleven' ){ //style8 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$content.'

'.$advc_social_links_html.'
'; } if ( $advc_style =='style-twelve' ){ //style9 $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$advc_custom_links_html.'
'; } if ( $advc_style =='style-Thirteen' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'

'.$advc_custom_links_html.'
'; } if ( $advc_style =='style-cr-11' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'


'.$content.'

'.$cr_link.'
'; } if ( $advc_style =='style-cr-12' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'


'.$content.'

'; } if ( $advc_style =='style-cr-13' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'


'.$content.'

'; } /*if ( $advc_style =='style-cr-14' ){ $add_class = (rand(99,99999)); $output .='
'.$advc_ttl.'

'.$advc_ttl.'


'.$content.'

Read More
'; }*/ return $output; wp_reset_postdata(); } add_shortcode('awavc_hover_effects', 'awavc_hvr_effects_shortcode');