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


PHP option::minimum_backstretch_width方法代码示例

本文整理汇总了PHP中option::minimum_backstretch_width方法的典型用法代码示例。如果您正苦于以下问题:PHP option::minimum_backstretch_width方法的具体用法?PHP option::minimum_backstretch_width怎么用?PHP option::minimum_backstretch_width使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在option的用法示例。


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

示例1: help

 /**
  * Help tab for media screen
  * @return help tab with verbose information for plugin
  *
  * @since 1.1.0
  */
 public function help()
 {
     $screen = get_current_screen();
     $large = $this->common->minimum_backstretch_width();
     $height_help = '<h3>' . __('Height', 'display-featured-image-genesis') . '</h3>';
     $height_help .= '<p>' . __('Depending on how your header/nav are set up, or if you just do not want your backstretch image to extend to the bottom of the user screen, you may want to change this number. It will raise the bottom line of the backstretch image, making it shorter.', 'display-featured-image-genesis') . '</p>';
     $height_help .= '<p>' . __('The plugin determines the size of your backstretch image based on the size of the user\'s browser window. Changing the "Height" setting tells the plugin to subtract that number of pixels from the measured height of the user\'s window, regardless of the size of that window.', 'display-featured-image-genesis') . '</p>';
     $height_help .= '<p>' . __('If you need to control the size of the backstretch Featured Image output with more attention to the user\'s screen size, you will want to consider a CSS approach instead. Check the readme for an example.', 'display-featured-image-genesis') . '</p>';
     $default_help = '<h3>' . __('Default Featured Image', 'display-featured-image-genesis') . '</h3>';
     $default_help .= '<p>' . __('You may set a large image to be used sitewide if a featured image is not available. This image will show on posts, pages, and archives.', 'display-featured-image-genesis') . '</p>';
     $default_help .= '<p>' . sprintf(__('Supported file types are: jpg, jpeg, png, and gif. The image must be at least %1$s pixels wide.', 'display-featured-image-genesis'), absint($large + 1)) . '</p>';
     $skipfront_help = '<h3>' . __('Skip Front Page', 'display-featured-image-genesis') . '</h3>';
     $skipfront_help .= '<p>' . __('If you set a Default Featured Image, it will show on every post/page of your site. This may not be desirable on child themes with a front page constructed with widgets, so you can select this option to prevent the Featured Image from showing on the front page. Checking this will prevent the Featured Image from showing on the Front Page, even if you have set an image for that page individually.', 'display-featured-image-genesis') . '</p>';
     $skipfront_help .= '<p>' . sprintf(__('If you want to prevent entire groups of posts from not using the Featured Image, you will want to <a href="%s" target="_blank">add a filter</a> to your theme functions.php file.', 'display-featured-image-genesis'), esc_url('https://github.com/robincornett/display-featured-image-genesis#how-do-i-stop-the-featured-image-action-from-showing-on-my-custom-post-types')) . '</p>';
     $keeptitles_help = '<h3>' . __('Do Not Move Titles', 'display-featured-image-genesis') . '</h3>';
     $keeptitles_help .= '<p>' . __('This setting applies to the backstretch Featured Image only. It allows you to keep the post/page titles in their original location, instead of overlaying the new image.', 'display-featured-image-genesis') . '</p>';
     $excerpts_help = '<h3>' . __('Move Excerpts/Archive Descriptions', 'display-featured-image-genesis') . '</h3>';
     $excerpts_help .= '<p>' . __('By default, archive descriptions (set on the Genesis Archive Settings pages) show below the Default Featured Image, while the archive title displays on top of the image. If you check this box, all headlines, descriptions, and optional excerpts will display in a box overlaying the Featured Image.', 'display-featured-image-genesis') . '</p>';
     $paged_help = '<h3>' . __('Show Featured Image on Subsequent Blog Pages', 'display-featured-image-genesis') . '</h3>';
     $paged_help .= '<p>' . __('Featured Images do not normally show on the second (and following) page of term/blog/post archives. Check this setting to ensure that they do.', 'display-featured-image-genesis') . '</p>';
     $feed_help = '<h3>' . __('Add Featured Image to Feed?', 'display-featured-image-genesis') . '</h3>';
     $feed_help .= '<p>' . __('This plugin does not add the Featured Image to your content, so normally you will not see your Featured Image in the feed. If you select this option, however, the Featured Image (if it is set) will be added to each entry in your RSS feed.', 'display-featured-image-genesis') . '</p>';
     $feed_help .= '<p>' . __('If your RSS feed is set to Full Text, the Featured Image will be added to the entry content. If it is set to Summary, the Featured Image will be added to the excerpt instead.', 'display-featured-image-genesis') . '</p>';
     $cpt_help = '<h3>' . __('Featured Images for Custom Post Types', 'display-featured-image-genesis') . '</h3>';
     $cpt_help .= '<p>' . __('Some plugins and/or developers extend the power of WordPress by using Custom Post Types to create special kinds of content.', 'display-featured-image-genesis') . '</p>';
     $cpt_help .= '<p>' . __('Since your site uses Custom Post Types, you may optionally set a Featured Image for each archive.', 'display-featured-image-genesis') . '</p>';
     $cpt_help .= '<p>' . __('Featured Images for archives can be smaller than the Default Featured Image, but still need to be larger than your site\'s "medium" image size.', 'display-featured-image-genesis') . '</p>';
     $help_tabs = array(array('id' => 'displayfeaturedimage_less_header-help', 'title' => __('Height', 'display-featured-image-genesis'), 'content' => $height_help), array('id' => 'displayfeaturedimage_default-help', 'title' => __('Default Featured Image', 'display-featured-image-genesis'), 'content' => $default_help), array('id' => 'displayfeaturedimage_exclude_front-help', 'title' => __('Skip Front Page', 'display-featured-image-genesis'), 'content' => $skipfront_help), array('id' => 'displayfeaturedimage_keep_titles-help', 'title' => __('Do Not Move Titles', 'display-featured-image-genesis'), 'content' => $keeptitles_help), array('id' => 'displayfeaturedimage_excerpts-help', 'title' => __('Move Excerpts', 'display-featured-image-genesis'), 'content' => $excerpts_help), array('id' => 'displayfeaturedimage_paged-help', 'title' => __('Subsequent Pages', 'display-featured-image-genesis'), 'content' => $paged_help), array('id' => 'displayfeaturedimage_feed-help', 'title' => __('RSS Feed', 'display-featured-image-genesis'), 'content' => $feed_help));
     foreach ($help_tabs as $tab) {
         $screen->add_help_tab($tab);
     }
     if ($this->post_types) {
         $screen->add_help_tab(array('id' => 'displayfeaturedimage_cpt-help', 'title' => __('Custom Post Types', 'display-featured-image-genesis'), 'content' => $cpt_help));
     }
 }
开发者ID:stevepolitodesign,项目名称:nema-wordpress,代码行数:41,代码来源:class-displayfeaturedimagegenesis-settings.php


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