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


PHP edd_get_label_singular函数代码示例

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


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

示例1: edd_downloads_contextual_help

/**
 * Adds the Contextual Help for the main Downloads page
 *
 * @since 1.2.3
 * @return void
 */
function edd_downloads_contextual_help()
{
    $screen = get_current_screen();
    if ($screen->id != 'download') {
        return;
    }
    $screen->set_help_sidebar('<p><strong>' . sprintf(__('For more information:', 'edd') . '</strong></p>' . '<p>' . sprintf(__('Visit the <a href="%s">documentation</a> on the Easy Digital Downloads website.', 'edd'), esc_url('https://easydigitaldownloads.com/documentation/'))) . '</p>' . '<p>' . sprintf(__('<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>. View <a href="%s">extensions</a> or <a href="%s">themes</a>.', 'edd'), esc_url('https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues'), esc_url('https://github.com/easydigitaldownloads/Easy-Digital-Downloads'), esc_url('https://easydigitaldownloads.com/extensions/'), esc_url('https://easydigitaldownloads.com/themes/')) . '</p>');
    $screen->add_help_tab(array('id' => 'edd-download-configuration', 'title' => sprintf(__('%s Settings', 'edd'), edd_get_label_singular()), 'content' => '<p>' . __('<strong>File Download Limit</strong> - Define how many times customers are allowed to download their purchased files. Leave at 0 for unlimited. Resending the purchase receipt will permit the customer one additional download if their limit has already been reached.', 'edd') . '</p>' . '<p>' . __('<strong>Accounting Options</strong> - If enabled, define an individual SKU or product number for this download.', 'edd') . '</p>' . '<p>' . __('<strong>Button Options</strong> - Disable the automatic output the purchase button. If disabled, no button will be added to the download page unless the <code>[purchase_link]</code> shortcode is used.', 'edd') . '</p>'));
    $screen->add_help_tab(array('id' => 'edd-download-prices', 'title' => sprintf(__('%s Prices', 'edd'), edd_get_label_singular()), 'content' => '<p>' . __('<strong>Enable variable pricing</strong> - By enabling variable pricing, multiple download options and prices can be configured.', 'edd') . '</p>' . '<p>' . __('<strong>Enable multi-option purchases</strong> - By enabling multi-option purchases customers can add multiple variable price items to their cart at once.', 'edd') . '</p>'));
    $screen->add_help_tab(array('id' => 'edd-download-files', 'title' => sprintf(__('%s Files', 'edd'), edd_get_label_singular()), 'content' => '<p>' . __('<strong>Product Type Options</strong> - Choose a default product type or a bundle. Bundled products automatically include access other download&#39;s files when purchased.', 'edd') . '</p>' . '<p>' . __('<strong>File Downloads</strong> - Define download file names and their respsective file URL. Multiple files can be assigned to a single price, or variable prices.', 'edd') . '</p>'));
    $screen->add_help_tab(array('id' => 'edd-product-notes', 'title' => sprintf(__('%s Notes', 'edd'), edd_get_label_singular()), 'content' => '<p>' . __('Special notes or instructions for the product. These notes will be added to the purchase receipt, and additionaly may be used by some extensions or themes on the frontend.', 'edd') . '</p>'));
    $colors = array('gray', 'pink', 'blue', 'green', 'teal', 'black', 'dark gray', 'orange', 'purple', 'slate');
    $screen->add_help_tab(array('id' => 'edd-purchase-shortcode', 'title' => __('Purchase Shortcode', 'edd'), 'content' => '<p>' . __('<strong>Purchase Shortcode</strong> - If the automatic output of the purchase button has been disabled via the Download Configuration box, a shortcode can be used to output the button or link.', 'edd') . '</p>' . '<p><code>[purchase_link id="#" price="1" text="Add to Cart" color="blue"]</code></p>' . '<ul>
				<li><strong>id</strong> - ' . __('The ID of a specific download to purchase.', 'edd') . '</li>
				<li><strong>price</strong> - ' . __('Whether to show the price on the purchase button. 1 to show the price, 0 to disable it.', 'edd') . '</li>
				<li><strong>text</strong> - ' . __('The text to be displayed on the button or link.', 'edd') . '</li>
				<li><strong>style</strong> - ' . __('<em>button</em> | <em>text</em> - The style of the purchase link.', 'edd') . '</li>
				<li><strong>color</strong> - <em>' . implode('</em> | <em>', $colors) . '</em></li>
				<li><strong>class</strong> - ' . __('One or more custom CSS classes you want applied to the button.', 'edd') . '</li>
			</ul>' . '<p>' . sprintf(__('For more information, see <a href="%s">using Shortcodes</a> on the WordPress.org Codex or <a href="%s">Easy Digital Downloads Documentation</a>', 'edd'), 'https://codex.wordpress.org/Shortcode', 'https://easydigitaldownloads.com/docs/display-purchase-buttons-purchase_link/') . '</p>'));
    /**
     * Fires off in the EDD Downloads Contextual Help Screen
     * 
     * @since 1.2.3
     * @param object $screen The current admin screen
     */
    do_action('edd_downloads_contextual_help', $screen);
}
开发者ID:harish94,项目名称:Easy-Digital-Downloads,代码行数:34,代码来源:contextual-help.php

示例2: edd_payments_contextual_help

/**
 * Payments contextual help.
 *
 * @access      private
 * @since       1.4
 * @return      void
 */
function edd_payments_contextual_help()
{
    $screen = get_current_screen();
    if ($screen->id != 'download_page_edd-payment-history') {
        return;
    }
    $screen->set_help_sidebar('<p><strong>' . sprintf(__('For more information:', 'edd') . '</strong></p>' . '<p>' . sprintf(__('Visit the <a href="%s">documentation</a> on the Easy Digital Downloads website.', 'edd'), esc_url('https://easydigitaldownloads.com/documentation/'))) . '</p>' . '<p>' . sprintf(__('<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>. View <a href="%s">extensions</a> or <a href="%s">themes</a>.', 'edd'), esc_url('https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues'), esc_url('https://github.com/easydigitaldownloads/Easy-Digital-Downloads'), esc_url('https://easydigitaldownloads.com/extensions/'), esc_url('https://easydigitaldownloads.com/themes/')) . '</p>');
    $screen->add_help_tab(array('id' => 'edd-payments-overview', 'title' => __('Overview', 'edd'), 'content' => '<p>' . __("This screen provides access to all of your store's transactions.", 'edd') . '</p>' . '<p>' . __('Payments can be searched by email address, user name, or filtered by status (completed, pending, etc.)', 'edd') . '</p>' . '<p>' . __('You also have the option to bulk delete payment should you wish.', 'edd') . '</p>'));
    $screen->add_help_tab(array('id' => 'edd-payments-search', 'title' => __('Search Payments', 'edd'), 'content' => '<p>' . __('The payment history can be searched in several different ways:', 'edd') . '</p>' . '<ul>
				<li>' . __('You can enter the customer\'s email address', 'edd') . '</li>
				<li>' . __('You can enter the customer\'s name or ID prefexed by \'user:\'', 'edd') . '</li>
				<li>' . __('You can enter the 32-character purchase key', 'edd') . '</li>
				<li>' . __('You can enter the purchase ID', 'edd') . '</li>
				<li>' . __('You can enter a transaction ID prefixed by \'txn:\'', 'edd') . '</li>
				<li>' . sprintf(__('You can enter the %s ID prefixed by \'#\'', 'edd'), edd_get_label_singular()) . '</li>
			</ul>'));
    $screen->add_help_tab(array('id' => 'edd-payments-details', 'title' => __('Payment Details', 'edd'), 'content' => '<p>' . __('Each payment can be further inspected by clicking the corresponding <em>View Order Details</em> link. This will provide more information including:', 'edd') . '</p>' . '<ul>
				<li><strong>Purchased File</strong> - ' . __('The file associated with the purchase.', 'edd') . '</li>
				<li><strong>Purchase Date</strong> - ' . __('The exact date and time the payment was completed.', 'edd') . '</li>
				<li><strong>Discount Used</strong> - ' . __('If a coupon or discount was used during the checkout process.', 'edd') . '</li>
				<li><strong>Name</strong> - ' . __("The buyer's name.", 'edd') . '</li>
				<li><strong>Email</strong> - ' . __("The buyer's email address.", 'edd') . '</li>
				<li><strong>Payment Notes</strong> - ' . __('Any customer-specific notes related to the payment.', 'edd') . '</li>
				<li><strong>Payment Method</strong> - ' . __('The name of the payment gateway used to complete the payment.', 'edd') . '</li>
				<li><strong>Purchase Key</strong> - ' . __('A unique key used to identify the payment.', 'edd') . '</li>
			</ul>'));
    do_action('edd_payments_contextual_help', $screen);
}
开发者ID:EngageWP,项目名称:Easy-Digital-Downloads,代码行数:35,代码来源:contextual-help.php

示例3: edd_add_download_meta_box

/**
 * Add Download Meta Box
 *
 * @access      private
 * @since       1.0 
 * @return      void
*/
function edd_add_download_meta_box()
{
    add_meta_box('downloadinformation', sprintf(__('%1$s Configuration', 'edd'), edd_get_label_singular(), edd_get_label_plural()), 'edd_render_download_meta_box', 'download', 'normal', 'default');
    add_meta_box('edd_download_stats', sprintf(__('%1$s Stats', 'edd'), edd_get_label_singular(), edd_get_label_plural()), 'edd_render_stats_meta_box', 'download', 'side', 'high');
    add_meta_box('edd_purchase_log', __('Purchase Log', 'edd'), 'edd_render_purchase_log_meta_box', 'download', 'normal', 'default');
    add_meta_box('edd_file_download_log', __('File Download Log', 'edd'), 'edd_render_download_log_meta_box', 'download', 'normal', 'default');
}
开发者ID:ryannmicua,项目名称:Easy-Digital-Downloads,代码行数:14,代码来源:metabox.php

示例4: __construct

 /**
  * Get things started
  *
  * @access      private
  * @since       1.4
  * @return      void
  */
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => edd_get_label_singular(), 'plural' => edd_get_label_plural(), 'ajax' => false));
     $this->get_payment_counts();
 }
