بابه‌ت: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

سلاو هاوڕێیان سیلاد شۆیه‌كم هه‌یه‌ هه‌نێ بابه‌تم وێنه‌ی پێشكه‌وتووه‌كه‌ی كه‌ بار ئه‌كه‌م دواتر خۆی وێنه‌یه‌كی ئۆتۆمانیكی دا ئه‌نێت وێنه‌ پێشكه‌وتووه‌كه‌ دانانات له‌به‌ر ئه‌وه‌ی قه‌باره‌كه‌ی له‌و قه‌باره‌ گه‌وره‌ تره‌ كه‌ ئه‌یه‌وێت،
وه‌ك له‌م وێنه‌یه‌دا ده‌ر ده‌كه‌وێت

http://www.webchinupload.com/f/2016-07/ … a68fe1.PNG

كۆده‌كانی نێو سیلاید شۆ كه‌م ئه‌مه‌یه‌

<?php
$not_duplicate_posts = worldplus_options("not_duplicate_posts");
$post                = (isset($GLOBALS['post'])?$GLOBALS['post']:'');
$do_not_duplicate    = (isset($GLOBALS['do_not_duplicate'])?$GLOBALS['do_not_duplicate']:'');
$box_style           = (isset($inner_builder['box_style']) && $inner_builder['box_style'] != ""?$inner_builder['box_style']:"");
$box_title           = (isset($inner_builder['box_title']) && $inner_builder['box_title'] != ""?$inner_builder['box_title']:"");
$box_posts_num       = (isset($inner_builder['box_posts_num']) && $inner_builder['box_posts_num'] != ""?$inner_builder['box_posts_num']:"");
$box_display         = (isset($inner_builder['box_display']) && $inner_builder['box_display'] != ""?$inner_builder['box_display']:"");
$box_cats            = (isset($inner_builder['box_cats']) && $inner_builder['box_cats'] != ""?$inner_builder['box_cats']:"");
$categories          = (isset($inner_builder['categories']) && is_array($inner_builder['categories'])?$inner_builder['categories']:"");
$e_categories        = (isset($inner_builder['exclude_categories']) && is_array($inner_builder['exclude_categories'])?$inner_builder['exclude_categories']:"");
$custom_posts        = (isset($inner_builder['custom_posts']) && $inner_builder['custom_posts'] != ""?$inner_builder['custom_posts']:"");
$read_more           = (isset($inner_builder['read_more']) && $inner_builder['read_more'] != ""?$inner_builder['read_more']:"");
$orderby             = (isset($inner_builder['order_by']) && $inner_builder['order_by'] != ""?$inner_builder['order_by']:"");
$animate             = (isset($inner_builder['animate']) && $inner_builder['animate'] != ""?$inner_builder['animate']:"");
$animate_class       = (isset($animate) && $animate != "" && $animate != "none"?" animation":"");
$data_animate        = (isset($animate) && $animate != "" && $animate != "none"?" data-animate='".esc_attr($animate)."'":"");
$excerpt_title       = (isset($inner_builder['excerpt_title']) && (int)$inner_builder['excerpt_title']?$inner_builder['excerpt_title']:"");
$excerpt_title       = (isset($excerpt_title) && (int)$excerpt_title != ""?$excerpt_title:($excerpt_title == 0?0:5));
$excerpt             = (isset($inner_builder['excerpt']) && (int)$inner_builder['excerpt']?$inner_builder['excerpt']:"");
$excerpt             = (isset($excerpt) && (int)$excerpt != ""?$excerpt:($excerpt == 0?0:35));
$date                = (isset($inner_builder['date']) && $inner_builder['date'] != ""?$inner_builder['date']:"");
$category            = (isset($inner_builder['category']) && $inner_builder['category'] != ""?$inner_builder['category']:"");

$categories_a = $exclude_categories_a = array();
if (isset($categories) && is_array($categories)) {
    $categories_a = $categories;
}

if (isset($e_categories) && is_array($e_categories)) {
    $exclude_categories_a = $e_categories;
}

