• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_category_list函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_category_list函数的典型用法代码示例。如果您正苦于以下问题:PHP get_category_list函数的具体用法?PHP get_category_list怎么用?PHP get_category_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_category_list函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: ajax_load

function ajax_load()
{
    if (isset($_GET['action'])) {
        if ($_GET['action'] == 'menu') {
            get_menu_list();
            exit;
        }
        if ($_GET['action'] == 'category_list') {
            get_category_list();
            exit;
        }
        if ($_GET['action'] == 'blog_list') {
            get_blog_list();
            exit;
        }
        if ($_GET['action'] == 'lol_list') {
            get_lol_list();
            exit;
        }
        if ($_GET['action'] == 'lol_hero_list') {
            get_lol_hero_list();
            exit;
        }
        if ($_GET['action'] == 'lol_info') {
            get_lol_info();
            exit;
        }
    }
}
开发者ID:sqlwang,项目名称:my_wpblog,代码行数:29,代码来源:functions.php


示例2: add_page_option_element

function add_page_option_element()
{
    global $post, $page_meta_boxes;
    //init array
    $page_meta_boxes['Page Item']['name']['Blog']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Blog']['read-the-blog']['options'] = array_merge(array('None'), get_post_slug_list('page'));
    $page_meta_boxes['Page Item']['name']['Gallery']['page']['options'] = get_post_slug_list('gdl-gallery');
    $page_meta_boxes['Page Item']['name']['Personnal']['category']['options'] = get_category_list('personnal-category');
    $page_meta_boxes['Page Item']['name']['Package']['category']['options'] = get_category_list('package-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['category']['options'] = get_category_list('portfolio-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['view-all-portfolio']['options'] = array_merge(array('None'), get_post_slug_list('page'));
    $page_meta_boxes['Page Item']['name']['Post-Slider']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Price-Item']['category']['options'] = get_category_list('price-table-category');
    $page_meta_boxes['Page Item']['name']['Testimonial']['category']['options'] = get_category_list('testimonial-category');
    $page_meta_boxes['Choose Left Sidebar']['options'] = get_sidebar_name();
    $page_meta_boxes['Choose Right Sidebar']['options'] = $page_meta_boxes['Choose Left Sidebar']['options'];
    echo '<div id="gdl-overlay-wrapper">';
    echo '<div id="gdl-overlay-content">';
    set_nonce();
    //get value
    foreach ($page_meta_boxes as $page_meta_box) {
        if ($page_meta_box['type'] == 'page-option-item') {
            $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['xml'], true);
            print_page_default_elements($page_meta_box);
            print_page_selected_elements($page_meta_box);
        } else {
            if ($page_meta_box['type'] == 'imagepicker') {
                $slider_xml_string = get_post_meta($post->ID, $page_meta_box['xml'], true);
                if (!empty($slider_xml_string)) {
                    $slider_xml_val = new DOMDocument();
                    $slider_xml_val->loadXML($slider_xml_string);
                    $page_meta_box['value'] = $slider_xml_val->documentElement;
                }
                print_meta($page_meta_box);
            } else {
                if (empty($page_meta_box['name'])) {
                    $page_meta_box['name'] = '';
                }
                $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['name'], true);
                print_meta($page_meta_box);
            }
        }
        echo "<div class='clear'></div>";
        if (empty($page_meta_box['hr'])) {
            if ($page_meta_box['type'] != 'open' && $page_meta_box['type'] != 'close') {
                echo '<hr class="separator mt20">';
            }
        }
    }
    echo '</div>';
    echo '</div>';
}
开发者ID:hongviet119,项目名称:dlvv,代码行数:52,代码来源:page-option.php


示例3: wp_affiliate_post_menu

