本文整理汇总了PHP中wpgrade::textdomain方法的典型用法代码示例。如果您正苦于以下问题:PHP wpgrade::textdomain方法的具体用法?PHP wpgrade::textdomain怎么用?PHP wpgrade::textdomain使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpgrade
的用法示例。
在下文中一共展示了wpgrade::textdomain方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_nav_menu_locations
?>
</div>
<div class="flexbox__item">
<?php
$theme_locations = get_nav_menu_locations();
$has_main_menu = false;
if (isset($theme_locations["main_menu"]) && $theme_locations["main_menu"] != 0) {
$has_main_menu = true;
}
?>
<nav class="navigation navigation--main<?php
echo !$has_main_menu ? " no-menu" : "";
?>
" id="js-navigation--main">
<h2 class="accessibility"><?php
_e('Primary Navigation', wpgrade::textdomain());
?>
</h2>
<ul class="nav nav--main nav--items-social">
<?php
$social_links = wpgrade::option('social_icons');
$target = '';
if (wpgrade::option('social_icons_target_blank')) {
$target = 'target="_blank"';
}
if (!empty($social_links)) {
foreach ($social_links as $domain => $icon) {
if (isset($icon['value']) && isset($icon['checkboxes']['header'])) {
$value = $icon['value'];
?>
<li>
示例2: install_strings
/**
* @since 1.0
* @access internal
*
* @return array Void.
*/
public function install_strings()
{
parent::install_strings();
$this->strings['downloading_package'] = __('Downloading install package from the Envato API…', wpgrade::textdomain());
}
示例3: display_header_down_arrow
</div>
<?php
}
}
?>
</div>
<?php
display_header_down_arrow($page_section_idx, $header_height);
?>
</header>
<?php
} else {
?>
<div class="empty-slideshow">
<?php
_e('Currently there are no images assigned to this slideshow', wpgrade::textdomain());
?>
</div>
<?php
}
} else {
/* OR REGULAR PAGE */
if (has_post_thumbnail() || !empty($subtitle) || !empty($title) && $title !== ' ' || !empty($description)) {
?>
<header id="post-<?php
the_ID();
?>
-title" class="<?php
echo $classes;
?>
" data-type="image">
示例4: files
/**
* Generate the array of files to be backed up by looping through
* root, ignored unreadable files and excludes
*
* @access public
* @since 1.4
*
* @return array
*/
public function files()
{
if (!empty($this->files)) {
return $this->files;
}
$this->files = array();
if (defined('RecursiveDirectoryIterator::FOLLOW_SYMLINKS')) {
$filesystem = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->root(), RecursiveDirectoryIterator::FOLLOW_SYMLINKS), RecursiveIteratorIterator::SELF_FIRST, RecursiveIteratorIterator::CATCH_GET_CHILD);
$excludes = $this->exclude_string('regex');
foreach ($filesystem as $file) {
if (!$file->isReadable()) {
$this->unreadable_files[] = $file->getPathName();
continue;
}
$pathname = str_ireplace(trailingslashit($this->root()), '', $this->conform_dir($file->getPathname()));
/* Excludes */
if ($excludes && preg_match('(' . $excludes . ')', $pathname)) {
continue;
}
$this->files[] = $pathname;
}
} else {
$this->files = $this->files_fallback($this->root());
}
if (!empty($this->unreadable_files)) {
$this->warning($this->archive_method(), __('The following files are unreadable and could not be backed up: ', wpgrade::textdomain()) . implode(', ', $this->unreadable_files));
}
return $this->files;
}