if (isset($box_display) && $box_display == "categories") {
    $cat_array = array('category__in' => $categories_a);
}else if (isset($box_display) && $box_display == "exclude_categories") {
    $cat_array = array('category__not_in' => $exclude_categories_a);
}else if (isset($box_display) && $box_display == "custom_posts") {
    $custom_posts = explode(",",$custom_posts);
    $cat_array = array('post__in' => $custom_posts);
}else if (isset($box_display) && $box_display == "category") {
    $cat_array = array('category__in' => $box_cats);
}else {
    $cat_array = array();
}

if ($orderby == "popular") {
    $orderby = array('orderby' => 'comment_count');
}else if ($orderby == "random") {
    $orderby = array('orderby' => 'rand');
}else if ($orderby == "most_visited") {
    $orderby = array("orderby" => "meta_value_num","meta_key" => "post_stats","meta_query" => array(array('type' => 'numeric',"key" => "post_stats","value" => 0,"compare" => ">")));
}else if ($orderby == "most_rated") {
    $orderby = array("orderby" => "meta_value_num","meta_key" => "worldplus_final_review","meta_query" => array(array('type' => 'numeric',"key" => "worldplus_final_review","value" => 0,"compare" => ">")));
}else {
    $orderby = array();
}

if ($worldplus_sidebar_all == "full") {
    $slide_show = "slide-show-full";
}else if ($worldplus_sidebar_all == "both") {
    $slide_show = "slide-show-both";
}else {
    $slide_show = "slide-show-sidebar";
}

if ($not_duplicate_posts == "on") {
    $not_duplicate_array = array('post__not_in' => $do_not_duplicate);
}else {
    $not_duplicate_array = array();
}

if ($box_style == 1) {
    $box_slideshow_big = array(1);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(0);
    $count_1 = 5;
}else if ($box_style == 2) {
    $box_slideshow_big = array(1);
    $box_slideshow_half = array(2);
    $box_slideshow_half_height = array(2);
    $count_1 = 4;
}else if ($box_style == 3) {
    $box_slideshow_big = array(3);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(0);
    $count_1 = 5;
}else if ($box_style == 4) {
    $box_slideshow_big = array(1);
    $box_slideshow_half = array(2,3);
    $box_slideshow_half_height = array(2,3);
    $count_1 = 3;
}else if ($box_style == 5) {
    $box_slideshow_big = array(1,2);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(0);
    $count_1 = 2;
}else if ($box_style == 6) {
    $box_slideshow_big = array(0);
    $box_slideshow_half = array(1,2,3,4);
    $box_slideshow_half_height = array(0);
    $count_1 = 4;
}else if ($box_style == 8) {
    $box_slideshow_big = array(3);
    $box_slideshow_half = array(1,2);
    $box_slideshow_half_height = array(0);
    $count_1 = 3;
}else if ($box_style == 11) {
    $box_slideshow_big = array(4);
    $box_slideshow_half = array(1);
    $box_slideshow_half_height = array(0);
    $count_1 = 4;
}else if ($box_style == 12) {
    $box_slideshow_big = array(5);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(0);
    $count_1 = 5;
}else if ($box_style == 13) {
    $box_slideshow_big = array(0);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(1,2,3,4);
    $count_1 = 4;
}else if ($box_style == 14) {
    $box_slideshow_big = array(0);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(1,2,3);
    $count_1 = 3;
}else {
    $box_slideshow_big = array(0);
    $box_slideshow_half = array(0);
    $box_slideshow_half_height = array(0);
    if ($box_style == 9) {
        $count_1 = 8;
        $slideshow_bigger = false;
    }else if ($box_style == 10) {
        $count_1 = 1;
        $slideshow_bigger = true;
    }else {
        $count_1 = 4;
    }
}

$box_posts_num = $box_posts_num*$count_1;
$box_slide = $box_posts_num/$count_1;

query_posts(array_merge($not_duplicate_array,$orderby,$cat_array,array('no_found_rows' => true,'ignore_sticky_posts' => true,'cache_results' => false,'meta_key' => '_thumbnail_id','posts_per_page' => $box_posts_num)));