function wp_affiliate_post_menu()
{
    global $wpdb, $wp_affiliate_prefix;
    $category_form = "\r\n<h2>Add Base Category</h2>\r\n<div id=\"wp_affiliate_add_category_results\" style=\"color:red;\"></div>\r\n<table>\r\n<tr><td align=\"right\">\r\n<b>Category Name:</b>\r\n</td><td>\r\n<input type=\"text\" name=\"wp_affiliate_add_new_category\">\r\n</td></tr></table>\r\n<input type=\"hidden\" name=\"wp_affiliate_category_parent\" value=\"0\">\r\n<input type=\"button\" value=\"Add Base Category\" onclick=\"wp_affiliate_ajax_add_category(this.form.wp_affiliate_add_new_category,this.form.wp_affiliate_category_parent);\" >\r\n";
    echo $category_form;
    echo "\r\n<h2>Categorical Listing Of Links</h2>\r\n<div id=\"wp_affiliate_category_list\">\r\n";
    $category_list = get_category_list();
    if ($category_list) {
        echo get_category_list();
    } else {
        echo "<ul id=\"wpanav\"><ul>";
    }
    //"No categories! Add at least one in order to add links!";
    echo "\r\n</div>";
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:15,代码来源:wp-affiliate.php


示例4: add_page_option_element

function add_page_option_element()
{
    global $post, $page_meta_boxes;
    //init array
    $page_meta_boxes['Page Item']['name']['Blog']['category']['options'] = get_category_list('category');
    $page_meta_boxes['Page Item']['name']['Gallery']['page']['options'] = get_title_list('gallery');
    $page_meta_boxes['Page Item']['name']['Portfolio']['category']['options'] = get_category_list('portfolio-category');
    $page_meta_boxes['Page Item']['name']['Portfolio']['view-all-project']['options'] = array_merge(array('No'), get_title_list('page'));
    $page_meta_boxes['Page Item']['name']['Testimonial']['category']['options'] = get_category_list('testimonial-category');
    $page_meta_boxes['Page Item']['name']['Testimonial']['specific']['options'] = get_title_list('testimonial');
    $page_meta_boxes['Choose Left Sidebar']['options'] = get_sidebar_name();
    $page_meta_boxes['Choose Right Sidebar']['options'] = $page_meta_boxes['Choose Left Sidebar']['options'];
    $page_meta_boxes['Bg Slider Type']['options'] = array_merge(array('Current Page'), get_title_list('page'));
    echo '<div id="gdl-overlay-wrapper">';
    echo '<div id="gdl-overlay-content">';
    set_nonce();
    //get value
    foreach ($page_meta_boxes as $page_meta_box) {
        if ($page_meta_box['type'] == 'open' || $page_meta_box['type'] == 'close' || $page_meta_box['type'] == 'text') {
            print_meta($page_meta_box);
        } else {
            if ($page_meta_box['type'] == 'page-option-item') {
                $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['xml'], true);
                print_page_default_elements($page_meta_box);
                print_page_selected_elements($page_meta_box);
            } else {
                if ($page_meta_box['type'] == 'imagepicker') {
                    $slider_xml_string = get_post_meta($post->ID, $page_meta_box['xml'], true);
                    if (!empty($slider_xml_string)) {
                        $slider_xml_val = new DOMDocument();
                        $slider_xml_val->loadXML($slider_xml_string);
                        $page_meta_box['value'] = $slider_xml_val->documentElement;
                    }
                    print_meta($page_meta_box);
                } else {
                    $page_meta_box['value'] = get_post_meta($post->ID, $page_meta_box['name'], true);
                    print_meta($page_meta_box);
                }
            }
        }
        echo "<div class='clear'></div>";
        echo empty($page_meta_box['hr']) ? '<hr class="separator mt20">' : '';
    }
    echo '</div>';
    echo '</div>';
}
开发者ID:uglmee,项目名称:kikiku.com,代码行数:46,代码来源:page-option.php


示例5: get_category_list

