403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vinfinity.co.uk/wp-content/themes/dine/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vinfinity.co.uk/wp-content/themes/dine/inc/support.php
<?php
/**
 * Returns an array of supported social links (URL and icon name).
 *
 * @return array $social_links_icons
 */
function dine_social_links_icons() {
	// Supported social links icons.
	$social_links_icons = array(
		'behance.net'     => 'behance',
		'codepen.io'      => 'codepen',
		'deviantart.com'  => 'deviantart',
		'digg.com'        => 'digg',
		'dribbble.com'    => 'dribbble',
		'dropbox.com'     => 'dropbox',
		'facebook.com'    => 'facebook-f',
		'flickr.com'      => 'flickr',
		'foursquare.com'  => 'foursquare',
		'plus.google.com' => 'google-plus',
		'github.com'      => 'github',
		'instagram.com'   => 'instagram',
		'linkedin.com'    => 'linkedin',
		'mailto:'         => 'envelope-o',
		'medium.com'      => 'medium',
		'pinterest.com'   => 'pinterest-p',
		'getpocket.com'   => 'get-pocket',
		'reddit.com'      => 'reddit-alien',
		'skype.com'       => 'skype',
		'skype:'          => 'skype',
		'slideshare.net'  => 'slideshare',
		'snapchat.com'    => 'snapchat-ghost',
		'soundcloud.com'  => 'soundcloud',
		'spotify.com'     => 'spotify',
		'stumbleupon.com' => 'stumbleupon',
		'tumblr.com'      => 'tumblr',
		'twitch.tv'       => 'twitch',
		'twitter.com'     => 'twitter',
		'vimeo.com'       => 'vimeo',
		'vine.co'         => 'vine',
		'vk.com'          => 'vk',
		'wordpress.org'   => 'wordpress',
		'wordpress.com'   => 'wordpress',
		'yelp'            => 'yelp',
		'youtube.com'     => 'youtube',
        'tripadvisor'     => 'tripadvisor',
	);

	/**
	 * Filter social links icons.
	 *
	 * @param array $social_links_icons
	 */
	return apply_filters( 'dine_social_links_icons', $social_links_icons );
}

if ( !function_exists( 'dine_social_array' ) ) :
/**
 * Returns an array of social icons
 *
 * @since 1.0
 */
function dine_social_array() {

    $social_arr = array(
        'facebook' => array( 'icon' => 'facebook-f', 'name' => esc_html__( 'Facebook', 'dine' ) ),
        'twitter' => array( 'icon' => 'twitter', 'name' => esc_html__( 'Twitter', 'dine' ) ),
        'pinterest' => array( 'icon' => 'pinterest-p', 'name' => esc_html__( 'Pinterest', 'dine' ) ),
        'instagram' => array( 'icon' => 'instagram', 'name' => esc_html__( 'Instagram', 'dine' ) ),
        'googleplus' => array( 'icon' => 'google-plus', 'name' => esc_html__( 'Google+', 'dine' ) ),
        'linkedin' => array( 'icon' => 'linkedin', 'name' => esc_html__( 'LinkedIn', 'dine' ) ),
        'tumblr' => array( 'icon' => 'tumblr', 'name' => esc_html__( 'Tumblr', 'dine' ) ),
        'youtube' => array( 'icon' => 'youtube-play', 'name' => esc_html__( 'YouTube', 'dine' ) ),
        'skype' => array( 'icon' => 'skype', 'name' => esc_html__( 'Skype', 'dine' ) ),
        'medium' => array( 'icon' => 'medium', 'name' => esc_html__( 'Medium', 'dine' ) ),
        'vimeo' => array( 'icon' => 'vimeo-square', 'name' => esc_html__( 'Vimeo', 'dine' ) ),
        'yahoo' => array( 'icon' => 'yahoo', 'name' => esc_html__( 'Yahoo!', 'dine' ) ),
        'flickr' => array( 'icon' => 'flickr', 'name' => esc_html__( 'Flickr', 'dine' ) ),
        'tripadvisor' => array( 'icon' => 'tripadvisor', 'name' => esc_html__( 'TripAdvisor', 'dine' ) ),
        'yelp' => array( 'icon' => 'yelp', 'name' => esc_html__( 'Yelp', 'dine' ) ),
        'foursquare' => array( 'icon' => 'foursquare', 'name' => esc_html__( 'Foursquare', 'dine' ) ),
        'paypal' => array( 'icon' => 'paypal', 'name' => esc_html__( 'Paypal', 'dine' ) ),
        'bloglovin' => array( 'icon' => 'heart', 'name' => esc_html__( 'Bloglovin', 'dine' ) ),
        'weibo' => array( 'icon' => 'weibo', 'name' => esc_html__( 'Weibo', 'dine' ) ),
        'vk' => array( 'icon' => 'vk', 'name' => esc_html__( 'VKontakte', 'dine' ) ),
        'home' => array( 'icon' => 'home', 'name' => esc_html__( 'Homepage', 'dine' ) ),
        'email' => array( 'icon' => 'envelope', 'name' => esc_html__( 'Email', 'dine' ) ),
        'rss' => array( 'icon' => 'rss', 'name' => esc_html__( 'Feed', 'dine' ) ),
    );
    
    return apply_filters( 'dine_social_array', $social_arr );
    
}
endif;

/**
 * Primary Font Position
 * @since 3.3
------------------------------------------------------------------------------------ */
function dine_primary_font_support() {
    
    return [
        'body' => [
            'name' => 'Body Font',
        ],
        'heading' => [
            'name' => 'Heading Font',
        ],
        'nav' => [
            'name' => 'Navigation Font',
        ],
        'special' => [
            'name' => 'Special Font',
        ],
    ];
    
}