if ((isset($box_title) && $box_title != "") || (isset($box_display) && $box_display == "category")) {?>
    <div class="post-title post-title-news"><h3><?php echo (isset($box_title) && $box_title != ""?$box_title:(isset($box_display) && $box_display == "category"?"<a href='".esc_url(get_category_link($box_cats))."'>".get_the_category_by_ID($box_cats)."</a>":""))?></h3></div><div class="clearfix"></div>
<?php }?>

<div class="box-slideshow<?php echo ($worldplus_sidebar_all == "full"?" box-slideshow-full ":" ").$slide_show." slideshow-style-".$box_style?>">
    <ul>    
        <?php if ( have_posts() ) :$k_s = $a_s = 0;
        while ( have_posts() ) : the_post();
            $do_not_duplicate[] = $post->ID;
            $k_s++;
            $a_s++;
            $post_username = get_post_meta($post->ID, 'post_username',true);
            $post_email = get_post_meta($post->ID, 'post_email',true);
            if ($k_s == 1) {?>
                <li class="slider-item">
            <?php }
            if (($a_s == 1 || $a_s == 4) && $box_style == 3) {?>
                <div class="box-slideshow-style-3">
            <?php }else if ($a_s == 1 && $box_style == 8) {?>
                <div class="box-slideshow-half-small">
            <?php }else if ($a_s == 1 && $box_style == 11) {?>
                <div class="box-slideshow-small-half">
            <?php }else if ($a_s == 1 && $box_style == 12) {?>
                <div class="box-slideshow-small-small">
            <?php }?>
                <div class="box-slideshow-main<?php echo (in_array($k_s,$box_slideshow_big)?" box-slideshow-big":(in_array($k_s,$box_slideshow_half)?" box-slideshow-half":(isset($slideshow_bigger) && $slideshow_bigger == true?" box-slideshow-bigger":" box-slideshow-small")))?>">
                    <div class="box-slideshow-img">
                        <?php if (in_array($k_s,$box_slideshow_big)) {
                            if ($worldplus_sidebar_all == "full") {
                                echo worldplus_get_aq_resize_img('full',570,500);
                            }else if ($worldplus_sidebar_all == "both") {
                                echo worldplus_get_aq_resize_img('full',277,220);
                            }else if ($worldplus_sidebar_all == "centered") {
                                echo worldplus_get_aq_resize_img('full',375,344);
                            }else {
                                echo worldplus_get_aq_resize_img('full',414,380);
                            }
                        }
                        if (in_array($k_s,$box_slideshow_half)) {
                            if ($worldplus_sidebar_all == "full") {
                                echo worldplus_get_aq_resize_img('full',570,250);
                            }else if ($worldplus_sidebar_all == "centered") {
                                echo worldplus_get_aq_resize_img('full',375,172);
                            }else if ($worldplus_sidebar_all == "both") {
                                echo worldplus_get_aq_resize_img('full',277,110);
                            }else {
                                echo worldplus_get_aq_resize_img('full',414,190);
                            }
                        }
                        if (in_array($k_s,$box_slideshow_half_height)) {
                            if ($box_style == 13) {
                                if ($worldplus_sidebar_all == "full") {
                                    echo worldplus_get_aq_resize_img('full',285,400);
                                }else if ($worldplus_sidebar_all == "centered") {
                                    echo worldplus_get_aq_resize_img('full',188,268);
                                }else if ($worldplus_sidebar_all == "both") {
                                    echo worldplus_get_aq_resize_img('full',139,219);
                                }else {
                                    echo worldplus_get_aq_resize_img('full',207,287);
                                }
                            }else if ($box_style == 14) {
                                if ($worldplus_sidebar_all == "full") {
                                    echo worldplus_get_aq_resize_img('full',380,520);
                                }else if ($worldplus_sidebar_all == "centered") {
                                    echo worldplus_get_aq_resize_img('full',250,340);
                                }else if ($worldplus_sidebar_all == "both") {
                                    echo worldplus_get_aq_resize_img('full',185,280);
                                }else {
                                    echo worldplus_get_aq_resize_img('full',250,340);
                                }
                            }
                        }
                        if (!in_array($k_s,$box_slideshow_big) && !in_array($k_s,$box_slideshow_half) && !in_array($k_s,$box_slideshow_half_height)) {
                            if ($box_style == 10) {
                                if ($worldplus_sidebar_all == "full") {
                                    echo worldplus_get_aq_resize_img('full',1140,500);
                                }else if ($worldplus_sidebar_all == "both") {
                                    echo worldplus_get_aq_resize_img('full',555,340);
                                }else if ($worldplus_sidebar_all == "centered") {
                                    echo worldplus_get_aq_resize_img('full',750,355);
                                }else {
                                    echo worldplus_get_aq_resize_img('full',750,355);
                                }
                            }else {
                                if ($worldplus_sidebar_all == "full") {
                                    echo worldplus_get_aq_resize_img('full',285,250);
                                }else if ($worldplus_sidebar_all == "centered") {
                                    echo worldplus_get_aq_resize_img('full',188,172);
                                }else if ($worldplus_sidebar_all == "both") {
                                    echo worldplus_get_aq_resize_img('full',139,110);
                                }else {
                                    echo worldplus_get_aq_resize_img('full',207,190);
                                }
                            }
                        }?>
                    </div><!-- End box-slideshow-img -->
                    <div class="slideshow-overlay"></div>
                    <div class="box-slideshow-content">
                        <div class="box-slideshow-outer">
                            <div class="box-slideshow-inner">
                                <a class="box-news-overlay-3" href="<?php the_permalink();?>" title="<?php printf('%s', the_title_attribute('echo=0')); ?>" rel="bookmark"></a>
                                <?php if ($category == 'on') {?>
                                    <span class="slide-category">
                                        <?php $get_categories = get_the_category($post->ID);
                                        $separator = ', ';
                                        $output = '';
                                        if ($get_categories) {$k_category = 0;
                                            foreach ($get_categories as $get_category) {$k_category++;
                                                $output .= '<a href="'.esc_url(get_category_link( $get_category->term_id )).'" title="' . esc_attr( sprintf( esc_html__( "View all posts in %s","worldplus" ), $get_category->name ) ) . '">'.$get_category->cat_name.'</a>'.$separator;
                                                if ($k_category == 2) {
                                                    break;
                                                }
                                            }
                                        echo trim($output, $separator);
                                        }?>
                                    </span>
                                <?php }?>
                                <?php if ($date == 'on') {?>
                                    <span class="slide-date"><i class="fa fa-calendar"></i><?php the_time(worldplus_date_format);?></span>
                                <?php }?>
                                <div class="clearfix"></div>
                                <?php if ($excerpt_title > 0) {?>
                                    <a href="<?php the_permalink();?>" title="<?php printf('%s', the_title_attribute('echo=0')); ?>" rel="bookmark"><?php worldplus_excerpt_title($excerpt_title);?></a>
                                <?php }?>
                            </div><!-- End box-slideshow-inner -->
                        </div><!-- End box-slideshow-outer -->
                    </div><!-- End box-slideshow-content -->
                </div><!-- End box-slideshow-main -->
                <?php if (($a_s == 2 || $a_s == 5) && $box_style == 3) {?>
                    </div><!-- End box-slideshow-style-3 -->
                    <?php if ($a_s == $count_1) {
                        $a_s = 0;
                    }
                }else if (($a_s == 2 || $a_s == 3) && $box_style == 8) {
                    if ($a_s == 2) {?>
                        </div><!-- End box-slideshow-half-small -->
                    <?php }
                    if ($a_s == $count_1) {
                        $a_s = 0;
                    }
                }else if (($a_s == 4 || $a_s == 5) && $box_style == 12) {
                    if ($a_s == 4) {?>
                        </div><!-- End box-slideshow-small-small -->
                    <?php }
                    if ($a_s == $count_1) {
                        $a_s = 0;
                    }
                }else if (($a_s == 3 || $a_s == 4) && $box_style == 11) {
                    if ($a_s == 3) {?>
                        </div><!-- End box-slideshow-small-half -->
                    <?php }
                    if ($a_s == $count_1) {
                        $a_s = 0;
                    }
                }
            if ($k_s == $count_1) {?>
                </li>
                <?php $k_s = 0;
            }
        endwhile;endif;wp_reset_query();?>
    </ul>