function get_category_list($parent = 0, $escape = false)
{
    global $wpdb, $wp_affiliate_prefix;
    $table_name = $wpdb->prefix . $wp_affiliate_prefix . "_categories";
    $results = $wpdb->get_results("SELECT * FROM " . $table_name . " WHERE parent=" . $parent . " ORDER BY category ASC");
    if (!$results) {
        return;
    }
    $category_list = "<ul";
    if ($parent == 0) {
        $category_list .= " id=\"wpanav\" ";
    }
    $category_list .= ">\n";
    foreach ($results as $result) {
        $js_category = str_replace("-", "_", sanitize_title($result->category));
        $category_list .= "<li id=\"catli" . $result->id . "\" >" . $result->category . " <a href=\"#\" onclick=\"wp_affiliate_show_add_link_box(" . $result->id . "," . $result->parent . ", '" . $js_category . "');return false;\">Add A Link</a> <a href=\"#\" onclick=\"wp_affiliate_show_add_sub_category_box(" . $result->id . "," . $result->parent . ", '" . $js_category . "');return false;\">Add Sub Category</a> (<a href=\"#\" onclick=\"wp_affiliate_ajax_delete_category(" . $result->id . "); return false;\">Delete Category</a>)<div id=\"add-link-" . $result->parent . "-" . $js_category . "\" style=\"display:none;\"></div><div id=\"add-sub-category-" . $result->parent . "-" . $js_category . "\" style=\"display:none;\"></div>\n";
        $category_list .= get_link_list($result->id, $result->category);
        $category_list .= get_category_list($result->id);
        $category_list .= "</li>\n";
    }
    $category_list .= "</ul>\n";
    return $category_list;
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:23,代码来源:wp-affiliate-category-functions.php


示例6: list_category

function list_category($config)
{
    $cate_list = get_category_list($config);
    if ($cate_list) {
        $num = count($cate_list);
        if ($num < 2) {
            echo "<p>There is {$num} category</p>";
        } else {
            echo "<p>There are {$num} categories</p>";
        }
        echo "<table border='1' cellspacing='0'>";
        echo "<tr>";
        echo "\t<th>ID</th>";
        echo "\t<th>Name</th>";
        echo "\t<th>Receipt</th>";
        echo "\t<th>Description</th>";
        echo "\t<th colspan='2'>Action</th>";
        echo "</tr>";
        for ($i = 0; $i < $num; $i++) {
            echo "<tr>";
            echo "\t<td>" . $cate_list[$i]['Id'] . "</td>";
            echo "\t<td>" . $cate_list[$i]['Name'] . "</td>";
            if ($cate_list[$i]['Receipt']) {
                echo "\t<td>Yes</td>";
            } else {
                echo "\t<td>&nbsp;</td>";
            }
            echo "\t<td>" . $cate_list[$i]['Description'] . "&nbsp;</td>";
            echo "\t<td><a href='category.php?action_type=edit&id=" . $cate_list[$i]['Id'] . "'>Edit</a></td>";
            echo "\t<td><a href='category.php?action_type=delete&id=" . $cate_list[$i]['Id'] . "'>Delete</a></td>";
            echo "<tr/>";
        }
        echo "</table>";
    } else {
        echo "There is no any category";
    }
}
开发者ID:NguyenThanhDung,项目名称:Finance,代码行数:37,代码来源:category.php


示例7: move_up_category

    if ('exMvUpCat' == $cmd) {
        move_up_category($catId);
    }
    if ('exMvDownCat' == $cmd) {
        move_down_category($catId);
    }
    if ('exMvUpForum' == $cmd) {
        move_up_forum($forumId);
    }
    if ('exMvDownForum' == $cmd) {
        move_down_forum($forumId);
    }
}
//end of admin commands
//load category and forum lists
$categories = get_category_list();
$total_categories = count($categories);
$forum_list = get_forum_list();
if (claro_is_user_authenticated()) {
    $userGroupList = get_user_group_list(claro_get_current_user_id());
    $userGroupList = array_keys($userGroupList);
    $tutorGroupList = get_tutor_group_list(claro_get_current_user_id());
} else {
    $userGroupList = array();
    $tutorGroupList = array();
}
//add javascript control for "dangerous" commands (delete-empty)
$htmlHeadXtra[] = "<script type=\"text/javascript\">\n    function confirm_delete(name)\n    {\n       if(confirm('" . clean_str_for_javascript(get_lang('Are you sure to delete')) . " ' + name + ' ?'))\n       {return true;}\n       else\n       {return false;}\n    }\n    \n    function confirm_empty(name)\n    {\n       if(confirm('" . clean_str_for_javascript(get_lang('Delete all messages of')) . " ' + name + ' ?'))\n       {return true;}\n       else\n       {return false;}\n    }\n    </script>";
//prepare display
$nameTools = get_lang('Forums');
$pagetype = 'index';
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:index.php