开发者ID:vheidari,项目名称:Easy-Digital-Downloads,代码行数:14,代码来源:class-payments-table.php

示例5: edd_setup_edd_post_types

/**
 * Setup Download Post Type
 *
 * Registers the Downloads CPT.
 *
 * @access      private
 * @since       1.0 
 * @return      void
*/
function edd_setup_edd_post_types()
{
    $archives = true;
    if (defined('EDD_DISABLE_ARCHIVE') && EDD_DISABLE_ARCHIVE == true) {
        $archives = false;
    }
    $slug = 'downloads';
    if (defined('EDD_SLUG')) {
        $slug = EDD_SLUG;
    }
    $rewrite = array('slug' => $slug, 'with_front' => false);
    if (defined('EDD_DISABLE_REWRITE') && EDD_DISABLE_REWRITE == true) {
        $rewrite = false;
    }
    $download_labels = apply_filters('edd_download_labels', array('name' => '%2$s', 'singular_name' => '%1$s', 'add_new' => __('Add New', 'edd'), 'add_new_item' => __('Add New %1$s', 'edd'), 'edit_item' => __('Edit %1$s', 'edd'), 'new_item' => __('New %1$s', 'edd'), 'all_items' => __('All %2$s', 'edd'), 'view_item' => __('View %1$s', 'edd'), 'search_items' => __('Search %2$s', 'edd'), 'not_found' => __('No %2$s found', 'edd'), 'not_found_in_trash' => __('No %2$s found in Trash', 'edd'), 'parent_item_colon' => '', 'menu_name' => __('%2$s', 'edd')));
    foreach ($download_labels as $key => $value) {
        $download_labels[$key] = sprintf($value, edd_get_label_singular(), edd_get_label_plural());
    }
    $download_args = array('labels' => $download_labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', 'has_archive' => $archives, 'hierarchical' => false, 'supports' => apply_filters('edd_download_supports', array('title', 'editor', 'thumbnail')));
    register_post_type('download', apply_filters('edd_download_post_type_args', $download_args));
    /* payment post type */
    $payment_labels = array('name' => _x('Payments', 'post type general name', 'edd'), 'singular_name' => _x('Payment', 'post type singular name', 'edd'), 'add_new' => __('Add New', 'edd'), 'add_new_item' => __('Add New Payment', 'edd'), 'edit_item' => __('Edit Payment', 'edd'), 'new_item' => __('New Payment', 'edd'), 'all_items' => __('All Payments', 'edd'), 'view_item' => __('View Payment', 'edd'), 'search_items' => __('Search Payments', 'edd'), 'not_found' => __('No Payments found', 'edd'), 'not_found_in_trash' => __('No Payments found in Trash', 'edd'), 'parent_item_colon' => '', 'menu_name' => __('Payment History', 'edd'));
    $payment_args = array('labels' => apply_filters('edd_payment_labels', $payment_labels), 'public' => false, 'publicly_queryable' => false, 'show_ui' => false, 'show_in_menu' => false, 'show_in_nav_menu' => false, 'query_var' => false, 'rewrite' => false, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'supports' => array('title'), 'menu_icon' => EDD_PLUGIN_URL . 'includes/images/media-button.png');
    register_post_type('edd_payment', $payment_args);
}
开发者ID:ryannmicua,项目名称:Easy-Digital-Downloads,代码行数:34,代码来源:post-types.php

示例6: __construct

 /**
  * Get things started
  *
  * @access      private
  * @since       1.4
  * @return      void
  */
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => edd_get_label_singular(), 'plural' => edd_get_label_plural(), 'ajax' => false));
     add_action('edd_log_view_actions', array($this, 'downloads_filter'));
 }
