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

PHP wp_dropdown_cats函数代码示例

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

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



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

示例1: wp_dropdown_cats

    function wp_dropdown_cats($currentcat, $currentparent = 0, $parent = 0, $level = 0, $categories = 0)
    {
        $myts =& MyTextSanitizer::getInstance();
        if (!$categories) {
            $categoryHandler =& wp_handler('Category');
            $categories =& $categoryHandler->getObjects();
        }
        if ($categories) {
            foreach ($categories as $category) {
                $cat_ID = $category->getVar('cat_ID');
                if ($currentcat != $cat_ID && $parent == $category->getVar('category_parent')) {
                    $cat_name = $myts->makeTareaData4Show($category->getVar('cat_name'));
                    $pad = str_repeat('– ', $level);
                    ?>
				<option value='<?php 
                    echo $cat_ID;
                    ?>
'<?php 
                    selected($currentparent, $cat_ID);
                    ?>
><?php 
                    echo "{$pad}{$cat_name}";
                    ?>
</option>
<?php 
                    wp_dropdown_cats($currentcat, $currentparent, $cat_ID, $level + 1, $categories);
                }
            }
        } else {
            return false;
        }
    }
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:32,代码来源:admin-functions.php


示例2: wp_dropdown_cats

/**
 * {@internal Missing Short Description}}
 *
 * @since 1.2.0
 * @deprecated 3.0.0
 * @deprecated Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param unknown_type $currentcat
 * @param unknown_type $currentparent
 * @param unknown_type $parent
 * @param unknown_type $level
 * @param unknown_type $categories
 * @return unknown
 */
function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0)
{
    _deprecated_function(__FUNCTION__, '3.0', 'wp_dropdown_categories()');
    if (!$categories) {
        $categories = get_categories(array('hide_empty' => 0));
    }
    if ($categories) {
        foreach ($categories as $category) {
            if ($currentcat != $category->term_id && $parent == $category->parent) {
                $pad = str_repeat('&#8211; ', $level);
                $category->name = esc_html($category->name);
                echo "\n\t<option value='{$category->term_id}'";
                if ($currentparent == $category->term_id) {
                    echo " selected='selected'";
                }
                echo ">{$pad}{$category->name}</option>";
                wp_dropdown_cats($currentcat, $currentparent, $category->term_id, $level + 1, $categories);
            }
        }
    } else {
        return false;
    }
}
开发者ID:valiror,项目名称:sharingdais_demo1,代码行数:38,代码来源:deprecated.php


示例3: wp_dropdown_cats

function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0)
{
    global $wpdb, $bgcolor;
    if (!$categories) {
        $categories = $wpdb->get_results("SELECT * FROM {$wpdb->categories} ORDER BY cat_name");
    }
    if ($categories) {
        foreach ($categories as $category) {
            if ($currentcat != $category->cat_ID && $parent == $category->category_parent) {
                $count = $wpdb->get_var("SELECT COUNT(post_id) FROM {$wpdb->post2cat} WHERE category_id = {$category->cat_ID}");
                $pad = str_repeat('&#8211; ', $level);
                $category->cat_name = wp_specialchars($category->cat_name);
                echo "\n\t<option value='{$category->cat_ID}'";
                if ($currentparent == $category->cat_ID) {
                    echo " selected='selected'";
                }
                echo ">{$pad}{$category->cat_name}</option>";
                wp_dropdown_cats($currentcat, $currentparent, $category->cat_ID, $level + 1, $categories);
            }
        }
    } else {
        return false;
    }
}
开发者ID:BackupTheBerlios,项目名称:steampress-svn,代码行数:24,代码来源:admin-functions.php


示例4: _e

        <p><?php 
            _e('Name:');
            ?>
<br />
        <input type="text" name="cat_name" value="" /></p>
        <p><?php 
            _e('Category parent:');
            ?>
<br />
        <select name='category_parent' class='postform'>
        <option value='0'><?php 
            _e('None');
            ?>
</option>
        <?php 
            wp_dropdown_cats(0);
            ?>
        </select></p>
        <p><?php 
            _e('Description: (optional)');
            ?>
 <br />
        <textarea name="category_description" rows="5" cols="50" style="width: 97%;"></textarea></p>
        <p class="submit"><input type="hidden" name="action" value="addcat" /><input type="submit" name="submit" value="<?php 
            _e('Add Category &raquo;');
            ?>
" /></p>
    </form>
</div>
<?php 
        }
开发者ID:robertlange81,项目名称:Website,代码行数:31,代码来源:categories.php


示例5: if

<?php if ( current_user_can('manage_categories') ) : ?>
<div class="wrap">
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete posts from that category, it will just set them back to the default category <strong>%s</strong>.'), get_catname(get_option('default_category'))) ?></p>
</div>

<div class="wrap">
    <h2><?php _e('Add New Category') ?></h2>
    <form name="addcat" id="addcat" action="categories.php" method="post">
    <?php wp_nonce_field('add-category'); ?>
        <p><?php _e('Name:') ?><br />
        <input type="text" name="cat_name" value="" /></p>
        <p><?php _e('Category parent:') ?><br />
        <select name='category_parent' class='postform'>
        <option value='0'><?php _e('None') ?></option>
        <?php wp_dropdown_cats(0); ?>
        </select></p>
        <p><?php _e('Description: (optional)') ?> <br />
        <textarea name="category_description" rows="5" cols="50" style="width: 97%;"></textarea></p>
        <p class="submit"><input type="hidden" name="action" value="addcat" /><input type="submit" name="submit" value="<?php _e('Add Category &raquo;') ?>" /></p>
    </form>
</div>
<?php endif; ?>

<?php
break;
}

include('admin-footer.php');
?>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:29,代码来源:categories.php


示例6: wp_dropdown_cats

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $currentcat
 * @param unknown_type $currentparent
 * @param unknown_type $parent
 * @param unknown_type $level
 * @param unknown_type $categories
 * @return unknown
 */
function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
	if (!$categories )
		$categories = get_categories( array('hide_empty' => 0) );

	if ( $categories ) {
		foreach ( $categories as $category ) {
			if ( $currentcat != $category->term_id && $parent == $category->parent) {
				$pad = str_repeat( '&#8211; ', $level );
				$category->name = wp_specialchars( $category->name );
				echo "\n\t<option value='$category->term_id'";
				if ( $currentparent == $category->term_id )
					echo " selected='selected'";
				echo ">$pad$category->name</option>";
				wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
			}
		}
	} else {
		return false;
	}
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:32,代码来源:template.php


示例7: wp_dropdown_cats

function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0)
{
    global $wpdb;
    if (!$categories) {
        $categories = get_categories('hide_empty=0');
    }
    if ($categories) {
        foreach ($categories as $category) {
            if ($currentcat != $category->term_id && $parent == $category->parent) {
                $pad = str_repeat('&#8211; ', $level);
                $category->name = wp_specialchars($category->name);
                echo "\n\t<option value='{$category->term_id}'";
                if ($currentparent == $category->term_id) {
                    echo " selected='selected'";
                }
                echo ">{$pad}{$category->name}</option>";
                wp_dropdown_cats($currentcat, $currentparent, $category->term_id, $level + 1, $categories);
            }
        }
    } else {
        return false;
    }
}
开发者ID:64kbytes,项目名称:stayinba,代码行数:23,代码来源:template.php


示例8: wp_dropdown_cats

function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
	global $wpdb;
	if (!$categories )
		$categories = get_categories( 'hide_empty=0' );

	if ( $categories ) {
		foreach ( $categories as $category ) {
			if ( $currentcat != $category->cat_ID && $parent == $category->category_parent) {
				$pad = str_repeat( '&#8211; ', $level );
				$category->cat_name = wp_specialchars( $category->cat_name );
				echo "\n\t<option value='$category->cat_ID'";
				if ( $currentparent == $category->cat_ID )
					echo " selected='selected'";
				echo ">$pad$category->cat_name</option>";
				wp_dropdown_cats( $currentcat, $currentparent, $category->cat_ID, $level +1, $categories );
			}
		}
	} else {
		return false;
	}
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:21,代码来源:admin-functions.php


示例9: options_subpanel

    function options_subpanel()
    {
        global $ec3;
        if (isset($_POST['info_update'])) {
            echo '<div id="message" class="updated fade"><p><strong>';
            if (isset($_POST['ec3_event_category'])) {
                $ec3->set_event_category(intval($_POST['ec3_event_category']));
            }
            if (isset($_POST['ec3_show_event_box'])) {
                $ec3->set_show_event_box(intval($_POST['ec3_show_event_box']));
            }
            if (isset($_POST['ec3_advanced'])) {
                $ec3->set_advanced(intval($_POST['ec3_advanced']));
            }
            if (isset($_POST['ec3_tz'])) {
                $ec3->set_tz($_POST['ec3_tz']);
            }
            _e('Options saved.');
            echo '</strong></p></div>';
        }
        ?>

   <div class="wrap">
    <form method="post">
     <h2><?php 
        _e('Event Calendar Options', 'ec3');
        ?>
</h2>

     <?php 
        if (isset($_GET['ec3_easteregg'])) {
            ?>

     <h3><?php 
            _e('Easter Egg', 'ec3');
            ?>
:
       <input type="submit" name="ec3_upgrade_posts"
        value="<?php 
            _e('Upgrade Event Posts', 'ec3');
            ?>
" /></h3>

     <?php 
        }
        ?>

     <table class="form-table"> 

      <tr valign="top"> 
       <th width="33%" scope="row"><?php 
        _e('Event category', 'ec3');
        ?>
:</th> 
       <td>
        <select name="ec3_event_category">
        <?php 
        if (0 == $ec3->event_category) {
            echo '<option value="0">' . __('- Select -') . '</option>';
        }
        wp_dropdown_cats(0, $ec3->event_category);
        ?>
        </select>
        <br /><em>
         <?php 
        _e("Event posts are put into this category for you. Don't make this your default post category.", 'ec3');
        ?>
        </em>
       </td> 
      </tr> 

       <tr valign="top"> 
        <th width="33%" scope="row"><?php 
        _e('Show times within post content', 'ec3');
        ?>
:</th> 
        <td>
         <select name="ec3_show_event_box">          
          <option value='0'<?php 
        if ($ec3->show_event_box == 0) {
            echo " selected='selected'";
        }
        ?>
 >
           <?php 
        _e('Hide Times', 'ec3');
        ?>
          </option>
          <option value='1'<?php 
        if ($ec3->show_event_box == 1) {
            echo " selected='selected'";
        }
        ?>
 >
           <?php 
        _e('List Times', 'ec3');
        ?>
          </option>
          <option value='2'<?php 
        if ($ec3->show_event_box == 2) {
//.........这里部分代码省略.........
开发者ID:kolipu,项目名称:EventCalendar3,代码行数:101,代码来源:admin.php


示例10: ec3_options_subpanel

function ec3_options_subpanel()
{
    global $ec3;
    if (isset($_POST['info_update'])) {
        echo '<div class="updated"><p><strong>';
        if (isset($_POST['ec3_event_category'])) {
            $ec3->set_event_category(intval($_POST['ec3_event_category']));
        }
        if (isset($_POST['ec3_num_months'])) {
            $ec3->set_num_months(intval($_POST['ec3_num_months']));
        }
        if (isset($_POST['ec3_show_only_events'])) {
            $ec3->set_show_only_events(intval($_POST['ec3_show_only_events']));
        }
        if (isset($_POST['ec3_day_length'])) {
            $ec3->set_day_length(intval($_POST['ec3_day_length']));
        }
        if (isset($_POST['ec3_hide_logo'])) {
            $ec3->set_hide_logo(intval($_POST['ec3_hide_logo']));
        }
        if (isset($_POST['ec3_advanced'])) {
            $ec3->set_advanced(intval($_POST['ec3_advanced']));
        }
        if (isset($_POST['ec3_nav_below'])) {
            $ec3->set_nav_below(intval($_POST['ec3_nav_below']));
        }
        if (isset($_POST['ec3_disable_popups'])) {
            $ec3->set_disable_popups(intval($_POST['ec3_disable_popups']));
        }
        _e('Options set.', 'ec3');
        echo '</strong></p></div>';
    }
    ?>

 <div class=wrap>
  <form method="post">
   <h2><?php 
    _e('Event Calendar Options', 'ec3');
    ?>
</h2>
   <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 

    <tr valign="middle"> 
     <th width="33%" scope="row"><?php 
    _e('Event category', 'ec3');
    ?>
:</th> 
     <td>
      <select name="ec3_event_category">
      <?php 
    wp_dropdown_cats(0, $ec3->event_category);
    ?>
      </select>
     </td> 
    </tr> 

    <tr valign="middle">
     <th width="33%" scope="row"><?php 
    _e('Show events as blog entries', 'ec3');
    ?>
:</th> 
     <td>
      <select name="ec3_advanced">
       <option value='0'<?php 
    if (!$ec3->advanced) {
        echo " selected='selected'";
    }
    ?>
 >
        <?php 
    _e('Events are Normal Posts', 'ec3');
    ?>
       </option>
       <option value='1'<?php 
    if ($ec3->advanced) {
        echo " selected='selected'";
    }
    ?>
 >
        <?php 
    _e('Keep Events Separate', 'ec3');
    ?>
       </option>
      </select>
     </td> 
    </tr> 
    <tr valign="middle"><th width="33%" scope="row"></th> 
     <td><em>
      <?php 
    _e('Keep Events Separate: the Event Category page shows future events, in date order. Events do not appear on front page.', 'ec3');
    ?>
     </em></td> 
    </tr> 

   </table>

   <fieldset class="options"><legend><?php 
    _e('Calendar Display', 'ec3');
    ?>
</legend> 
//.........这里部分代码省略.........
开发者ID:jbogota,项目名称:blog-king,代码行数:101,代码来源:eventcalendar3.php


示例11: test_param

	<td valign="top" width="33%">
		<form name="searchform" action="" method="get">
			<input type="hidden" name="a" value="s" />
			<input onfocus="if (this.value=='search...') {this.value='';}" onblur="if (this.value=='') {this.value='search...';}" type="text" name="s" value="<?php 
echo test_param('s') ? get_param('s') : "search...";
?>
" size="7" style="width: 100px;" />
			<input type="submit" name="submit" value="search" />
		</form>
	</td>
    <td valign="top" width="33%" align="center">
	  <form name="viewcat" action="" method="get">
		<select name="cat" style="width:140px;">
		<option value="all">All Categories</option>
		<?php 
wp_dropdown_cats(0, get_param('cat'));
?>
		</select>
		<input type="submit" name="submit" value="View" />
	  </form>
    </td>
    <td valign="top" width="33%" align="right">
    <form name="viewarc" action="" method="get">
<?php 
if ($GLOBALS['archive_mode'] == "monthly") {
    ?>
		<select name="m" style="width:120px;">
			<option value="">All Months</option>
			<?php 
    wp_dropdown_month(test_param('m') ? get_param('m') : '');
} elseif ($GLOBALS['archive_mode'] == "daily") {
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:31,代码来源:edit.php


示例12: wp_dropdown_cats

function wp_dropdown_cats($currentcat, $currentparent = 0, $parent = 0, $level = 0, $categories = 0)
{
    global $wpdb, $wp_id, $bgcolor;
    $myts =& MyTextSanitizer::getInstance();
    if (!$categories) {
        $categories = $wpdb->get_results("SELECT * FROM {$wpdb->categories[$wp_id]} ORDER BY cat_name");
    }
    if ($categories) {
        foreach ($categories as $category) {
            if ($currentcat != $category->cat_ID && $parent == $category->category_parent) {
                $cat_ID = $category->cat_ID;
                $cat_name = $myts->makeTareaData4Show($category->cat_name);
                $pad = str_repeat('&#8211; ', $level);
                ?>
				<option value='<?php 
                echo $cat_ID;
                ?>
'<?php 
                selected($currentparent, $cat_ID);
                ?>
><?php 
                echo "{$pad}{$cat_name}";
                ?>
</option>
<?php 
                wp_dropdown_cats($currentcat, $currentparent, $category->cat_ID, $level + 1, $categories);
            }
        }
    } else {
        return false;
    }
}
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:32,代码来源:admin-functions.php


示例13: wp_dropdown_cats

</h2>
    <form name="addcat" id="addcat" action="categories.php" method="post">
        
        <p><?php 
        echo _LANG_C_NAME_SUBCAT;
        ?>
<br />
        <input type="text" name="cat_name" value="" /></p>
        <p><?php 
        echo _LANG_C_NAME_PARENT;
        ?>
<br />
        <select name='cat' class='postform'>
        <option value='0'>None</option>
        <?php 
        wp_dropdown_cats();
        ?>
</p>
        </select>
        <p><?php 
        echo _LANG_C_NAME_SUBDESC;
        ?>
 (optional) <br />
        <textarea name="category_description" rows="5" cols="50" style="width: 97%;"></textarea></p>
        <p class="submit"><input type="hidden" name="action" value="addcat" /><input type="submit" name="submit" value="<?php 
        echo _LANG_C_NAME_ADDBTN;
        ?>
" /></p>
    </form>
</div>
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:30,代码来源:categories.php


示例14: options_subpanel

    function options_subpanel()
    {
        global $ec3;
        if (isset($_POST['info_update'])) {
            echo '<div id="message" class="updated fade"><p><strong>';
            if (isset($_POST['ec3_event_category'])) {
                $ec3->set_event_category(intval($_POST['ec3_event_category']));
            }
            if (isset($_POST['ec3_num_months'])) {
                $ec3->set_num_months(intval($_POST['ec3_num_months']));
            }
            if (isset($_POST['ec3_show_only_events'])) {
                $ec3->set_show_only_events(intval($_POST['ec3_show_only_events']));
            }
            if (isset($_POST['ec3_day_length'])) {
                $ec3->set_day_length(intval($_POST['ec3_day_length']));
            }
            if (isset($_POST['ec3_hide_logo'])) {
                $ec3->set_hide_logo(intval($_POST['ec3_hide_logo']));
            }
            if (isset($_POST['ec3_hide_event_box'])) {
                $ec3->set_hide_event_box(intval($_POST['ec3_hide_event_box']));
            }
            if (isset($_POST['ec3_advanced'])) {
                $ec3->set_advanced(intval($_POST['ec3_advanced']));
            }
            if (isset($_POST['ec3_navigation'])) {
                $ec3->set_navigation(intval($_POST['ec3_navigation']));
            }
            if (isset($_POST['ec3_disable_popups'])) {
                $ec3->set_disable_popups(intval($_POST['ec3_disable_popups']));
            }
            if (isset($_POST['ec3_tz'])) {
                $ec3->set_tz($_POST['ec3_tz']);
            }
            _e('Options saved.');
            echo '</strong></p></div>';
        }
        ?>

   <div class="wrap">
    <form method="post">
     <h2><?php 
        _e('Event Calendar Options', 'ec3');
        ?>
</h2>

     <?php 
        if (isset($_GET['ec3_easteregg'])) {
            ?>

     <h3><?php 
            _e('Easter Egg', 'ec3');
            ?>
:
       <input type="submit" name="ec3_upgrade_posts"
        value="<?php 
            _e('Upgrade Event Posts', 'ec3');
            ?>
" /></h3>

     <?php 
        }
        ?>

     <table class="form-table"> 

      <tr valign="top"> 
       <th width="33%" scope="row"><?php 
        _e('Event category', 'ec3');
        ?>
:</th> 
       <td>
        <select name="ec3_event_category">
        <?php 
        if (0 == $ec3->event_category) {
            echo '<option value="0">' . __('- Select -') . '</option>';
        }
        wp_dropdown_cats(0, $ec3->event_category);
        ?>
        </select>
        <br /><em>
         <?php 
        _e("Event posts are put into this category for you. Don't make this your default post category.", 'ec3');
        ?>
        </em>
       </td> 
      </tr> 

       <tr valign="top"> 
        <th width="33%" scope="row"><?php 
        _e('Show schedule within posts', 'ec3');
        ?>
:</th> 
        <td>
         <select name="ec3_hide_event_box">          
           <option value='0'<?php 
        if (!$ec3->hide_event_box) {
            echo " selected='selected'";
        }
//.........这里部分代码省略.........
开发者ID:howardlei82,项目名称:IGSM-Website,代码行数:101,代码来源:admin.php


示例15: isset

	<td valign="top" width="33%">
		<form name="searchform" action="" method="get">
			<input type="hidden" name="a" value="s" />
			<input onfocus="if (this.value=='search...') {this.value='';}" onblur="if (this.value=='') {this.value='search...';}" type="text" name="s" value="<?php 
echo isset($s) && $s ? $s : "search...";
?>
" size="7" style="width: 100px;" />
			<input type="submit" name="submit" value="search" />
		</form>
	</td>
    <td valign="top" width="33%" align="center">
	  <form name="viewcat" action="" method="get">
		<select name="cat" style="width:140px;">
		<option value="all">All Categories</option>
		<?php 
wp_dropdown_cats(0, $cat);
?>
		</select>
		<input type="submit" name="submit" value="View" />
	  </form>
    </td>
    <td valign="top" width="33%" align="right">
    <form name="viewarc" action="" method="get">
<?php 
if ($archive_mode == "monthly") {
    ?>
		<select name="m" style="width:120px;">
			<option value="">All Months</option>
			<?php 
    wp_dropdown_month(isset($m) ? $m : "");
} elseif ($archive_mode == "daily") {
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:31,代码来源:edit.php


示例16: options_subpanel


//.........这里部分代码省略.........
</h2>

     <?php 
        if (isset($_GET['ec3_easteregg'])) {
            ?>

     <h3><?php 
            _e('Easter Egg', 'ec3');
            ?>
:
       <input type="submit" name="ec3_upgrade_posts"
        value="<?php 
            _e('Upgrade Event Posts', 'ec3');
            ?>
" /></h3>

     <?php 
        }
        ?>

     <table class="form-table"> 

      <tr valign="top"> 
       <th width="33%" scope="row"><?php 
        _e('Event category', 'ec3');
        ?>
:</th> 
       <td>
        <select name="ec3_event_category">
        <?php 
        if (0 == $ec3->event_category) {
            echo '<option value="0">' . __('- Select -') . '</option>';
        }
        wp_dropdown_cats(0, $ec3->event_category);
        ?>
        </select>
        <br /><em>
         <?php 
        _e("Event posts are put into this category for you. Don't make this your default post category.", 'ec3');
        ?>
        </em>
       </td> 
      </tr> 

       <tr valign="top"> 
        <th width="33%" scope="row"><?php 
        _e('Show times within post content', 'ec3');
        ?>
:</th> 
        <td>
         <select name="ec3_show_event_box">
          <option value='0'<?php 
        if ($ec3->show_event_box == 0) {
            echo " selected='selected'";
        }
        ?>
 >
           <?php 
        _e('Hide Times', 'ec3');
        ?>
          </option>
          <option value='1'<?php 
        if ($ec3->show_event_box == 1) {
            echo " selected='selected'";
        }
        ?>
开发者ID:Adrien-Topall,项目名称:EventCalendar3,代码行数:67,代码来源:admin.php



注:本文中的wp_dropdown_cats函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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