public function build_pagination_array($pages_data, $search_string) { $pages_array = array(); if ($pages_data && count($pages_data) > 0) { $this->load->helper('pages'); $pages_array = get_pages_array($pages_data[0], $pages_data[1], $pages_data[2], array('search_data_page_lang', array('search_string' => $search_string, 'page' => '', 'lang' => $this->mlangs->lang_code))); } return $pages_array; }
public function get_reviews_collection_array($result = array(), $pages_data = FALSE) { foreach ($result as $ms) { $menu_url = $ms['menu_id']; if (trim($ms['menu_url']) != '') { $menu_url = trim($ms['menu_url']); } } $pages_array = array(); if ($menu_url != NULL) { if ($pages_data && count($pages_data) > 0) { $this->load->helper('pages'); $pages_array = get_pages_array($pages_data[0], $pages_data[1], $pages_data[2], array('menu_page_lang', array('menu_url' => $menu_url, 'page' => '', 'lang' => $this->mlangs->lang_code))); } } return array('reviews' => $result, 'pages' => $pages_array, 'id_users_modules' => $this->id_users_modules); }
$options[] = array("name" => __("Display Categories?"), "label" => __("Display Categories?"), "desc" => __("Do you wish to display 'Categories' in Header Navigation? Select 'Show' to display else 'Hide'."), "id" => $shortname . "_catheader_display", "std" => "", "type" => "select", "options" => array('Hide', 'Show')); } if (apply_filters('templ_design_menucat_opt', true)) { $options[] = array("name" => __("Menu Category"), "label" => __("Header Navigation Select Menu Category"), "desc" => __("Select categories that you'd like to display on the right side in header. Press ctrl to select more than one."), "id" => $shortname . "_categories_id", "std" => "", "type" => "multiselect", "options" => get_categories_array()); } if (apply_filters('templ_design_breadcrumb_opt', true)) { $options[] = array("name" => __("Breadcrumbs Navigation"), "label" => __("Show breadcrumbs navigation bar"), "desc" => "i.e. Home > Blog > Title - <a href='" . $breadcrumbsurl . "'>Change options here</a>", "id" => $shortname . "_breadcrumbs", "std" => "true", "type" => "checkbox"); } $options[] = array("name" => "", "desc" => "", "id" => "", "std" => "", "type" => "savebutton"); $options[] = array("type" => "subheadingbottom"); } /// Footer Navigation Settings if (apply_filters('templ_design_footernavsettings_opt', true)) { $options[] = array("name" => __("Footer Navigation Settings"), "toggle" => "true", "type" => "subheadingtop"); if (apply_filters('templ_design_footerpages_opt', true)) { $options[] = array("name" => __("Footer Navigation"), "label" => __("Show breadcrumbs navigation bar"), "desc" => __("Select categories that you'd like to display on the right side in footer. Press ctrl to select more than one."), "id" => $shortname . "_footerpages", "std" => "", "type" => "multiselect", "options" => get_pages_array()); } $options[] = array("name" => "", "desc" => "", "id" => "", "std" => "", "type" => "savebutton"); $options[] = array("type" => "subheadingbottom"); } /////////////////////////end/////////// //cufon font settings------------------------------ if (apply_filters('templ_design_cufonsettings_opt', true)) { $options[] = array("name" => "Cufon Settings", "toggle" => "true", "type" => "subheadingtop"); $options[] = array("name" => __('Cufon Fonts'), "label" => __("Enable cufon style being used for titles?"), "desc" => __("This theme uses Rockwell fonts for headings in the site. You can disable this if you wish to."), "id" => $shortname . "_cufon_flag", "std" => "false", "type" => "checkbox"); $options[] = array("name" => "", "desc" => "", "id" => "", "std" => "", "type" => "savebutton"); $options[] = array("type" => "subheadingbottom"); } //cufon font settings------------------------------ if (apply_filters('templ_design_captchasettings_opt', true)) { $options[] = array("name" => "Captcha Settings", "toggle" => "true", "type" => "subheadingtop");
/** * render_pages * * Генерирует html постраничного вывода * * @return str */ public function render_pages() { $this->load->helper('agpages_helper'); $pages_array = get_pages_array($this->grid_pages['count'], $this->grid_pages['active'], $this->grid_pages['limit']); return $this->load->view('libraries/grid/pages', array('grid_pages' => $pages_array), true); }
protected function get_album_collection_array($result = array(), $pages_data = FALSE) { $array = array(); foreach ($result as $ms) { $menu_url = $ms['menu_id']; if (strlen($ms['menu_url']) > 2) { $menu_url = trim($ms['menu_url']); } if ($menu_url != NULL && ($url = trim($ms['url'])) != '' && strlen($url) > 2) { $url = $this->router->build_url('menu_detail_lang', array('menu_url' => $menu_url, 'detail' => $url, 'lang' => $this->mlangs->lang_code)); } else { if ($menu_url != NULL) { $url = $ms['ID']; $url = $this->router->build_url('menu_detail_lang', array('menu_url' => $menu_url, 'detail' => $url, 'lang' => $this->mlangs->lang_code)); } } $array[$ms['ID']] = $ms; if ($ms['image'] != NULL) { $array[$ms['ID']] = $ms + array('timage' => $this->img_path . $ms['ID'] . '/thumb_' . $ms['image'], 'bimage' => $this->img_path . $ms['ID'] . '/' . $ms['image']); } if (isset($url)) { $array[$ms['ID']] = $array[$ms['ID']] + array('detail_url' => $url); } } $pages_array = array(); if ($menu_url != NULL) { if ($pages_data && count($pages_data) > 0) { $this->load->helper('pages'); $pages_array = get_pages_array($pages_data[0], $pages_data[1], $pages_data[2], array('menu_page_lang', array('menu_url' => $menu_url, 'page' => '', 'lang' => $this->mlangs->lang_code))); } } return array('albums' => $array, 'pages' => $pages_array); }
public function get_product_detail_comments($pr_id) { $comments_array = array(); $count = $this->get_product_detail_comments_count($pr_id); if ($count == 0) { return array('comments' => $comments_array, 'pages' => FALSE); } $page = 1; if ((int) $this->variables->get_url_vars('product_comments_page') > 0) { $page = (int) $this->variables->get_url_vars('product_comments_page'); } $query = $this->get_product_detail_comments_query($pr_id); $pages_data = $this->set_product_detail_comments_limit($query, $count, $page); if ($pages_data && count($pages_data) > 0) { $this->load->helper('pages'); $pages_array = get_pages_array($pages_data[0], $pages_data[1], $pages_data[2], array('product_comments_page_lang', array('pr_id' => $pr_id, 'page' => '', 'lang' => $this->mlangs->lang_code))); } $comments_array = $this->build_product_detail_comments_data($query, $pr_id); return array('comments' => $comments_array, 'pages' => $pages_array); }
woowaitlist_admin_tabs('woowaitlist_settings'); } echo $updated_html; wp_nonce_field('woowaitlist-update-settings'); ?> <?php switch ($current_tab) { case "woowaitlist_settings": $wew_subscribe_to_waitlist_str = get_option('wew-subscribe-to-waitlist-str') ? get_option('wew-subscribe-to-waitlist-str') : __('Subscribe to waitlist', $plugin_slug); $subscibe_backorders = get_option('wew-subscribe-backorders') && get_option('wew-subscribe-backorders') == "on" ? 'checked="checked"' : ""; $wew_enable_shop_manager_settings = get_option('wew-enable-shop-manager-settings') && get_option('wew-enable-shop-manager-settings') == "on" ? 'checked="checked"' : ""; $wew_admin_notification_on_subscription = get_option('wew-admin-notification-on-subscription') && get_option('wew-admin-notification-on-subscription') == "on" ? 'checked="checked"' : ""; $wew_unsubscribe_page = get_option('wew-unsubscribe-page') ? get_option('wew-unsubscribe-page') : 0; $wew_remove_data_on_uninstall = get_option('wew-remove-waitlist-on-uninstall') && get_option('wew-remove-waitlist-on-uninstall') == "on" ? 'checked="checked"' : ""; $sites_allPages = get_pages_array(); $out_of_stock_message = get_option('wew-out-of-stock-message') ? get_option('wew-out-of-stock-message') : __('Notify me when item is back in stock', $plugin_slug); $out_variation_of_stock_message = get_option('wew-variations-out-of-stock-message') ? get_option('wew-variations-out-of-stock-message') : __('Notify me when item variation is back in stock', $plugin_slug); $sproduct_success = get_option('wew-subscribe-product-success-msg') ? get_option('wew-subscribe-product-success-msg') : __('Your email address has been saved and you will be notified when the product is back in stock', $plugin_slug); $svariation_success = get_option('wew-subscribe-variation-success-msg') ? get_option('wew-subscribe-variation-success-msg') : __("Your email address has been saved and you will be notified when the product variation is back in stock", $plugin_slug); $already_subscribed_product = get_option('wew-already-product-subscribed') ? get_option('wew-already-product-subscribed') : __("You have already subscribed to this product waitlist", $plugin_slug); $already_subscribed_variation = get_option('wew-already-variation-subscribed') ? get_option('wew-already-variation-subscribed') : __("You have already subscribed to this product variation waitlist", $plugin_slug); $emptyEmail_alert = get_option('wew-no-email-alert') ? get_option('wew-no-email-alert') : __("Email Address is Required", $plugin_slug); $custom_css = get_option('wew-custom-css') ? get_option('wew-custom-css') : ""; ?> <form method="post" action="<?php echo $current_tabURL_slug; ?> " class="woowaitlist-settings-form">
function getPagesArray($count, $active, $limit = 8, $href = '') { return get_pages_array($count, $active, $limit, $href); }