开发者ID:vheidari,项目名称:Easy-Digital-Downloads,代码行数:14,代码来源:class-sales-logs-list-table.php

示例7: setup_data

 /**
  * Setup the data that is going to be tracked
  *
  * @access private
  * @return void
  */
 private function setup_data()
 {
     $data = array();
     // Retrieve current theme info
     $theme_data = wp_get_theme();
     $theme = $theme_data->Name . ' ' . $theme_data->Version;
     $data['url'] = home_url();
     $data['theme'] = $theme;
     $data['email'] = get_bloginfo('admin_email');
     // Retrieve current plugin information
     if (!function_exists('get_plugins')) {
         include ABSPATH . '/wp-admin/includes/plugin.php';
     }
     $plugins = array_keys(get_plugins());
     $active_plugins = get_option('active_plugins', array());
     foreach ($plugins as $key => $plugin) {
         if (in_array($plugin, $active_plugins)) {
             // Remove active plugins from list so we can show active and inactive separately
             unset($plugins[$key]);
         }
     }
     $data['active_plugins'] = $active_plugins;
     $data['inactive_plugins'] = $plugins;
     $data['products'] = wp_count_posts('download')->publish;
     $data['download_label'] = edd_get_label_singular(true);
     $this->data = $data;
 }
开发者ID:jplhomer,项目名称:Easy-Digital-Downloads,代码行数:33,代码来源:tracking.php

