コード例 #1
0
// Make sure Piklist is installed and activated
function fwe_admin_init()
{
    if (is_admin()) {
        include_once dirname(__FILE__) . '/includes/class-piklist-checker.php';
        if (!piklist_checker::check(__FILE__, 'theme')) {
            return;
        }
    }
}
add_action('init', 'fwe_admin_init');
if (file_exists($base_path . 'vendor/autoload.php')) {
    require_once $base_path . 'vendor/autoload.php';
}
require_once $base_path . 'PiklistHelper.php';
PiklistHelper::Initiate();
require_once $walkers . 'class.walker-fwe-quicklinks.php';
require_once $walkers . 'class.walker-fwe-socials.php';
require_once $functions . 'api.php';
require_once $functions . 'hooks.php';
require_once $functions . 'http-timeout-fix.php';
require_once $functions . 'file-types.php';
require_once $functions . 'image-sizes.php';
require_once $functions . 'login.php';
require_once $functions . 'menus.php';
require_once $functions . 'plugins.php';
require_once $functions . 'post-types.php';
require_once $functions . 'taxonomies.php';
require_once $functions . 'settings.php';
require_once $functions . 'shortcodes.php';
require_once $functions . 'styles.php';
コード例 #2
0
?>
        </div><!-- /#main-content -->

        <footer id="socials">
          <?php 
wp_nav_menu(array('theme_location' => 'social_links', 'walker' => new Walker_FWE_Socials()));
?>
        </footer>

        <footer id="contact">
          <h2>Contact</h2>

          <p>Drop us a line. Give us a call. Let us know how we can help get your audience talking.</p>

          <?php 
$locations = PiklistHelper::parse_array($fwe_settings['locations']);
foreach ($locations as $location) {
    ?>
            <div class="address" itemscope itemtype="http://schema.org/LocalBusiness">
              <strong><?php 
    echo $location['location_name'];
    ?>
</strong>
              <meta itemprop="name" content="<?php 
    echo esc_attr($fwe_settings['company_name']);
    ?>
">
              <meta itemprop="description" content="<?php 
    echo esc_attr($fwe_settings['description']);
    ?>
">