/**
 * return all possible font positions
 * and their values
 * @since 3.3
------------------------------------------------------------------------------------ */
function dine_all_font_support() {
    
    $return = [
        
        /* ---------------------     GENERAL    -------------------- */
        'body' => [
            
            'name' => 'Body Font',
            'std' => 'Lato:regular',
            'selector' => dine_body_selector(),
            
            'primary' => true,
            
            'typo' => [
                'font-size' => '13',
                
                'font-weight' => '400',
                'font-style' => 'normal',
                'text-transform' => 'none',
                'letter-spacing' => '0.5px',
                'line-height' => '1.8',
            ],
            
        ],
        
        'heading' => [
            'name' => 'Heading Font',
            'std' => 'Oswald:regular,300,700',
            'selector' => dine_heading_selector(), // selector for font-family property
            'typo_selector' => 'h1, h2, h3, h4, h5, h6', // typo selector applies only for "real" heading elements
            
            'primary' => true,
            
            'typo' => [
                
                'font-weight' => '400',
                'font-style' => '',
                'text-transform' => 'uppercase',
                'letter-spacing' => '0.5px',
                'line-height' => '1.3',
                
            ],
            
            'exclude' => [ 'size' ],
            
        ],
        
        'nav' => [
            'name' => 'Navigation Font',
            'std' => 'Oswald:regular',
            'selector' => dine_nav_selector(), // selector for font-family property
            
            'primary' => true,
            
            'typo' => [
                
                'font-weight' => '400',
                'font-style' => '12',
                'text-transform' => 'uppercase',
                'letter-spacing' => '1px',
                'line-height' => '1.3',
                
            ],
            
        ],
        
        'special' => [
            'name' => 'Special Font',
            'std' => 'Helvetica Neue',
            'primary' => true,
            
            'selector'  => dine_special_selector(),
            
            'typo' => [
            ],
            
            'exclude' => [ 'size' ],
            
        ],
        
        /* ---------------------     ELEMENTS    -------------------- */
        'logo' => [
            'name' => 'Logo Font',
            'std' => 'font_heading',
            'selector' => '.text-logo',
            'typo' => [
                'font-size' => '3em',
                'text-transform' => 'uppercase',
                'letter-spacing' => '1',
            ],
        ],
        
        'nav_dropdown' => [
            'name' => 'Dropdown Typography',
            'std' => 'font_nav',
            'selector' => dine_nav_dropdown_selector(),
            'typo' => [
            ],
        ],
        
        'h2' => [
            'selector' => 'h2',
            'typo' => [
                // 'font-size' => '2.0625em',
            ],
            'include' => [ 'size' ],
        ],
        
        'h3' => [
            'selector' => 'h3',
            'typo' => [
                // 'font-size' => '1.625em',
            ],
            'include' => [ 'size' ],
        ],
        
        'h4' => [
            'selector' => 'h4',
            'typo' => [
                // 'font-size' => '1.25em',
            ],
            'include' => [ 'size' ],
        ],
        
        'page_title' => [
            
            'name' => 'Page title',
            'std' => 'font_heading',
            'selector'  => '#page-title',
            'typo' => [
            ],
            'exclude' => [],
            
        ],
        'blog_post_title' => [
            
            'name' => 'Blog post title',
            'std' => 'font_heading',
            'selector'  => '.entry-title',
            'typo' => [
            ],
            'exclude' => [],
            
        ],
        'blog_post_meta' => [
            
            'name' => 'Blog post meta',
            'std' => 'font_heading',
            'selector' => '.entry-meta',
            'typo' => [
            ],
            'exclude' => [],
            
        ],
        'post_content' => [
            
            'name' => 'Post content',
            'std' => 'font_body',
            'selector' => '.post .entry-content',
            'typo' => [
            ],
            'exclude' => [],
            
        ],
        'title_widget' => [
            
            'name' => 'Widget title',
            'std' => 'font_heading',
            'selector' => '.widget-title',
            'typo' => [
            ],
            'exclude' => [],
            
        ],
        
    ];
    
    /**
     * please understand what are you doing when using this hook
     */
    $return = apply_filters( 'dine_fontdata', $return );
    
    /**
     * turn it into "useable" form
     */
    $all_fields = [ 'size', 'weight', 'style', 'text-transform', 'letter-spacing', 'line-height' ];
    foreach ( $return as $id => $fontdata ) {
        
        // fields to include/exclude in typography
        $include = isset( $fontdata[ 'include' ] ) ? $fontdata[ 'include' ] : [];
        $exclude = isset( $fontdata[ 'exclude' ] ) ? $fontdata[ 'exclude' ] : [];
        $typo = isset( $fontdata[ 'typo' ] ) ? $fontdata[ 'typo' ] : [];
        
        if ( ! empty( $include ) ) {
            
            $fontdata[ 'fields' ] = $include;
            
        } elseif ( ! empty( $exclude ) ) {
            
            $fields = array_values( array_diff( $all_fields, $exclude ) );
            $fontdata[ 'fields' ] = $fields;
            
        } else {
            
            $fontdata[ 'fields' ] = $all_fields;
        
        }
        
        // typo default select values
        if ( ! isset( $typo[ 'font-style' ] ) ) {
            $typo[ 'font-style' ] = 'normal';
        }
        
        // and typo std value
        $typo = json_encode( $typo );
        $fontdata[ 'typo' ] = $typo;
        
        $return[ $id ] = $fontdata;
    
    }
    
    return $return;
        
}

Youez - 2016 - github.com/yon3zu
LinuXploit