示例8: product_dropdown

 /**
  * Renders an HTML Dropdown of all the Products (Downloads)
  *
  * @access public
  * @since 1.5
  * @param array $args Arguments for the dropdown
  * @return string $output Product dropdown
  */
 public function product_dropdown($args = array())
 {
     $defaults = array('name' => 'products', 'id' => 'products', 'class' => '', 'multiple' => false, 'selected' => 0, 'chosen' => false, 'number' => 30, 'bundles' => true, 'placeholder' => sprintf(__('Select a %s', 'edd'), edd_get_label_singular()));
     $args = wp_parse_args($args, $defaults);
     $product_args = array('post_type' => 'download', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => $args['number']);
     // Maybe disable bundles
     if (!$args['bundles']) {
         $product_args['meta_query'] = array('relation' => 'AND', array('key' => '_edd_product_type', 'value' => 'bundle', 'compare' => 'NOT EXISTS'));
     }
     $products = get_posts($product_args);
     $options = array();
     if ($products) {
         $options[0] = sprintf(__('Select a %s', 'edd'), edd_get_label_singular());
         foreach ($products as $product) {
             $options[absint($product->ID)] = esc_html($product->post_title);
         }
     } else {
         $options[0] = __('No products found', 'edd');
     }
     // This ensures that any selected products are included in the drop down
     if (is_array($args['selected'])) {
         foreach ($args['selected'] as $item) {
             if (!in_array($item, $options)) {
                 $options[$item] = get_the_title($item);
             }
         }
     } elseif (is_numeric($args['selected']) && $args['selected'] !== 0) {
         if (!in_array($args['selected'], $options)) {
             $options[$args['selected']] = get_the_title($args['selected']);
         }
     }
     $output = $this->select(array('name' => $args['name'], 'selected' => $args['selected'], 'id' => $args['id'], 'class' => $args['class'], 'options' => $options, 'chosen' => $args['chosen'], 'multiple' => $args['multiple'], 'placeholder' => $args['placeholder'], 'show_option_all' => false, 'show_option_none' => false));
     return $output;
 }
