?>
				</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>
 /**
  * @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&#8230;', wpgrade::textdomain());
 }
							</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">
Exemplo n.º 4
0
 /**
  * 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;
 }