HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux sa-dev.otherchirps.net 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64
User: www-data (33)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/plugins/hover_effects_pack/3rd_party/wpbakery_vc.php
<?php

add_action( 'vc_before_init', 'hover_pack_integrateWithVC' );

function hover_pack_integrateWithVC() {
   vc_map( array(
      "name" => esc_html__( "Hover Effects Pack", "hover-effects-pack" ),
      "base" => "hover_pack",
      "class" => "hover_pack_vc",
      "icon" => "hover-pack-icon",
      "category" => esc_html__( "Content", "hover-effects-pack"),
      "admin_enqueue_css" => plugins_url('../css/admin.css', __FILE__),
      "params" => array(
         array(
            "type" => "attach_image",
            "heading" => esc_html__( "Image", "hover-effects-pack" ),
            "param_name" => "img_id",
            "value" => "",
            "description" => esc_html__( "Select the image", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "holder" => "div",
            "heading" => esc_html__( "Image Link", "hover-effects-pack" ),
            "param_name" => "link",
            "value" => '',
            "description" => esc_html__( "By default image linked to it's full size, but you can set custom image link here", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "holder" => "div",
            "heading" => esc_html__( "Image Title Attribute", "hover-effects-pack" ),
            "param_name" => "img_title",
            "value" => '',
            "description" => esc_html__( "Image Title Attribute", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "holder" => "div",
            "heading" => esc_html__( "Image Alt Attribute", "hover-effects-pack" ),
            "param_name" => "img_alt",
            "value" => '',
            "description" => esc_html__( "Image Alt Attribute", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "disable_popup",
            "value"=> array(
               "Disable popup for this link"=>"disable_popup"
            ),
            "description" => esc_html__( "Prevent error with open links to other site when popup is enabled", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "link_tab",
            "value"=> array(
               "Open Link in New Tab"=>"link_tab"
            ),
            "description" => esc_html__( "Works only when image popup effects disabled or previous checkbox is checked", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "holder" => "div",
            "heading" => esc_html__( "Image Gallery Id", "hover-effects-pack" ),
            "param_name" => "gallery_id",
            "value" => '',
            "description" => esc_html__( "Images with same Gallery Id will be grouped, and you can navigate between them with prev/next buttons", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "class" => "",
            "heading" => esc_html__( "Custom Link Class", "hover-effects-pack" ),
            "param_name" => "class",
            "value" => '',
            "description" => esc_html__( "You can add custom CSS class for link", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "class" => "",
            "heading" => esc_html__( "Border Radius", "hover-effects-pack" ),
            "param_name" => "radius",
            "value" => '',
            "description" => esc_html__( "You can add border radius in px", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Effect", "hover-effects-pack" ),
            "param_name" => "effect",
            "value" => array(
               'None'=>'none',
               'Fade'=>'fade',
               'Stroke'=>'stroke',
               'Twist'=>'twist',
               'Flip'=>'flip',
               'Flow'=>'flow',
               'Box'=>'box',
               'Stripe'=>'stripe',
               'Apart Horizontal'=>'apart-horizontal',
               'Apart Vertical'=>'apart-vertical',
               'Diagonal'=>'diagonal',
            ),
            "description" => esc_html__( "Set image hover effect", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "inverse_effect",
            "value"=> array(
               "Inverse effect behavior"=>"inverse_effect"
            ),
            "description" => esc_html__( "Hover layer will be visible by default and hidden on mouse hover", "hover-effects-pack" )
         ),
         array(
            "type" => "colorpicker",
            "class" => "",
            "heading" => esc_html__( "Hover Color", "hover-effects-pack" ),
            "param_name" => "color",
            "value" => '',
            "description" => esc_html__( "Use this field to override global value", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Opacity", "hover-effects-pack" ),
            "param_name" => "opacity",
            "value" => array(
               '100%'=>'100',
               '90%'=>'90',
               '80%'=>'80',
               '70%'=>'70',
               '60%'=>'60',
               '50%'=>'50',
               '40%'=>'40',
               '30%'=>'30',
               '20%'=>'20',
               '10%'=>'10',
            ),
            "description" => esc_html__( "Set image hover opacity (except flip and twist effects)", "hover-effects-pack" )
         ),
         array(
            "type" => "textfield",
            "class" => "",
            "heading" => esc_html__( "Image Hover Title", "hover-effects-pack" ),
            "param_name" => "title",
            "value" => '',
            "description" => esc_html__( "Set title, that will go over image", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "title_visible",
            "value"=> array(
               "Disable Title Animation"=>"title_visible"
            ),
            "description" => esc_html__( "Disable Title Animation (Title Always Visible)", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Title Effect Delay", "hover-effects-pack" ),
            "param_name" => "title_delay",
            "value" => array(
               'None'=>'',
               '0,3 seconds'=>'03',
               '0,6 seconds'=>'06',
               '0,9 seconds'=>'09',
               '1,2 seconds'=>'12',
               '1,5 seconds'=>'15',
            ),
            "description" => esc_html__( "Set title effect delay", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Title Slide Effect", "hover-effects-pack" ),
            "param_name" => "title_slide",
            "value" => array(
               'None'=>'',
               'From left'=>'from-left',
               'From right'=>'from-right',
               'From top'=>'from-top',
               'From bottom'=>'from-bottom'
            ),
            "description" => esc_html__( "Set title slide effect direction", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Title Rotation Effect", "hover-effects-pack" ),
            "param_name" => "title_rotation",
            "value" => array(
               'None'=>'',
               'Clockwise 90'=>'cw-90',
               'Clockwise 180'=>'cw-180',
               'Counterclockwise 90'=>'ccw-90',
               'Counterclockwise 180'=>'ccw-180'
            ),
            "description" => esc_html__( "Set title rotation effect direction and angle", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "title_scale",
            "value"=> array(
               "Title Scale Effect"=>"title_scale"
            ),
            "description" => esc_html__( "Enable scale effect", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "title_fade",
            "value"=> array(
               "Title Fade Effect"=>"title_fade"
            ),
            "description" => esc_html__( "Enable fade effect", "hover-effects-pack" )
         ),
         array(
            "type" => "textarea_raw_html",
            "class" => "",
            "heading" => esc_html__( "Image Hover Text", "hover-effects-pack" ),
            "param_name" => "text",
            "value" => '',
            "description" => esc_html__( "Set text, that will go over image", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "text_visible",
            "value"=> array(
               "Disable Text Animation"=>"text_visible"
            ),
            "description" => esc_html__( "Disable Text Animation (Text Always Visible)", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Text Effect Delay", "hover-effects-pack" ),
            "param_name" => "text_delay",
            "value" => array(
               'None'=>'',
               '0,3 seconds'=>'03',
               '0,6 seconds'=>'06',
               '0,9 seconds'=>'09',
               '1,2 seconds'=>'12',
               '1,5 seconds'=>'15',
            ),
            "description" => esc_html__( "Set text effect delay", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Text Slide Effect", "hover-effects-pack" ),
            "param_name" => "text_slide",
            "value" => array(
               'None'=>'',
               'From left'=>'from-left',
               'From right'=>'from-right',
               'From top'=>'from-top',
               'From bottom'=>'from-bottom'
            ),
            "description" => esc_html__( "Set text slide effect direction", "hover-effects-pack" )
         ),
         array(
            "type" => "dropdown",
            "class" => "",
            "heading" => esc_html__( "Text Rotation Effect", "hover-effects-pack" ),
            "param_name" => "text_rotation",
            "value" => array(
               'None'=>'',
               'Clockwise 90'=>'cw-90',
               'Clockwise 180'=>'cw-180',
               'Counterclockwise 90'=>'ccw-90',
               'Counterclockwise 180'=>'ccw-180'
            ),
            "description" => esc_html__( "Set text rotation effect direction and angle", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "text_scale",
            "value"=> array(
               "Text Scale Effect"=>"text_scale"
            ),
            "description" => esc_html__( "Enable scale effect", "hover-effects-pack" )
         ),
         array(
            "type" => "checkbox",
            "class" => "",
            "heading" => "",
            "param_name" => "text_fade",
            "value"=> array(
               "Text Fade Effect"=>"text_fade"
            ),
            "description" => esc_html__( "Enable fade effect", "hover-effects-pack" )
         ),
      )
   ) );
}