开发者ID:harish94,项目名称:Easy-Digital-Downloads,代码行数:42,代码来源:class-edd-html-elements.php

示例9: edd_external_products_pre_add_to_cart

/**
 * Disable the add_to_cart action
 *
 * @since       1.1.0
 * @param       int $download_id The ID of this download
 * @return      void
 */
function edd_external_products_pre_add_to_cart($download_id = 0)
{
    $url = get_post_meta($download_id, '_edd_external_product_url', true);
    if ($url) {
        wp_die(sprintf(__('This %1$s can only be purchased from %2$s!', 'edd-external-products'), strtolower(edd_get_label_singular()), esc_url($url)), '', array('back_link' => true));
    }
}
开发者ID:easydigitaldownloads,项目名称:EDD-External-Products,代码行数:14,代码来源:template-overrides.php

示例10: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'marketify_widget_curated_downloads';
     $this->widget_description = sprintf(__('Display curated %s in a grid.', 'marketify'), edd_get_label_plural());
     $this->widget_id = 'marketify_widget_curated_downloads';
     $this->widget_name = sprintf(__('Marketify - Home: Curated %s', 'marketify'), edd_get_label_plural());
     $this->settings = array('title' => array('type' => 'text', 'std' => edd_get_label_plural(), 'label' => __('Title:', 'marketify')), 'ids' => array('type' => 'text', 'std' => '', 'label' => sprintf(__('%s IDs:', 'marketify'), edd_get_label_singular())), 'columns' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => 4, 'std' => 4, 'label' => __('Number of columns:', 'marketify')), 'description' => array('type' => 'textarea', 'std' => '', 'label' => __('Description:', 'marketify')));
     parent::__construct();
 }
开发者ID:evinw,项目名称:project_3dBP,代码行数:12,代码来源:class-widget-downloads-curated.php

示例11: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'mashshare_edd_widget_stats';
     $this->widget_description = sprintf(__('Display useful statistics about a %s.', 'mashshare-edd'), edd_get_label_singular());
     $this->widget_id = 'mashshare_edd_widget_stats';
     $this->widget_name = sprintf(__('%s Stats', 'mashshare-edd'), edd_get_label_singular());
     $this->settings = array('title' => array('label' => __('Title', 'mashshare-edd'), 'type' => 'text', 'std' => ''));
     parent::__construct();
 }
开发者ID:brandsondigital,项目名称:mashshare-theme,代码行数:12,代码来源:class-widget-item-stats.php

示例12: __construct

 /**
  * Construct
  *
  * @return   void
  * @since    1.0
  */
 function __construct()
 {
     // hook updates
     add_action('save_post', array(&$this, 'delete_cache'));
     add_action('delete_post', array(&$this, 'delete_cache'));
     add_action('update_option_start_of_week', array(&$this, 'delete_cache'));
     add_action('update_option_gmt_offset', array(&$this, 'delete_cache'));
     // construct widget
     parent::__construct(false, sprintf(__('EDD %s Calendar', 'edd-widgets-pack'), edd_get_label_singular()), array('description' => sprintf(__('A calendar of your site\'s EDD %s.', 'edd-widgets-pack'), edd_get_label_plural(true))));
 }
开发者ID:Rexix,项目名称:edd-widgets-pack,代码行数:16,代码来源:edd-widget-downloads-calendar.php

示例13: edd_vault_display_admin_notice

/**
 * Add a notification bar for admins
 *
 * @since       1.0.0
 * @param       string $the_content The post content
 * @return      string $the_content The updated post content
 */
