Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- include_once ABSPATH . 'wp-admin/includes/plugin.php';
- $options = array('post_type' => $this->post_type);
- if ($this->tax && $this->term && $this->tax != 'null' && $this->term != 'null' && $this->tax != '' && $this->term != '') {
- $terms_arr = explode(',', $this->term);
- $options['tax_query'] = array(array('taxonomy' => $this->tax, 'field' => 'term_id', 'terms' => $terms_arr));
- }
- if ($this->include_id && $this->include_id != 'null' && $this->include_id != '') {
- $include_id_arr = explode(',', $this->include_id);
- $options['post__in'] = $include_id_arr;
- }
- if ($this->exclude_id && $this->exclude_id != 'null' && $this->exclude_id != '') {
- $exclude_id_arr = explode(',', $this->exclude_id);
- $options['post__not_in'] = $exclude_id_arr;
- }
- $posts_per_page = $this->rowCount * $this->colCount;
- if ($this->order_query && $this->order_query != '') {
- $options['order'] = $this->order_query;
- } else {
- $options['order'] = 'ASC';
- }
- if ($options['order'] == 'ASC') {
- $o1 = ' selected="selected"';
- $o2 = '';
- }
- if ($options['order'] == 'DESC') {
- $o1 = '';
- $o2 = ' selected="selected"';
- }
- if ($this->select && $this->select != '') {
- $options['orderby'] = $this->select;
- } else {
- $options['orderby'] = 'title';
- }
- if ($options['orderby'] == 'title') {
- unset($options['meta_key']);
- $s1 = ' selected="selected"';
- $s2 = '';
- $s3 = '';
- $s4 = '';
- }
- if ($options['orderby'] == 'date') {
- unset($options['meta_key']);
- $s2 = ' selected="selected"';
- $s1 = '';
- $s3 = '';
- $s4 = '';
- }
- if ($options['orderby'] == 'meta_value_num') {
- $options['meta_key'] = 'cost_1';
- $s3 = ' selected="selected"';
- $s2 = '';
- $s1 = '';
- $s4 = '';
- }
- if ($options['orderby'] == 'rand') {
- unset($options['meta_key']);
- $s4 = ' selected="selected"';
- $s2 = '';
- $s3 = '';
- $s1 = '';
- }
- $options['posts_per_page'] = $posts_per_page;
- $options['paged'] = $this->page;
- if ($this->hide_sklad && $this->hide_sklad == '1') {
- $options['meta_query'][0] = array('relation' => 'OR', array('key' => 'sklad_1', 'value' => 0, 'type' => 'NUMERIC', 'compare' => '>'), array('key' => 'sklad_1', 'value' => '', 'compare' => 'NOT EXISTS'), array('key' => 'sklad_1', 'value' => '', 'compare' => '='));
- }
- if ($this->field && $this->field != 'null' && $this->field != '') {
- ........................................................................
- .......................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement