当前位置: 首页>>代码示例>>PHP>>正文


PHP get_category_feed_link函数代码示例

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


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

示例1: add_feedlink

function add_feedlink($catfeed, $cat)
{
    //echo 'the cat feed is : '.$catfeed.' .<br />';
    $rssLink = "\n";
    if ($catfeed == 'text') {
        $rssLink .= '<a class="menuRss" href="' . get_category_feed_link($cat->term_id) . '">(RSS)</a>';
    } elseif ($catfeed == 'image') {
        $options = get_option('ssMenu_options');
        if (class_exists('ssBase')) {
            $baseoptions = get_option('ssBase_options');
            $ss_global_over_ride = $baseoptions[ss_global_over_ride];
            if ($ss_global_over_ride == 'on') {
                $options[css_load] = $baseoptions[css_load];
            }
        }
        if ($options[css_load] == 'default') {
            $rssPath = WP_PLUGIN_URL . '/superslider-menu/plugin-data/superslider/ssMenu/rss/rss_out.png';
        } elseif ($options[css_load] == 'pluginData') {
            $rssPath = WP_CONTENT_URL . '/plugin-data/superslider/ssMenu/rss/rss_out.png';
        } elseif ($options[css_load] == 'off') {
            $rssPath = get_option('siteurl') . '/wp-includes/images/rss.png';
        }
        $url = get_settings(siteurl);
        $rssLink .= '<a class="menuRss" href="' . get_category_feed_link($cat->term_id) . '"><img src="' . $rssPath . '" alt="rss" /></a>';
    } else {
        $rssLink = '';
    }
    $rssLink .= "\n";
    return $rssLink;
}
开发者ID:hewu,项目名称:blogwp,代码行数:30,代码来源:superslider-menu-list.php

示例2: start_el

 /**
  * @see   Walker::start_el()
  * @since 2.1.0
  *
  * @param string $output   Passed by reference. Used to append additional content.
  * @param object $category Category data object.
  * @param int    $depth    Depth of category in reference to parents.
  * @param array  $args
  * @param int    $current_object_id
  */
 public function start_el(&$output, $category, $depth = 0, $args = array(), $current_object_id = 0)
 {
     $cat_name = apply_filters('list_cats', esc_attr($category->name), $category);
     // Don't generate an element if the category name is empty.
     if (!$cat_name) {
         return;
     }
     $link = '<div class="avhec-widget-line"><a href="' . get_category_link($category->term_id) . '" ';
     if ($args['use_desc_for_title'] && !empty($category->description)) {
         /**
          * Filter the category description for display.
          *
          * @since 1.2.0
          *
          * @param string $description Category description.
          * @param object $category    Category object.
          */
         $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"';
     } else {
         $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"';
     }
     $link .= '>';
     $link .= $cat_name . '</a>';
     if (!empty($args['feed_image']) || !empty($args['feed'])) {
         $link .= '<div class="avhec-widget-rss"> ';
         if (empty($args['feed_image'])) {
             $link .= '(';
         }
         $link .= '<a href="' . get_category_feed_link($category->term_id, $args['feed_type']) . '"';
         if (empty($args['feed'])) {
             $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"';
         } else {
             $alt = ' alt="' . $args['feed'] . '"';
             $name = $args['feed'];
             $link .= ' title="';
             $link .= empty($args['title']) ? $args['feed'] : $args['title'];
             $link .= '"';
         }
         $link .= '>';
         if (empty($args['feed_image'])) {
             $link .= $name;
         } else {
             $link .= '<img src="' . $args['feed_image'] . '"' . $alt . '" />';
         }
         $link .= '</a>';
         if (empty($args['feed_image'])) {
             $link .= ')';
         }
         $link .= '</div>';
     }
     if (!empty($args['show_count'])) {
         $link .= '<div class="avhec-widget-count"> (' . number_format_i18n($category->count) . ')</div>';
     }
     if (!empty($args['$show_date'])) {
         $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
     }
     if ('list' == $args['style']) {
         // When on a single post get the post's category. This ensures that that category will be given the CSS style of "current category".
         if (is_single()) {
             $post_cats = get_the_category();
             $args['current_category'] = $post_cats[0]->term_id;
         }
         $output .= "\t" . '<li';
         $css_classes = array('cat-item', 'cat-item-' . $category->term_id);
         if (!empty($args['current_category'])) {
             $_current_category = get_term($args['current_category'], $category->taxonomy);
             if ($category->term_id == $args['current_category']) {
                 $css_classes[] = 'current-cat';
             } elseif ($category->term_id == $_current_category->parent) {
                 $css_classes[] = 'current-cat-parent';
             }
         }
         /**
          * Filter the list of CSS classes to include with each category in the list.
          *
          * @since 4.2.0
          * @see   wp_list_categories()
          *
          * @param array  $css_classes An array of CSS classes to be applied to each list item.
          * @param object $category    Category data object.
          * @param int    $depth       Depth of page, used for padding.
          * @param array  $args        An array of wp_list_categories() arguments.
          */
         $css_classes = implode(' ', apply_filters('category_css_class', $css_classes, $category, $depth, $args));
         $output .= ' class="' . $css_classes . '"';
         $output .= '>' . $link . '</div>' . "\n";
     } else {
         $output .= "\t" . $link . '</div><br />' . "\n";
     }
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:100,代码来源:avh-ec.core.php

示例3: mw_getCategories

 /**
  * Retrieve the list of categories on a given blog.
  *
  * @since 1.5.0
  *
  * @param array $args Method parameters.
  * @return array|IXR_Error
  */
 public function mw_getCategories($args)
 {
     $this->escape($args);
     $username = $args[1];
     $password = $args[2];
     if (!($user = $this->login($username, $password))) {
         return $this->error;
     }
     if (!current_user_can('edit_posts')) {
         return new IXR_Error(401, __('Sorry, you must be able to edit posts on this site in order to view categories.'));
     }
     /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
     do_action('xmlrpc_call', 'metaWeblog.getCategories');
     $categories_struct = array();
     if ($cats = get_categories(array('get' => 'all'))) {
         foreach ($cats as $cat) {
             $struct = array();
             $struct['categoryId'] = $cat->term_id;
             $struct['parentId'] = $cat->parent;
             $struct['description'] = $cat->name;
             $struct['categoryDescription'] = $cat->description;
             $struct['categoryName'] = $cat->name;
             $struct['htmlUrl'] = esc_html(get_category_link($cat->term_id));
             $struct['rssUrl'] = esc_html(get_category_feed_link($cat->term_id, 'rss2'));
             $categories_struct[] = $struct;
         }
     }
     return $categories_struct;
 }
开发者ID:sb-xs,项目名称:que-pour-elle,代码行数:37,代码来源:class-wp-xmlrpc-server.php

示例4: feed_links_extra

/**
 * Display the links to the extra feeds such as category feeds.
 *
 * @since 2.8.0
 *
 * @param array $args Optional arguments.
 */
function feed_links_extra($args)
{
    $defaults = array('separator' => _x('&raquo;', 'feed link'), 'singletitle' => __('%1$s %2$s %3$s Comments Feed'), 'cattitle' => __('%1$s %2$s %3$s Category Feed'), 'tagtitle' => __('%1$s %2$s %3$s Tag Feed'), 'authortitle' => __('%1$s %2$s Posts by %3$s Feed'), 'searchtitle' => __('%1$s %2$s Search Results for &#8220;%3$s&#8221; Feed'));
    $args = wp_parse_args($args, $defaults);
    if (is_single() || is_page()) {
        $post =& get_post($id = 0);
        if (comments_open() || pings_open() || $post->comment_count > 0) {
            $title = esc_attr(sprintf($args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html(get_the_title())));
            $href = get_post_comments_feed_link($post->ID);
        }
    } elseif (is_category()) {
        $cat_id = intval(get_query_var('cat'));
        $title = esc_attr(sprintf($args['cattitle'], get_bloginfo('name'), $args['separator'], get_cat_name($cat_id)));
        $href = get_category_feed_link($cat_id);
    } elseif (is_tag()) {
        $tag_id = intval(get_query_var('tag_id'));
        $tag = get_tag($tag_id);
        $title = esc_attr(sprintf($args['tagtitle'], get_bloginfo('name'), $args['separator'], $tag->name));
        $href = get_tag_feed_link($tag_id);
    } elseif (is_author()) {
        $author_id = intval(get_query_var('author'));
        $title = esc_attr(sprintf($args['authortitle'], get_bloginfo('name'), $args['separator'], get_the_author_meta('display_name', $author_id)));
        $href = get_author_feed_link($author_id);
    } elseif (is_search()) {
        $title = esc_attr(sprintf($args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query()));
        $href = get_search_feed_link();
    }
    if (isset($title) && isset($href)) {
        echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . $title . '" href="' . $href . '" />' . "\n";
    }
}
开发者ID:hoonio,项目名称:wordpress,代码行数:38,代码来源:general-template+backup.php

示例5: start_el

 function start_el(&$output, $category, $depth, $args)
 {
     extract($args);
     $cat_name = attribute_escape($category->name);
     $cat_name = apply_filters('list_cats', $cat_name, $category);
     $link = '<a href="' . get_category_link($category->term_id) . '" ';
     if ($use_desc_for_title == 0 || empty($category->description)) {
         $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"';
     } else {
         $link .= 'title="' . attribute_escape(apply_filters('category_description', $category->description, $category)) . '"';
     }
     $link .= '>';
     $link .= $cat_name . '</a>';
     if (!empty($feed_image) || !empty($feed)) {
         $link .= ' ';
         if (empty($feed_image)) {
             $link .= '(';
         }
         $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
         if (empty($feed)) {
             $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"';
         } else {
             $title = ' title="' . $feed . '"';
             $alt = ' alt="' . $feed . '"';
             $name = $feed;
             $link .= $title;
         }
         $link .= '>';
         if (empty($feed_image)) {
             $link .= $name;
         } else {
             $link .= "<img src='{$feed_image}'{$alt}{$title}" . ' />';
         }
         $link .= '</a>';
         if (empty($feed_image)) {
             $link .= ')';
         }
     }
     if (isset($show_count) && $show_count) {
         $link .= ' (' . intval($category->count) . ')';
     }
     if (isset($show_date) && $show_date) {
         $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
     }
     if (isset($current_category) && $current_category) {
         $_current_category = get_category($current_category);
     }
     if ('list' == $args['style']) {
         $output .= "\t<li";
         $class = 'cat-item cat-item-' . $category->term_id;
         if (isset($current_category) && $current_category && $category->term_id == $current_category) {
             $class .= ' current-cat';
         } elseif (isset($_current_category) && $_current_category && $category->term_id == $_current_category->parent) {
             $class .= ' current-cat-parent';
         }
         $output .= ' class="' . $class . '"';
         $output .= ">{$link}\n";
     } else {
         $output .= "\t{$link}<br />\n";
     }
 }
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:61,代码来源:classes.php

示例6: esc_url

            echo esc_url(get_category_link($cat_name));
            ?>
" title="<?php 
            _e('More articles in this category', 'justwrite');
            ?>
"><?php 
            ac_icon('ellipsis-h');
            ?>
</a></li><?php 
        }
        ?>
            <?php 
        if ($srs) {
            ?>
<li><a href="<?php 
            echo esc_url(get_category_feed_link($cat_name, ''));
            ?>
" title="<?php 
            _e('RSS Feed', 'justwrite');
            ?>
"><?php 
            ac_icon('rss');
            ?>
</a></li><?php 
        }
        ?>
		</ul><?php 
    }
    ?>
	</header><!-- END .section-col-header -->
	
开发者ID:jimdough,项目名称:Roadmaster,代码行数:30,代码来源:section-categories-2col.php

示例7: start_el

 /**
  * @see Walker::start_el()
  * @since 2.1.0
  *
  * @param string $output Passed by reference. Used to append additional content.
  * @param object $category Category data object.
  * @param int $depth Depth of category in reference to parents.
  * @param array $args
  */
 function start_el(&$output, $category, $depth, $args)
 {
     extract($args);
     $cat_name = esc_attr($category->name);
     $cat_name = apply_filters('list_cats', $cat_name, $category);
     $link = '<div class="avhec-widget-line"><a href="' . get_category_link($category->term_id) . '" ';
     if ($use_desc_for_title == 0 || empty($category->description)) {
         $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"';
     } else {
         $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"';
     }
     $link .= '>';
     $link .= $cat_name . '</a>';
     if (!empty($feed_image) || !empty($feed)) {
         $link .= '<div class="avhec-widget-rss"> ';
         if (empty($feed_image)) {
             $link .= '(';
         }
         $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
         if (empty($feed)) {
             $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"';
         } else {
             $title = ' title="' . $feed . '"';
             $alt = ' alt="' . $feed . '"';
             $name = $feed;
             $link .= $title;
         }
         $link .= '>';
         if (empty($feed_image)) {
             $link .= $name;
         } else {
             $link .= '<img src="' . $feed_image . '"' . $alt . $title . ' />';
         }
         $link .= '</a>';
         if (empty($feed_image)) {
             $link .= ')';
         }
         $link .= '</div>';
     }
     if (isset($show_count) && $show_count) {
         $link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ')</div>';
     }
     if (isset($show_date) && $show_date) {
         $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
     }
     if (isset($current_category) && $current_category) {
         $_current_category = get_category($current_category);
     }
     if ('list' == $args['style']) {
         $output .= "\t" . '<li';
         $class = 'cat-item cat-item-' . $category->term_id;
         if (isset($current_category) && $current_category && $category->term_id == $current_category) {
             $class .= ' current-cat';
         } elseif (isset($_current_category) && $_current_category && $category->term_id == $_current_category->parent) {
             $class .= ' current-cat-parent';
         }
         $output .= ' class="' . $class . '"';
         $output .= '>' . $link . '</div>' . "\n";
     } else {
         $output .= "\t" . $link . '</div><br />' . "\n";
     }
 }
开发者ID:pjsinco,项目名称:doctorsthatdo-wp-content,代码行数:71,代码来源:avh-ec.core.php

示例8: powerpress_admin_categoryfeeds

function powerpress_admin_categoryfeeds()
{
    $General = powerpress_get_settings('powerpress_general');
    ?>
<h2><?php 
    echo __('Category Podcasting', 'powerpress');
    ?>
</h2>
<p>
	<?php 
    echo __('Category Podcasting adds custom podcast settings to specific blog category feeds, allowing you to organize episodes by topic.', 'powerpress');
    ?>
</p>
<p>
	<?php 
    echo sprintf(__('If you are looking to organize episodes by file or format, please use %s.', 'powerpress'), '<a href="' . admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php') . '" title="' . __('Custom Podcast Channels') . '">' . __('Custom Podcast Channels') . '</a>');
    ?>
</p><style type="text/css">
.column-url {
	width: 40%;
}
.column-name {
	width: 30%;
}
.column-feed-slug {
	width: 15%;
}
.column-episode-count {
	width: 15%;
}
.category-list {
	width: 100%;
}
</style>
<div id="col-container">

<div id="col-right">
<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php 
    print_column_headers('powerpressadmin_categoryfeeds');
    ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
    print_column_headers('powerpressadmin_categoryfeeds', false);
    ?>
	</tr>
	</tfoot>
	<tbody>
<?php 
    $Feeds = array();
    if (isset($General['custom_cat_feeds'])) {
        $Feeds = $General['custom_cat_feeds'];
    }
    $count = 0;
    while (list($null, $cat_ID) = each($Feeds)) {
        if (empty($cat_ID)) {
            continue;
        }
        $category = get_category_to_edit($cat_ID);
        if (is_wp_error($category)) {
            // $cat_ID does not existing
            continue;
        }
        //var_dump($category);
        $columns = powerpress_admin_customfeeds_columns();
        $hidden = array();
        if ($count % 2 == 0) {
            echo '<tr valign="middle" class="alternate">';
        } else {
            echo '<tr valign="middle">';
        }
        $edit_link = admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;action=powerpress-editcategoryfeed&amp;cat=') . $cat_ID;
        $feed_title = $category->name;
        $url = get_category_feed_link($cat_ID);
        $short_url = str_replace('http://', '', $url);
        $short_url = str_replace('www.', '', $short_url);
        if (strlen($short_url) > 35) {
            $short_url = substr($short_url, 0, 32) . '...';
        }
        foreach ($columns as $column_name => $column_display_name) {
            $class = "class=\"column-{$column_name}\"";
            //$short_url = '';
            switch ($column_name) {
                case 'feed-slug':
                    echo "<td {$class}>{$category->slug}";
                    echo "</td>";
                    break;
                case 'name':
                    echo '<td ' . $class . '><strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">' . esc_html($feed_title) . '</a></strong><br />';
                    $actions = array();
                    $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
                    $actions['remove'] = "<a class='submitdelete' href='" . admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;action=powerpress-delete-category-feed&amp;cat={$cat_ID}", 'powerpress-delete-category-feed-' . $cat_ID) . "' onclick=\"if ( confirm('" . esc_js(sprintf(__("You are about to remove podcast settings for category feed '%s'\n  'Cancel' to stop, 'OK' to delete.", 'powerpress'), esc_html($feed_title))) . "') ) { return true;}return false;\">" . __('Remove', 'powerpress') . "</a>";
                    $action_count = count($actions);
                    $i = 0;
//.........这里部分代码省略.........
开发者ID:mattsims,项目名称:powerpress,代码行数:101,代码来源:powerpressadmin-categoryfeeds.php

示例9: start_el

 function start_el(&$output, $category, $depth = 0, $args = array(), $current_object_id = 0)
 {
     extract($args);
     $cat_name = esc_attr($category->name);
     $cat_name = apply_filters('list_cats', $cat_name, $category);
     $link = '<a href="#" data-value="' . strtolower(preg_replace('/\\s+/', '-', $cat_name)) . '" ';
     if ($use_desc_for_title == 0 || empty($category->description)) {
         $link .= 'title="' . sprintf(__('View all posts filed under %s', 'wpzoom'), $cat_name) . '"';
     } else {
         $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"';
     }
     $link .= '>';
     // $link .= $cat_name . '</a>';
     $link .= $cat_name;
     if (!empty($category->description)) {
         $link .= ' <span>' . $category->description . '</span>';
     }
     $link .= '</a>';
     if (!empty($feed_image) || !empty($feed)) {
         $link .= ' ';
         if (empty($feed_image)) {
             $link .= '(';
         }
         $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
         if (empty($feed)) {
             $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s', 'wpzoom'), $cat_name) . '"';
         } else {
             $title = ' title="' . $feed . '"';
             $alt = ' alt="' . $feed . '"';
             $name = $feed;
             $link .= $title;
         }
         $link .= '>';
         if (empty($feed_image)) {
             $link .= $name;
         } else {
             $link .= "<img src='{$feed_image}'{$alt}{$title}" . ' />';
         }
         $link .= '</a>';
         if (empty($feed_image)) {
             $link .= ')';
         }
     }
     if (isset($show_count) && $show_count) {
         $link .= ' (' . intval($category->count) . ')';
     }
     if (isset($show_date) && $show_date) {
         $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
     }
     if (isset($current_category) && $current_category) {
         $_current_category = get_category($current_category);
     }
     if ('list' == $args['style']) {
         $output .= '<li class="segment-' . rand(2, 99) . '"';
         $class = 'cat-item cat-item-' . $category->term_id;
         if (isset($current_category) && $current_category && $category->term_id == $current_category) {
             $class .= ' current-cat';
         } elseif (isset($_current_category) && $_current_category && $category->term_id == $_current_category->parent) {
             $class .= ' current-cat-parent';
         }
         $output .= '';
         $output .= ">{$link}\n";
     } else {
         $output .= "\t{$link}<br />\n";
     }
 }
开发者ID:aaronfrey,项目名称:PepperLillie-FiveVirtues,代码行数:66,代码来源:walker-category-filter.php

示例10: the_permalink

			<p class="more"><a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                the_title_attribute();
                ?>
"><?php 
                _e('Read Full Story', 'wpzoom');
                ?>
 &raquo;</a></p>
			
		</div><!-- end .post -->

		<div class="sep">&nbsp;</div>
		<p class="header"><a href="<?php 
                echo get_category_feed_link(option::get($activecat), $feed);
                ?>
"><img src="<?php 
                bloginfo('template_url');
                ?>
/images/icon_rss.png" width="16" height="16" alt="" /></a>
		<a href="<?php 
                echo "{$catlink}";
                ?>
"><?php 
                _e('More in', 'wpzoom');
                ?>
 <?php 
                echo "{$cat->name}";
                ?>
</a></p>
开发者ID:Bobcatou,项目名称:thenewreaganvision,代码行数:31,代码来源:featured-categories+copy.php

示例11: edit_category_form

 function edit_category_form($input)
 {
     global $wp_version, $action;
     //~ echo "\n<pre>\n";
     //~ var_dump('in function edit_category_form');
     //~ var_dump($input);
     //~ var_dump($input->taxonomy);
     //~ var_dump($action);
     //~ var_dump($_GET['action']);
     //~ var_dump($wp_version);
     //~ echo "\n</pre>\n";
     if ('edit' == $_GET['action'] and TRUE == version_compare($wp_version, '2.7', '>=') or 'editedcat' == $action) {
         // show the following form only when an existing category is going to be edited.
         if (FALSE === isset($input->taxonomy) or TRUE === empty($input->taxonomy) or 'post_tag' !== $input->taxonomy and 'category' !== $input->taxonomy) {
             $taxonomy = 'misc';
             $taxonomy_str = __('Taxonomy', 'podpress');
         } else {
             $taxonomy = $input->taxonomy;
             switch ($taxonomy) {
                 case 'post_tag':
                     $taxonomy_str = __('Tag', 'podpress');
                     break;
                 case 'category':
                     $taxonomy_str = __('Category', 'podpress');
                     break;
             }
         }
         //~ printphpnotices_var_dump('print edit_'.$taxonomy.'_form');
         //~ printphpnotices_var_dump($input);
         $data = podPress_get_option('podPress_' . $taxonomy . '_' . $input->term_id);
         $blog_charset = get_bloginfo('charset');
         if (empty($data['podcastFeedURL'])) {
             if (TRUE == version_compare($wp_version, '2.9.3', '>')) {
                 // since WP 3.0 the cat_ID isreplaced by tag_ID
                 $data['podcastFeedURL'] = get_term_feed_link($input->term_id, $taxonomy);
             } elseif (TRUE == version_compare($wp_version, '2.9.3', '<=') and TRUE == version_compare($wp_version, '2.4', '>')) {
                 switch ($taxonomy) {
                     default:
                     case 'post_tag':
                         $data['podcastFeedURL'] = get_tag_feed_link($input->term_id);
                         break;
                     case 'category':
                         $data['podcastFeedURL'] = get_category_feed_link($input->term_id);
                         break;
                 }
             } else {
                 $data['podcastFeedURL'] = site_url() . '/?feed=rss2&cat=' . $input->term_id;
             }
         } else {
             $url_parts = parse_url($data['podcastFeedURL']);
             if (isset($url_parts['query'])) {
                 $output = '';
                 parse_str($url_parts['query'], $output);
                 if (TRUE === isset($output['cat']) and FALSE !== empty($output['cat'])) {
                     if (TRUE == version_compare($wp_version, '2.9.3', '>')) {
                         // since WP 3.0 the cat_ID isreplaced by tag_ID
                         $data['podcastFeedURL'] = get_term_feed_link($input->term_id, $taxonomy);
                     } elseif (TRUE == version_compare($wp_version, '2.9.3', '<=') and TRUE == version_compare($wp_version, '2.4', '>')) {
                         switch ($taxonomy) {
                             default:
                             case 'post_tag':
                                 $data['podcastFeedURL'] = get_tag_feed_link($input->term_id);
                                 break;
                             case 'category':
                                 $data['podcastFeedURL'] = get_category_feed_link($input->term_id);
                                 break;
                         }
                     } else {
                         $data['podcastFeedURL'] = site_url() . '/?feed=rss2&cat=' . $input->term_id;
                     }
                 }
             }
         }
         // some ids of category input fields have changed with WP 3.0
         $wp_version_parts = explode('.', $wp_version);
         if (is_array($wp_version_parts)) {
             $main_wp_version = $wp_version_parts[0];
         } else {
             $main_wp_version = 0;
         }
         echo '<div class="wrap">' . "\n";
         if (TRUE == version_compare($wp_version, '2.7', '>=')) {
             echo '<div id="podpress-icon" class="icon32"><br /></div>';
         }
         echo '	<h2>' . sprintf(__('podPress %1$s Casting', 'podpress'), $taxonomy_str) . '</h2>' . "\n";
         echo '	<label for="categoryCasting"><strong>' . sprintf(__('Enable %1$s Casting', 'podpress'), $taxonomy_str) . '</strong></label>  <a href="javascript:void(null);" onclick="javascript: podPressShowHideDiv(\'categoryCastingHelp\');">(?)</a>:';
         echo '	<input type="checkbox" name="categoryCasting" id="categoryCasting" ';
         if ($data['categoryCasting'] == 'true') {
             echo 'checked="checked"';
         }
         echo ' onclick="javascript: podPress_updateCategoryCasting(' . $main_wp_version . ', \'' . $taxonomy . '\');"/>' . "\n";
         echo '	<div id="categoryCastingHelp" style="display: none;">' . "\n";
         echo '		' . __('This feature is for cases in which you want to host more than one podcast in one blog or if you want to have different podcast feeds with different media files of certain file types per feed (e.g a feed which contains only .mp3 files).<br />Basically this feature gives you the opportunity to modify some of the feed elements and set them to other then as the general value from the Feed/iTunes Settings of podPress.<br/>For instance: If you organize your audio episodes in one category and the video episodes in a different category then you can modify the feed content describing values like the title or the description in the form below. This your category feeds will be more distinguishable from another.', 'podpress') . '<br />' . "\n";
         echo '	</div>' . "\n";
         echo '  <div class="wrap" id="iTunesSpecificSettings" style="display: none; border: 0;">' . "\n";
         podPress_DirectoriesPreview('edit_category_form');
         echo '		<fieldset class="options">' . "\n";
         echo '		<legend>' . sprintf(__('%1$s Feed Options', 'podpress'), $taxonomy_str) . '</legend>' . "\n";
         echo '		<h3>' . __('iTunes Settings', 'podpress') . '</h3>' . "\n";
         echo '		<table class="podpress_feed_gensettings">' . "\n";
//.........这里部分代码省略.........
开发者ID:cracknel,项目名称:ubuntudanmark.dk,代码行数:101,代码来源:podpress_admin_class.php

示例12: get_header

<?php

/**
 * Dieses Template wird für das Heftarchiv verwendet. 
 * Auf ihm basieren neben dem Bauchpressearchiv auch die Templates für die einzelnen Comicserien und teilweise die Redaktionsseite.
 */
get_header();
?>

<div class="box">
<?php 
if (have_posts()) {
    ?>
	<h1 class="page_title">Heftarchiv 
		<?php 
    echo '<a href="' . get_category_feed_link(get_query_var('cat')) . '"><img src="' . get_bloginfo('template_directory') . '/images/rss.png" alt=""/></a>';
    ?>
	</h1>
	<?php 
    //Anzeige einer Jahresübersicht
    $posts = $wp_query->posts;
    foreach ($posts as $p) {
        $dates[] = get_the_time('Y', $p->ID);
    }
    $dates = array_unique($dates);
    asort($dates);
    echo '<p class="interaction_box">';
    echo 'Das StudentenPACK';
    echo '<br>';
    foreach ($dates as $d) {
        echo ' &middot; <a href="#' . $d . '">' . $d . '</a>';
开发者ID:TVLuke,项目名称:wordpress,代码行数:31,代码来源:category-heftarchiv.php

示例13: woo_main_before

    
    <div id="content">
    
    	<div class="col-full">
    	
    		<?php 
woo_main_before();
?>
    		
    		<?php 
if (is_category()) {
    ?>
        		<header class="archive-header">
        			<span class="heading archive-rss"><?php 
    $cat_id = get_cat_ID(single_cat_title('', false));
    echo '<a href="' . get_category_feed_link($cat_id, '') . '">' . __('Subscribe', 'woothemes') . '</a>';
    ?>
</span>
        			<h1><?php 
    _e('Archive', 'woothemes');
    ?>
 | <?php 
    single_cat_title('', true);
    ?>
</h1> 
        		</header>        
        	
        	    <?php 
} elseif (is_day()) {
    ?>
        	    <header class="archive-header">
开发者ID:sanjeevpraja,项目名称:wordpress-theme,代码行数:30,代码来源:archive.php

示例14: _e

    ?>

		<header>
			<?php 
    if (is_category()) {
        ?>
			<h1 class="archive-header"><span class="cat"><?php 
        _e('Category Archives', 'nicethemes');
        ?>
 : <?php 
        echo single_cat_title();
        ?>
</span> <span class="fr rss"><?php 
        $cat_obj = $wp_query->get_queried_object();
        $cat_id = $cat_obj->cat_ID;
        echo '<a href="' . get_category_feed_link($cat_id, '') . '">';
        _e("RSS feed for this section", "nicethemes");
        echo '</a>';
        ?>
</span></h1>
			<?php 
    } elseif (is_day()) {
        ?>
			<h1 class="archive-header"><?php 
        _e('Daily Archives', 'nicethemes');
        ?>
: <?php 
        the_time(get_option('date_format'));
        ?>
</h1>
开发者ID:supahseppe,项目名称:path-of-gaming,代码行数:30,代码来源:archive.php

示例15: _e

		<header>
			<?php 
    if (is_category()) {
        ?>
        	<h1 class="archive-header"><span class="cat"><?php 
        _e('Category Archives', 'nicethemes');
        ?>
 : <?php 
        echo single_cat_title();
        ?>
</span> <span class="fr rss"><?php 
        $cat_obj = $wp_query->get_queried_object();
        $cat_id = $cat_obj->cat_ID;
        echo '<a href="';
        get_category_feed_link(true, $cat, '');
        echo '">';
        _e("RSS feed for this section", "nicethemes");
        echo '</a>';
        ?>
</span></h1>
        	<?php 
    } elseif (is_day()) {
        ?>
            <h1 class="archive-header"><?php 
        _e('Daily Archives', 'nicethemes');
        ?>
: <?php 
        the_time(get_option('date_format'));
        ?>
</h1>
开发者ID:scottbrabazon,项目名称:scottbrabazon.com,代码行数:30,代码来源:archive.php


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