function edd_vault_display_admin_notice($the_content)
{
    if (isset($GLOBALS['post']) && $GLOBALS['post']->post_type == 'download') {
        $status = array_values(edd_vault_is_stored($GLOBALS['post']->ID));
        if (in_array(true, $status)) {
            $the_content = '<div class="edd-vault-notice"><p>' . edd_get_option('vault_notice_text', sprintf(__('This %s is currently in the vault.', 'edd-vault'), edd_get_label_singular(true))) . '</p></div>' . $the_content;
        }
    }
    return $the_content;
}
开发者ID:easydigitaldownloads,项目名称:EDD-Vault,代码行数:17,代码来源:filters.php

示例14: atcf_campaign_export_box

/**
 * Export metabox
 *
 * @since Astoundify Crowdfunding 0.1-alpha
 *
 * @return void
 */
function atcf_campaign_export_box()
{
    ?>
	<div class="metabox-holder">
		<div id="post-body">
			<div id="post-body-content">
				<div class="postbox">
					<h3><span><?php 
    _e('Export Campaign Data', 'atcf');
    ?>
</span></h3>
					<div class="inside">
						<p><?php 
    _e('Download a CSV of all pledges recorded.', 'atcf');
    ?>
</p>
						<p>
							<form method="post">
								<select name="edd_export_campaign_id">
									<option value="0"><?php 
    printf(__('Select %s', 'atcf'), edd_get_label_singular());
    ?>
</option>

									<?php 
    $campaigns = get_posts(array('post_type' => 'download', 'posts_per_page' => -1));
    foreach ($campaigns as $campaign) {
        $_campaign = atcf_get_campaign($campaign);
        if (apply_filters('atcf_export_filter_completed', !$_campaign->is_funded() && 'fixed' == $_campaign->type())) {
            continue;
        }
        echo '<option value="' . $campaign->ID . '">' . $campaign->post_title . '</option>';
    }
    ?>
								</select>
								<input type="hidden" name="edd-action" value="export_campaign"/>
								<input type="submit" value="<?php 
    _e('Generate CSV', 'atcf');
    ?>
" class="button-secondary"/>
							</form>
						</p>
					</div><!-- .inside -->
				</div><!-- .postbox -->
			</div><!-- .post-body-content -->
		</div><!-- .post-body -->
	</div><!-- .metabox-holder -->
	<?php 
}
开发者ID:WilliamJamesDalrympleWest,项目名称:crowdfunding,代码行数:56,代码来源:export.php

示例15: marketify_edd_widgets_init

/**
 * EDD Sidebars and Widgets
 *
 * @since Marketify 1.2
 *
 * @return void
 */
function marketify_edd_widgets_init()
{
    register_widget('Marketify_Widget_Recent_Downloads');
    register_widget('Marketify_Widget_Curated_Downloads');
    register_widget('Marketify_Widget_Featured_Popular_Downloads');
    register_widget('Marketify_Widget_Download_Details');
    register_widget('Marketify_Widget_Download_Share');
    register_widget('Marketify_Widget_Download_Archive_Sorting');
    register_widget('Marketify_Widget_Downloads_Taxonomy');
    register_widget('Marketify_Widget_Taxonomy_Stylized');
    if (class_exists('EDD_Reviews')) {
        register_widget('Marketify_Widget_Download_Review_Details');
    }
    /* Download Achive (archive-download.php) */
    register_sidebar(array('name' => sprintf(__('%s Archive Sidebar', 'marketify'), edd_get_label_singular()), 'id' => 'sidebar-download', 'before_widget' => '<aside id="%1$s" class="widget download-archive-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="download-archive-widget-title">', 'after_title' => '</h1>'));
    /* Download Single (single-download.php) */
    register_sidebar(array('name' => sprintf(__('%s Single Sidebar', 'marketify'), edd_get_label_singular()), 'id' => 'sidebar-download-single', 'before_widget' => '<aside id="%1$s" class="widget download-single-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="download-single-widget-title">', 'after_title' => '</h1>'));
    /* Download Single Comments/Reviews (single-download.php) */
    register_sidebar(array('name' => sprintf(__('%s Single Comments Sidebar', 'marketify'), edd_get_label_singular()), 'id' => 'sidebar-download-single-comments', 'before_widget' => '<aside id="%1$s" class="widget download-single-widget comments %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="download-single-widget-title">', 'after_title' => '</h1>'));
}
开发者ID:evinw,项目名称:project_3dBP,代码行数:27,代码来源:edd.php


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