__( "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", ), "admin_label" => true, ), array( "type" => "attach_image", "heading" => __("Image", "awavcl"), "param_name" => "advc_image", "value" => "", "description" => __("select image", "awavcl") ), 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') ), ), 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') ), "group" => __("Icon", 'awavcl'), ), 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" => __("Icon", '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" => "Icon", "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 To The Image', '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') ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Margin Bottom/Row Gap', 'awavcl' ), 'param_name' => 'pd_btm', "value" => 50, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("Settings", 'awavcl'), "dependency" => array( 'element' => "advc_style", 'value' => array('style','style-eight') ), ), // 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" => "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", "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') ), ), array( "type" => "colorpicker", "heading" => __( "Overlay Color", "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' => '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", ), 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') ), ), 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') ), ), 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') ), ), array( "type" => "textfield", "heading" => __( "Link Text Font Size", "awavcl" ), "param_name" => "advc_link_font_size", "value" => '14', "description" => __("default value is 14px", "awavcl"), "group" => "Settings", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen') ), ), array( "type" => "colorpicker", "heading" => __( "Link Text Color", "awavcl" ), "param_name" => "advc_link_color", "value" => '', //"description" => __("default color is #ffffff", "advc_cr"), "group" => "Color", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen') ), ), array( "type" => "dropdown", "heading" => __( "Link Text To Be Italic", "awavcl" ), "param_name" => "advc_link_italic", "value" => array( __( 'No', "awavcl" ) => "no", __( 'Yes', "awavcl" ) => "italic", ), "group" => "Settings", "dependency" => array( 'element' => "advc_style", 'value' => array('style-twelve','style-Thirteen') ), ), 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" => '', "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_italic" => '', "pd_btm" => '', "advc_bg_color" => '', "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']; $output =''; //$output .= ''; $image_linking=''; If($image_link!== ''){ $image_linking =''; } $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 .= ''.$content.'
'.$advc_social_links_html.''.$content.'
'.$content.'
'.$advc_social_links_html.'