This file is part of the BAAP Mobile Version.

The BAAP Mobile Version is Licensed under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with the
License.

You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
*/
if (file_exists($wpmp_include = wpmp_theme_group_file('sidebar.php'))) {
    include_once $wpmp_include;
} else {
    $before_sidebar = '<ul>';
    $after_sidebar = '</ul>';
}
print '<div id="sidebar">';
ob_start();
ob_start();
$sidebars_widgets = get_option('sidebars_widgets');
if (is_array($sidebars_widgets)) {
    foreach ($sidebars_widgets as $index => $widgets) {
        if ($index != 'wp_inactive_widgets') {
            dynamic_sidebar($index);
        }
    }
Пример #2
0
function wpmp_ms_mobile_bottom()
{
    ?>
        </div>
      </div>
        <div id="footer">
        <?php 
    if (file_exists($wpmp_include = wpmp_theme_group_file('footer.php'))) {
        include_once $wpmp_include;
    } else {
        ?>
              <p><?php 
        printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/"');
        ?>
 | <?php 
        printf(__("Theme designed by <a%s>ribot</a>", 'wpmp'), ' href="http://ribot.co.uk"');
        ?>
</p>
            <?php 
    }
    ?>
        <?php 
    wpmp_switcher_wp_footer(true);
    ?>
      </div>
    </div>
  </body>
</html>
<?php 
}
        $links = implode(', ', $links);
    } elseif ($archives == 'week' || $archives == 'month' || $archives == 'year') {
        print "<h2>" . sprintf(__("Archives by %s", 'wpmp'), $archives) . "</h2>";
        $links = " ";
        wp_get_archives(array('type' => $archives . 'ly', 'show_post_count' => true));
    }
    if ($links) {
        print "<p>{$links}</p>";
    } else {
        print "<p>" . __("No archives found. Use the menu to navigate the site, or search for a keyword:", 'wpmp') . "</p>";
        include TEMPLATEPATH . "/searchform.php";
    }
} else {
    global $more;
    $more = is_single() || is_page() ? 1 : 0;
    if (file_exists($wpmp_include = wpmp_theme_group_file('index.php'))) {
        include_once $wpmp_include;
    } else {
        while (have_posts()) {
            the_post();
            print '<div class="post" id="post-' . get_the_ID() . '">';
            if (is_single() || is_page()) {
                print '<h1>' . get_the_title() . '</h1>';
                wpmp_theme_post_single();
            } else {
                print '<h2><a href="';
                the_permalink();
                print '" rel="bookmark">' . get_the_title() . '</a></h2>';
                wpmp_theme_post_summary();
            }
        }
?>

<?php 
if (!empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {
    ?>
  <p class="nocomments"><?php 
    _e('This post is password protected. Enter the password to view comments.', 'wpmp');
    ?>
</p>
  <?php 
    return;
}
?>

<?php 
if (file_exists($wpmp_include = wpmp_theme_group_file('comments.php'))) {
    include_once $wpmp_include;
} else {
    if ($comments) {
        print '<h3 id="comments">';
        comments_number('No comments', '1 comment', '% comments');
        _e(' on this post.', 'wpmp') . '</h3>';
        wpmp_theme_comment_list($comments);
    }
    if ($post->comment_status == 'open') {
        print '<h3 id="respond">' . __('Leave a comment', 'wpmp') . '</h3>';
        wpmp_theme_comment_form($user_ID, $user_identity, $req, $comment_author, $comment_author_url, $id, $post);
    }
}
?>
License.

You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
*/
header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
header('Vary: user-agent, accept');
header('Cache-Control: no-cache, no-transform');
print '<?xml version="1.0" encoding="UTF-8"?>';
if (file_exists($wpmp_include = wpmp_theme_group_file('header.php'))) {
    include_once $wpmp_include;
} else {
    ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head profile="http://gmpg.org/xfn/11">
    <?php 
    if (get_bloginfo('stylesheet_url') != wpmp_theme_base_style()) {
        ?>
      <link href="<?php 
        print wpmp_theme_base_style();
        ?>
" rel="stylesheet" type="text/css" />
    <?php 
    }