</div><!-- End box-slideshow -->
<div class="clearfix"></div>

به‌ڵام من ده‌مه‌وێت خۆی راسته‌وخۆ سایزی وێنه‌كه‌ بچوك بكاته‌وه‌ به‌وه‌ی كه‌ ئه‌یه‌وێت و ئینجا وێنه‌ی نێو وێنه‌ی پێشكه‌وتووه‌كه‌ ده‌ر بكه‌وێت.

ژیان تۆ پێ ده‌گه‌یه‌نێت نه‌ك خۆت!

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

ئەمە Wordpress ـە؟

هیچ شتێك ئه‌وه‌نده‌ باش نییه‌ نه‌توانرێت باشتر بكرێت :::http://webdarej.com

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

به‌ڵێ براكه‌م، ببوره‌ ڕه‌نگه‌ شوێنه‌كه‌ی هه‌ڵه‌ بێت

ژیان تۆ پێ ده‌گه‌یه‌نێت نه‌ك خۆت!

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

دەیگوێزمەوە مەکۆی Wordpress.

هیچ شتێك ئه‌وه‌نده‌ باش نییه‌ نه‌توانرێت باشتر بكرێت :::http://webdarej.com

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

زۆر سوپاس ده‌ستت خۆشبێت براكه‌م

ژیان تۆ پێ ده‌گه‌یه‌نێت نه‌ك خۆت!

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

بيويستييم بة هاوكاريتانة هاوري يان

ژیان تۆ پێ ده‌گه‌یه‌نێت نه‌ك خۆت!

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

من کێشەیەک لە کاری کۆدەکانت نابینم، خۆت نووسیووتە کە هەڵەکەت لە چیدا، خۆشت دەتوانیت بە ئاسانی چارەسەری بکەیت. جا وێنەیەک بار بکە کە قەبارەکەی پەسەندکراو بێت و تەواو. دواتریش کۆمەڵێک قەبارە بە ڕوونی لە نێو کۆدەکان نووسراون کە لەوانەیە پەیوەندیداربن بە ئەوەی کە تۆ دەتەوێت بیگۆڕیت. خۆتی لەگەڵ سەرقاڵ بکە و دەستکارییان بکە. چوونکە خۆت دەزانیت قەبارەکان چەندن و دۆزینەوە و دەستکاریکردنی قەبارەکە لە نێو کۆدەکان زۆر ئاسانە ئەو کاتە.

نابێت بۆ گۆڕێنی ژمارەیەکیش بە بابەتێک چارەسەریی بۆ بکەیت. هەندێک خۆ ماندووکردن پێویستە.

هیچ شتێك ئه‌وه‌نده‌ باش نییه‌ نه‌توانرێت باشتر بكرێت :::http://webdarej.com

وه‌ڵام: سیلایدشۆ یه‌كم هه‌یه‌ ئه‌مه‌وێت ...

كاك ئاسۆ گیان، پێش ئه‌وه‌ی بپرسم گۆگڵ و دار و به‌ردی بۆ ئه‌هێنمه‌ خوار هه‌ر ده‌ستم ناكه‌وێت ناچار دێمه‌ ئێره‌ ئه‌پرسم، جاران ئه‌چوومه‌ یانه‌ عه‌ره‌بیه‌كان پرسیارم ده‌كرد، به‌ڵام كه‌ كوردی خۆمان بتوانێت هاوكاریم بكات بۆ بچم داوا له‌ عه‌ره‌ب بكه‌م!؟

به‌پێی ئه‌و وێنه‌یه‌ بێت كه‌ ده‌ست ده‌كه‌وێت، ئه‌چێت بۆ ئه‌و ناو نیشانه‌و سایزی بۆ دیاری ده‌كات له‌ به‌شی فه‌كشن دانرا بوو،

else {
        $last_image = "http://placehold.it/".$img_width_f."x".$img_height_f;
    }
    return $last_image;
}

كۆده‌كانی سه‌ره‌وه‌ به‌ شێوه‌یه‌ك ڕێك خراوه‌ كه‌ بێت و وێنه‌كه‌ قه‌باره‌كه‌ی قبول نه‌كراو بوو له‌و خۆی وێنه‌یه‌ك به‌ ئۆتۆ ماتیكی دابنێت به‌و قه‌باره‌ی پێویستێتی به‌ڵام من ده‌مه‌وێت هه‌ر وێنه‌ی باركراوی پێشكه‌وتووه‌كه‌ دا بنێته‌وه‌

ئه‌مه‌ش ته‌واوی كۆدی نێو فه‌كشن تایبه‌ت به‌ گۆڕینی سایز، سوپاست ده‌كه‌م گه‌ر بۆم ڕێك بخه‌یت.

/* get_aq_resize_img */
function worldplus_get_aq_resize_img ($thumbnail_size,$img_width_f,$img_height_f,$img_lightbox="") {
    $thumb = get_post_thumbnail_id();
    if ($thumb != "") {
        $img_url = wp_get_attachment_url($thumb,$thumbnail_size);
        $img_width = $img_width_f;
        $img_height = $img_height_f;
        $image = aq_resize($img_url,$img_width,$img_height,true);
        if ($image) {
            $last_image = $image;
        }else {
            $last_image = "http://placehold.it/".$img_width_f."x".$img_height_f;
        }
        return ($img_lightbox == "lightbox"?"<a href='".esc_url($img_url)."'>":"")."<img alt='".get_the_title()."' width='".$img_width."' height='".$img_height."' src='".$last_image."'>".($img_lightbox == "lightbox"?"</a>":"");
    }else {
        return ($img_lightbox == "lightbox"?"<a href='".esc_url($img_url)."'>":"")."<img alt='".get_the_title()."' src='".worldplus_image()."'>".($img_lightbox == "lightbox"?"</a>":"");
    }
}
/* get_aq_resize_img_url */
function worldplus_get_aq_resize_img_url ($url,$thumbnail_size,$img_width_f,$img_height_f) {
    $thumb = $url;
    if ($thumb != "") {
        $img_url = $thumb;
        $img_width = $img_width_f;
        $img_height = $img_height_f;
        $image = aq_resize($img_url,$img_width,$img_height,true);
        if ($image) {
            $last_image = $image;
        }else {
            $last_image = "http://placehold.it/".$img_width_f."x".$img_height_f;
        }
        return "<img alt='".get_the_title()."' width='".$img_width."' height='".$img_height."' src='".$last_image."'>";
    }else {
        return "<img alt='".get_the_title()."' width='".$img_width."' height='".$img_height."' src='".worldplus_image()."'>";
    }
}
/* get_aq_resize_url */
function worldplus_get_aq_resize_url ($url,$thumbnail_size,$img_width_f,$img_height_f,$what = "") {
    $img_url = $url;
    $img_width = $img_width_f;
    $img_height = $img_height_f;
    $image = aq_resize($img_url,$img_width,$img_height,true);
    if ($image || $what == "on") {
        $last_image = $image;
    }else {
        $last_image = "http://placehold.it/".$img_width_f."x".$img_height_f;
    }
    return $last_image;
}
/* get_aq_resize_img_full */
function worldplus_get_aq_resize_img_full ($thumbnail_size) {
    $thumb = get_post_thumbnail_id();
    if ($thumb != "") {
        $img_url = wp_get_attachment_url($thumb,$thumbnail_size);
        $image = $img_url;
        return "<img alt='".get_the_title()."' src='".$image."'>";
    }else {
        return "<img alt='".get_the_title()."' src='".worldplus_image()."'>";
    }
}
ژیان تۆ پێ ده‌گه‌یه‌نێت نه‌ك خۆت!