/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/inc
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/inc/widgets-options.php (18632B)
esc_html__( 'Pylon Info', 'pyloncore' ),
'classname' => 'csf-widget-classname',
'description' => esc_html__( 'Add your Company Information', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_enable_info_image',
'type' => 'switcher',
'default' => true,
'title' => esc_html__( 'Enable Logo', 'pyloncore' ),
'label' => esc_html__( 'Enable Option if you need', 'pyloncore' ),
),
array(
'id' => 'pylon_info_image',
'type' => 'media',
'title' => esc_html__( 'Upload Logo', 'pyloncore' ),
'library' => 'image',
'preview' => true,
'dependency' => array( 'pylon_enable_info_image', '==', 'true' ),
),
array(
'id' => 'pylon_info_dec',
'type' => 'textarea',
'title' => esc_html__( 'Content', 'pyloncore' ),
'default' => esc_html__( 'Lorem ipsum is not dolor sit amet, consect etur adi pisicing elit sed eiusmod tempor ut labore.', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_quote_enable',
'type' => 'switcher',
'default' => true,
'title' => esc_html__( 'Enable Quote', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_quote_icon',
'type' => 'icon',
'title' => esc_html__( 'Quote Icon', 'pyloncore' ),
'dependency' => array( 'pylon_widget_quote_enable', '==', 'true' ),
'default' => 'pylon-icon-tech-support',
),
array(
'id' => 'pylon_widget_quote_label',
'type' => 'text',
'title' => esc_html__( 'Quote Label', 'pyloncore' ),
'dependency' => array( 'pylon_widget_quote_enable', '==', 'true' ),
'default' => esc_html__( 'CALL ANYTIME', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_quote_call',
'type' => 'text',
'title' => esc_html__( 'Quote Calling Number', 'pyloncore' ),
'dependency' => array( 'pylon_widget_quote_enable', '==', 'true' ),
'default' => esc_html__( '92-666-888-0000', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_quote_number',
'type' => 'text',
'title' => esc_html__( 'Quote Number', 'pyloncore' ),
'dependency' => array( 'pylon_widget_quote_enable', '==', 'true' ),
'default' => esc_html__( '92 666 888 0000', 'pyloncore' ),
),
),
) );
//
// Front-end display of widget
// Attention: This function named considering above widget base id.
//
if ( !function_exists( 'pylon_info_widget' ) ) {
function pylon_info_widget( $args, $instance ) {
echo wp_kses_post($args['before_widget']);
if ( !empty( $instance['title'] ) ) {
echo wp_kses_post($args['before_title']) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post($args['after_title']);
}
?>
esc_html__( 'Pylon Contact Info', 'pyloncore' ),
'classname' => 'footer-widget__contact',
'description' => esc_html__( 'Add your Contact Info', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_contact_info',
'type' => 'group',
'title' => esc_html__( 'Add Information', 'pyloncore' ),
'fields' => array(
array(
'id' => 'pylon_widget_contact_dec',
'type' => 'text',
'title' => esc_html__( 'Content', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_contact_icon',
'type' => 'icon',
'title' => esc_html__( 'Icon', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_contact_link',
'type' => 'text',
'title' => esc_html__( 'Link', 'pyloncore' ),
),
),
'default' => array(
array(
'pylon_widget_contact_dec' => esc_html__( 'needhelp@company.com', 'pyloncore' ),
'pylon_widget_contact_icon' => 'pylon-icon-email1',
'pylon_widget_contact_link' => esc_html__( '#', 'pyloncore' ),
),
array(
'pylon_widget_contact_dec' => esc_html__( 'Mon - Sat 8:00 AM - 6:00 PM', 'pyloncore' ),
'pylon_widget_contact_icon' => 'pylon-icon-clock2',
'pylon_widget_contact_link' => esc_html__( '#', 'pyloncore' ),
),
array(
'pylon_widget_contact_dec' => esc_html__( '80 Broklyn Golden Street,New York. USA', 'pyloncore' ),
'pylon_widget_contact_icon' => 'pylon-icon-pin1',
'pylon_widget_contact_link' => esc_html__( '#', 'pyloncore' ),
),
),
),
),
) );
// OutPut
if ( !function_exists( 'pylon_contact_info_widget' ) ) {
function pylon_contact_info_widget( $args, $instance ) {
echo wp_kses_post($args['before_widget']);
?>
esc_html__( 'Pylon Recent Post', 'pyloncore' ),
'classname' => 'footer-widget__post',
'description' => esc_html__( 'Add your Contact Info', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_blog_number',
'type' => 'number',
'title' => esc_html__( 'Show Post', 'pyloncore' ),
'default' => 2,
),
array(
'id' => 'pylon_widget_blog_show_meta',
'type' => 'switcher',
'title' => esc_html__( 'Enable Meta', 'pyloncore' ),
'default' => true
),
array(
'id' => 'pylon_widget_blog_show_image',
'type' => 'switcher',
'title' => esc_html__( 'Enable Image', 'pyloncore' ),
'default' => true
),
),
) );
// OutPut
if ( !function_exists( 'pylon_blog_post_widget' ) ) {
function pylon_blog_post_widget( $args, $instance ) {
echo wp_kses_post($args['before_widget']);
if ( !empty( $instance['title'] ) ) {
echo wp_kses_post($args['before_title']) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post($args['after_title']);
}
?>
esc_html__( 'Pylon Services', 'pyloncore' ),
'classname' => 'services-widget-post',
'description' => esc_html__( 'Add your Services List', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_widget_service_arrow',
'type' => 'switcher',
'title' => esc_html__( 'Enable Arrow', 'pyloncore' ),
'default' => true
),
),
) );
// OutPut
if ( !function_exists( 'pylon_services_widget' ) ) {
function pylon_services_widget( $args, $instance ) {
$current_id=get_the_id();
echo wp_kses_post($args['before_widget']);
if ( !empty( $instance['title'] ) ) {
echo wp_kses_post($args['before_title']) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post($args['after_title']);
}
?>
esc_html__( 'Pylon Services Contact', 'pyloncore' ),
'classname' => 'services-contact-widget-post',
'description' => esc_html__( 'Add your Services Contact', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_service_contact_bg',
'type' => 'upload',
'title' => esc_html__( 'Upload Background', 'pyloncore' ),
),
array(
'id' => 'pylon_service_contact_phone',
'type' => 'text',
'title' => esc_html__( 'Enter Phone', 'pyloncore' ),
),
array(
'id' => 'pylon_service_contact_email',
'type' => 'text',
'title' => esc_html__( 'Enter Email', 'pyloncore' ),
),
array(
'id' => 'pylon_service_contact_content',
'type' => 'textarea',
'title' => esc_html__( 'Enter Content', 'pyloncore' ),
),
),
) );
if ( !function_exists( 'pylon_services_contact_widget' ) ) {
function pylon_services_contact_widget( $args, $instance ) {
echo $args['before_widget'];
if ( !empty( $instance['title'] ) ) {
echo wp_kses_post($args['before_title']) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post($args['after_title']);
}
echo '';
echo $args['after_widget'];
}
}
CSF::createWidget( 'pylon_document_widget', array(
'title' => esc_html__( 'Pylon Document', 'pyloncore' ),
'classname' => 'document-widget-post',
'description' => esc_html__( 'Add your Services List', 'pyloncore' ),
'fields' => array(
array(
'id' => 'title',
'type' => 'text',
'title' => esc_html__( 'Title', 'pyloncore' ),
),
array(
'id' => 'pylon_document_name',
'type' => 'text',
'title' => esc_html__( 'Document Name', 'pyloncore' ),
),
array(
'id' => 'pylon_document_file',
'type' => 'upload',
'title' => esc_html__( 'Upload Document', 'pyloncore' ),
),
array(
'id' => 'pylon_document_name2',
'type' => 'text',
'title' => esc_html__( 'Document Name 2', 'pyloncore' ),
),
array(
'id' => 'pylon_document_file2',
'type' => 'upload',
'title' => esc_html__( 'Upload Document 2', 'pyloncore' ),
),
),
) );
if ( !function_exists( 'pylon_document_widget' ) ) {
function pylon_document_widget( $args, $instance ) {
echo wp_kses_post($args['before_widget']);
if ( !empty( $instance['title'] ) ) {
echo wp_kses_post($args['before_title']) . apply_filters( 'widget_title widtet-title', $instance['title'] ) . wp_kses_post($args['after_title']);
}
if(!empty($instance['pylon_document_file']))
{
$headers = get_headers($instance['pylon_document_file'], true);
$url = parse_url($instance['pylon_document_file']);
$ext = pathinfo($url['path'], PATHINFO_EXTENSION);
echo '
';
}
if(!empty($instance['pylon_document_file2']))
{
$headers = get_headers($instance['pylon_document_file2'], true);
$url = parse_url($instance['pylon_document_file2']);
$ext = pathinfo($url['path'], PATHINFO_EXTENSION);
echo '
';
}
//echo $instance['pylon_document_file'];
echo wp_kses_post($args['after_widget']);
}
}