示例8: wp_reset_postdata

            }
            $items .= '</li>';
            $count++;
        }
        wp_reset_postdata();
        $items .= '</ul>';
        // PAGINATION
        if ($pagination == "yes") {
            $items .= '<div class="pagination-wrap full-width">';
            $items .= pagenavi($portfolio_items);
            $items .= '</div>';
        }
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        $output .= "\n\t" . '<div class="wpb_portfolio_widget wpb_content_element ' . $width . $el_class . '">';
        $output .= "\n\t\t" . '<div class="wpb_wrapper portfolio-wrap">';
        $output .= $title != '' ? "\n\t\t\t" . '<div class="heading-wrap"><h2 class="wpb_heading">' . $title . '</h2></div>' : '';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        global $include_isotope;
        global $has_portfolio;
        $include_isotope = true;
        $has_portfolio = true;
        return $output;
    }
}
WPBMap::map('portfolio', array("name" => __("Portfolio", "js_composer"), "base" => "portfolio", "class" => "wpb_portfolio", "icon" => "icon-wpb-portfolio", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Portfolio type", "js_composer"), "param_name" => "portfolio_type", "value" => array(__('Default', "js_composer") => "default", __('Masonry', "js_composer") => "masonry"), "description" => __("Select the type of portfolio you'd like to show.", "js_composer")), array("type" => "dropdown", "heading" => __("Display type", "js_composer"), "param_name" => "display_type", "value" => array(__('Standard', "js_composer") => "standard", __('Bordered', "js_composer") => "bordered", __('Gallery', "js_composer") => "gallery", __('Bordered gallery', "js_composer") => "bordered_gallery"), "description" => __("Select the type of portfolio you'd like to show.", "js_composer")), array("type" => "dropdown", "heading" => __("Column count", "js_composer"), "param_name" => "columns", "value" => array("4", "3", "2", "1"), "description" => __("How many portfolio columns to display.", "js_composer")), array("type" => "dropdown", "heading" => __("Show title text", "js_composer"), "param_name" => "show_title", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item title text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show client text", "js_composer"), "param_name" => "show_client", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item client text.", "js_composer")), array("type" => "dropdown", "heading" => __("Show item excerpt", "js_composer"), "param_name" => "show_excerpt", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show the item excerpt text.", "js_composer")), array("type" => "textfield", "heading" => __("Excerpt Length", "js_composer"), "param_name" => "excerpt_length", "value" => "20", "description" => __("The length of the excerpt for the posts.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "12", "description" => __("The number of portfolio items to show per page. Leave blank to show ALL portfolio items.", "js_composer")), array("type" => "dropdown", "heading" => __("Portfolio category", "js_composer"), "param_name" => "category", "value" => get_category_list('portfolio-category'), "description" => __("Choose the category for the portfolio items.", "js_composer")), array("type" => "dropdown", "heading" => __("Pagination", "js_composer"), "param_name" => "pagination", "value" => array(__('Yes', "js_composer") => "yes", __('No', "js_composer") => "no"), "description" => __("Show portfolio pagination.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
开发者ID:adams0917,项目名称:woocommerce_eht,代码行数:30,代码来源:portfolio+(Kristian+Klamar's+conflicted+copy+2013-03-25).php


示例9: get_category_list

?>
  
  
<!--MAINCONTENT-->
<div id="maincontent">
	<div id="wrapproduct">
  	<div class="content">
    	<h2><img src="/images/products/maincategory/<?php 
echo $type;
?>
.png" /></h2>
      
      <ul class="listcategory" id="list_category">
      
      	<?php 
$data = get_category_list($type, $rowspage, $p);
$maxpage = 1;
if (isset($data["maxpage"])) {
    $maxpage = $data["maxpage"];
}
if ($data["result"]) {
    foreach ($data["result"] as $row) {
        $idcat = $row->id;
        $img = $row->img;
        $img_hover = $row->img_hover;
        echo "\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"/products/list/?type=" . $type . "&amp;cat=" . $idcat . "#maincontent\">\n\t\t\t\t\t\t\t\t<img class=\"no-slide\" src=\"/mmcp/images/category/" . $img . "\" width=\"269\" height=\"269\"/>       \n\t\t\t\t\t\t\t\t<img class=\"slide\" src=\"/mmcp/images/category/" . $img_hover . "\" width=\"269\" height=\"269\"/>\n\t\t\t\t\t\t\t</a>          \n\t\t\t\t\t\t</li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t";
    }
}
?>
                          
      </ul>              
开发者ID:Effzz,项目名称:www.momocuppy.com,代码行数:31,代码来源:index.php


示例10: form

    function form($instance)
    {
        if ($instance) {
            $title = esc_attr($instance['title']);
            $post_cat = esc_attr($instance['post_cat']);
            $show_num = esc_attr($instance['show_num']);
        } else {
            $title = '';
            $post_cat = '';
            $show_num = '3';
        }
        ?>


		<!-- Text Input -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title :', 'gdl_back_office');
        ?>
</label> 
			<input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
" />
		</p>		

		<!-- Post Category -->
		<p>
			<label for="<?php 
        echo $this->get_field_id('post_cat');
        ?>
"><?php 
        _e('Category :', 'gdl_back_office');
        ?>
</label>		
			<select class="widefat" name="<?php 
        echo $this->get_field_name('post_cat');
        ?>
" id="<?php 
        echo $this->get_field_id('post_cat');
        ?>
">
			<?php 
        $category_list = get_category_list('package-category');
        foreach ($category_list as $category) {
            ?>

				<option value="<?php 
            echo $category;
            ?>
" <?php 
            if ($post_cat == $category) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            echo $category;
            ?>
</option>				
			<?php 
        }
        ?>
	
			</select> 
		</p>
			
		<!-- Show Num --> 
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_num');
        ?>
"><?php 
        _e('Show Count :', 'gdl_back_office');
        ?>
</label>
			<input class="widefat" id="<?php 
        echo $this->get_field_id('show_num');
        ?>
" name="<?php 
        echo $this->get_field_name('show_num');
        ?>
" type="text" value="<?php 
        echo $show_num;
        ?>
" />
		</p>

	<?php 
    }
开发者ID:shimion,项目名称:preview1,代码行数:98,代码来源:custom-package-widget.php


示例11: array

	Testimonials Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'testimonials_meta_box', 'title' => 'Testimonial Meta', 'pages' => array('testimonials'), 'fields' => array(array('name' => 'Testimonial Cite', 'id' => $prefix . 'testimonial_cite', 'desc' => "Enter the cite for the testimonial.", 'clone' => false, 'type' => 'text', 'std' => '')));
/* ==================================================
		
	Product Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'product_meta_box', 'title' => 'Product Meta', 'pages' => array('product'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => '', 'title' => 'Main Detail Options', 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => 'Show page title', 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => 'Show the page title at the top of the page.', 'std' => $default_show_page_heading), array('name' => 'Page Title (Line 1)', 'id' => $prefix . 'page_title_one', 'desc' => "Enter the first line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title (Line 2)', 'id' => $prefix . 'page_title_two', 'desc' => "Enter the second line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title Background', 'id' => "{$prefix}page_title_bg", 'type' => 'select', 'options' => array('none' => 'None', 'alt-one' => 'Alt 1', 'alt-two' => 'Alt 2', 'alt-three' => 'Alt 3', 'alt-four' => 'Alt 4', 'alt-five' => 'Alt 5', 'alt-six' => 'Alt 6', 'alt-seven' => 'Alt 7', 'alt-eight' => 'Alt 8', 'alt-nine' => 'Alt 9', 'alt-ten' => 'Alt 10'), 'multiple' => false, 'std' => $default_page_heading_bg_alt, 'desc' => 'Choose the background for the page title (configured in the Flexform Options panel).'), array('name' => '', 'id' => "{$prefix}altbg-preview", 'type' => 'altbgpreview'), array('name' => '', 'title' => 'Sidebar Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Sidebar configuration', 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => 'No Sidebars', 'left-sidebar' => 'Left Sidebar', 'right-sidebar' => 'Right Sidebar', 'both-sidebars' => 'Both Sidebars'), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => 'Choose the sidebar configuration for the detail page of this portfolio item.'), array('name' => 'Left Sidebar', 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => 'Right Sidebar', 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => 'Page Background Image Options (boxed layout only)', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Background Image', 'desc' => 'The image that will be used as the page background image.', 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => 'Background Image Size', 'desc' => 'For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => '', 'title' => 'Misc. Options', 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => 'Remove breadcrumbs', 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => 'Remove the breadcrumbs on the page.', 'std' => 0), array('name' => 'Extra page class', 'id' => $prefix . 'extra_page_class', 'desc' => "If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'clone' => false, 'type' => 'text', 'std' => '')));
/* ==================================================
		
	Page Meta Box
	
	================================================== */
$meta_boxes[] = array('id' => 'page_meta_box', 'title' => 'Page Meta', 'pages' => array('page'), 'fields' => array(array('name' => '', 'title' => 'Page Options', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Hide page header', 'id' => "{$prefix}hide_page_header", 'type' => 'checkbox', 'desc' => 'Hide the page header / top bar on this page.', 'std' => 0), array('name' => 'Hide page footer', 'id' => "{$prefix}hide_page_footer", 'type' => 'checkbox', 'desc' => 'Hide the page footer and copyright bar on this page.', 'std' => 0), array('name' => 'Show page title', 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => 'Show the page title at the top of the page.', 'std' => $default_show_page_heading), array('name' => 'Page Title (Line 1)', 'id' => $prefix . 'page_title_one', 'desc' => "Enter the first line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title (Line 2)', 'id' => $prefix . 'page_title_two', 'desc' => "Enter the second line of the page title area.", 'type' => 'text', 'std' => ''), array('name' => 'Page Title Background', 'id' => "{$prefix}page_title_bg", 'type' => 'select', 'options' => array('none' => 'None', 'alt-one' => 'Alt 1', 'alt-two' => 'Alt 2', 'alt-three' => 'Alt 3', 'alt-four' => 'Alt 4', 'alt-five' => 'Alt 5', 'alt-six' => 'Alt 6', 'alt-seven' => 'Alt 7', 'alt-eight' => 'Alt 8', 'alt-nine' => 'Alt 9', 'alt-ten' => 'Alt 10'), 'multiple' => false, 'std' => $default_page_heading_bg_alt, 'desc' => 'Choose the background for the page title (configured in the Flexform Options panel).'), array('name' => '', 'id' => "{$prefix}altbg-preview", 'type' => 'altbgpreview'), array('name' => '', 'title' => 'Page Background Image Options (boxed layout only)', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Background Image', 'desc' => 'The image that will be used as the page background image.', 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => 'Background Image Size', 'desc' => 'For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => '', 'title' => 'Slider Options', 'id' => "{$prefix}heading_page", 'type' => 'section'), array('name' => 'Show Swift Slider', 'id' => "{$prefix}posts_slider", 'type' => 'checkbox', 'desc' => 'Show the Swift Slider at the top of the page.', 'std' => 0), array('name' => 'Swift Slider Type', 'id' => "{$prefix}posts_slider_type", 'type' => 'select', 'options' => array('post' => 'Posts', 'portfolio' => 'Portfolio', 'hybrid' => 'Hybrid'), 'multiple' => false, 'std' => 'post', 'desc' => 'Choose the post type to display in the Swift Slider.'), array('name' => 'Swift Slider category', 'id' => "{$prefix}posts_slider_category", 'type' => 'select', 'desc' => 'Select the category for which the Swift Slider should show posts from.', 'options' => get_category_list('category'), 'std' => ''), array('name' => 'Swift Slider portfolio category', 'id' => "{$prefix}posts_slider_portfolio_category", 'type' => 'select', 'desc' => 'Select the category for which the Swift Slider should show portfolio items from.', 'options' => get_category_list('portfolio-category'), 'std' => ''), array('name' => 'Swift Slider count', 'id' => $prefix . 'posts_slider_count', 'desc' => "The number of posts to show in the Swift Slider.", 'type' => 'text', 'std' => '5'), array('name' => 'Revolution slider alias', 'id' => $prefix . 'rev_slider_alias', 'desc' => "Enter the revolution slider alias for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", 'type' => 'text', 'std' => ''), array('name' => '', 'title' => 'Sidebar Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Sidebar configuration', 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => 'No Sidebars', 'left-sidebar' => 'Left Sidebar', 'right-sidebar' => 'Right Sidebar', 'both-sidebars' => 'Both Sidebars'), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => 'Choose the sidebar configuration for the detail page of this portfolio item.'), array('name' => 'Left Sidebar', 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => 'Right Sidebar', 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => 'Misc. Options', 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => 'Remove breadcrumbs', 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => 'Remove the breadcrumbs on the page.', 'std' => 0), array('name' => 'Extra page class', 'id' => $prefix . 'extra_page_class', 'desc' => "If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => 'Remove top spacing', 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => 'Remove the spacing at the top of the page.', 'std' => 0), array('name' => 'Remove bottom spacing', 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => 'Remove the spacing at the bottom of the page.', 'std' => 0)));
/********************* META BOX REGISTERING ***********************/
/**
 * Register meta boxes
 *
 * @return void
 */
function sf_register_meta_boxes()
{
    global $meta_boxes;
    // Make sure there's no errors when the plugin is deactivated or during upgrade
    if (class_exists('RW_Meta_Box')) {
        foreach ($meta_boxes as $meta_box) {
            if ($meta_box['id'] == "page_meta_box") {
                if (!rw_maybe_include("woocommerce.php")) {
                    new RW_Meta_Box($meta_box);
开发者ID:nilmadhab,项目名称:webtutplus,代码行数:31,代码来源:meta-boxes.php


示例12: isset

if ($cmd == 'exEdForum') {
    $forumPostAllowed = isset($_REQUEST['forumPostUnallowed']) ? false : true;
    if (trim($_REQUEST['forumName'] != '')) {
        if (update_forum_settings($_REQUEST['forumId'], $_REQUEST['forumName'], $_REQUEST['forumDesc'], $forumPostAllowed, $_REQUEST['forumCatId'])) {
            $dialogBox->success(get_lang('Forum updated'));
        } else {
            $dialogBox->error(get_lang('Unable to update forum'));
        }
    } else {
        $dialogBox->error(get_lang('Missing field(s)'));
        $cmd = 'rqEdForum';
    }
}
if ($cmd == 'rqEdForum') {
    $forumSettingList = get_forum_settings($_REQUEST['forumId']);
    $formCategoryList = get_category_list();
    if (count($formCategoryList) > 0) {
        $catSelectBox = get_lang('Category') . ' : <br />' . "\n" . '<select name="forumCatId">';
        foreach ($formCategoryList as $thisFormCategory) {
            if ($forumSettingList['cat_id'] == $thisFormCategory['cat_id']) {
                $selectedState = ' selected="selected" ';
            } else {
                $selectedState = '';
            }
            $catSelectBox .= '<option  value="' . $thisFormCategory['cat_id'] . '"' . $selectedState . '>' . htmlspecialchars($thisFormCategory['cat_title']) . '</option>';
        }
        $catSelectBox .= '</select><br />' . "\n";
    } else {
        $catSelectBox = '';
    }
    $formForumNameValue = isset($_REQUEST['forumName']) ? $_REQUEST['forumName'] : $forumSettingList['forum_name'];
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin.php


示例13: get_artists_list

<tr>
<td width="15%"><b>Автор</b></td>
<td width="40%">Выбор изображений по автору</td>
<td><?php 
echo get_artists_list();
?>
</td></tr></tbody>
</table>
</td></tr><tr bgcolor="#ffffff"><td>

<table width="100%" cellspacing="0" cellpadding="4"><tbody>
<tr>
<td width="15%"><b>Категория</b></td>
<td width="40%">Выбор изображения по категориям</td>
<td><?php 
echo get_category_list();
?>
</td></tr>
<tr>
<td width="15%">&nbsp;</td>
<td width="40%">Включая "рабочий стол":</td>
<td><input type="checkbox" name="666"></td></tr></tbody></table>
</td></tr>

<tr bgcolor="#ffffff">
<td><table width="100%" cellspacing="0" cellpadding="4"><tbody><tr>
<td width="15%"><b>Цветность</b></td>
<td colspan="2"><input id="sfio" type="radio" checked="" value="all" name="color"> <label for="sfio">Без фильтрации</label>&nbsp;&nbsp;<input id="ss" type="radio" value="color" name="color"> <label for="ss">Только цветные</label>&nbsp;&nbsp;<input id="ss" type="radio" value="bw" name="color"> <label for="ss">Только чёрно-белые</label>&nbsp;&nbsp;</td></tr></tbody></table></td></tr></tbody></table>
</form>

<?php 
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:advanced_search.php


示例14: aq_resize

            $items .= '<figure>';
            $image = aq_resize($client_img_url, $client_width, $client_height, true, false);
            if ($image) {
                if ($client_link_url) {
                    $items .= '<a href="' . $client_link_url . '" target="_blank"><img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" /></a>';
                } else {
                    $items .= '<img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" />';
                }
            }
            $items .= '</figure>';
        }
        wp_reset_postdata();
        $items .= '</ul></div>';
        // PAGE BUILDER OUPUT
        $el_class = $this->getExtraClass($el_class);
        $width = wpb_translateColumnWidthToSpan($width);
        if ($alt_background == "none" || $sidebars != "no-sidebars") {
            $output .= "\n\t" . '<div class="wpb_featured_clients_widget wpb_content_element ' . $width . $el_class . '">';
        } else {
            $output .= "\n\t" . '<div class="wpb_featured_clients_widget wpb_content_element alt-bg ' . $alt_background . ' ' . $width . $el_class . '">';
        }
        $output .= "\n\t\t" . '<div class="wpb_wrapper clients-wrap row">';
        $output .= "\n\t\t\t\t" . $items;
        $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
        $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
        $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
        return $output;
    }
}
WPBMap::map('clients_featured', array("name" => __("Clients (Featured)", "js_composer"), "base" => "clients_featured", "class" => "clients_featured", "icon" => "icon-wpb-clients-featured", "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "value" => "", "description" => __("Heading text. Leave it empty if not needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Clients category", "js_composer"), "param_name" => "category", "value" => get_category_list('clients-category'), "description" => __("Choose the category for the client items.", "js_composer")), array("type" => "textfield", "class" => "", "heading" => __("Number of items", "js_composer"), "param_name" => "item_count", "value" => "5", "description" => __("The number of clients to show per page. Leave blank to show ALL clients.", "js_composer")), array("type" => "dropdown", "heading" => __("Show alt background", "js_composer"), "param_name" => "alt_background", "value" => array(__("None", "js_composer") => "none", __("Alt 1", "js_composer") => "alt-one", __("Alt 2", "js_composer") => "alt-two", __("Alt 3", "js_composer") => "alt-three", __("Alt 4", "js_composer") => "alt-four", __("Alt 5", "js_composer") => "alt-five", __("Alt 6", "js_composer") => "alt-six", __("Alt 7", "js_composer") => "alt-seven", __("Alt 8", "js_composer") => "alt-eight", __("Alt 9", "js_composer") => "alt-nine", __("Alt 10", "js_composer") => "alt-ten"), "description" => __("Show an alternative background around the asset. These can all be set in Flexform Options > Asset Background Options. NOTE: This is only available on a page with the no sidebar setup.", "js_composer")), array("type" => "altbg_preview", "heading" => __("Alt Background Preview", "js_composer"), "param_name" => "altbg_preview", "value" => "", "description" => __("", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer")))));
开发者ID:nilmadhab,项目名称:webtutplus,代码行数:30,代码来源:clients.php


示例15: get_the_title

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_category_name函数代码示例发布时间:2022-05-15
下一篇:
PHP get_category_link函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap