Making WordPress.org

source: sites/trunk/browsehappy.com/public_html/index.php @ 1

Last change on this file since 1 was 1, checked in by nacin, 11 years ago

Initial import.

code.svn is as of rev 280.

  • Property svn:eol-style set to native
File size: 5.0 KB
Line 
1<!DOCTYPE html> 
2
3<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
4<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
5<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
6<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
7<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
8
9<head>
10        <meta charset="utf-8">
11        <title><?php _e( 'Browse Happy', 'browsehappy' ); ?></title>
12        <meta name="description" content="<?php esc_attr_e( 'Online. Worry-free. Upgrade your browser today!', 'browsehappy' ); ?>" />
13        <meta name="author" content="WordPress" />
14
15        <link rel="shortcut icon" href="<?php echo esc_url( home_url( 'favicon.ico' ) ); ?>" />
16        <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/imgs/apple-touch-icon-57x57.png" />
17        <link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/imgs/apple-touch-icon-72x72.png" />
18        <link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/imgs/apple-touch-icon-114x114.png" />
19
20        <!--[if (gt IE 6)|!(IE)]><!-->
21                <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style.css?3" />
22                <script src="<?php echo get_template_directory_uri(); ?>/js/modernizr-1.6.min.js"></script>
23                <script src="http://use.typekit.com/lsw6yis.js"></script>
24                <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
25        <!--<![endif]-->
26
27<?php wp_head(); ?>
28</head>
29
30<body>
31<?php do_action( 'browsehappy_locale_notice' ); ?>
32<div id="body-wrap">
33
34        <header>
35                <hgroup class="wrap">
36                        <h1><?php _e( 'Browse <em>Happy</em>', 'browsehappy' ); ?></h1>
37                        <h2><?php _e( 'Online. Worry-free. <em>Upgrade your browser today</em>!', 'browsehappy' ); ?></h2>
38                </hgroup>
39        </header>
40        <?php do_action( 'browsehappy_browser_notice' ); ?>
41        <div id="main">
42                <ul id="browserlist" class="wrap">
43<?php foreach ( browsehappy_get_browser_data() as $browser => $data ) : ?>
44                        <li id="<?php echo $browser; ?>">
45                                <a href="<?php echo esc_url( $data->url ); ?>" title="<?php echo esc_attr( $data->long_name ); ?>">
46                                        <div class="icon"></div>
47                                        <h2><?php echo $data->name; ?></h2>
48                                        <p class="info"><?php echo $data->info; ?></p>
49                                        <p class="version"><?php printf( __( 'Latest Version: %s', 'browsehappy' ), '<strong>' . apply_filters( 'get_browsehappy_version', $browser ) . '</strong>' ); ?></p>
50                                        <p class="website"><?php _e( 'Visit website for more info', 'browsehappy' ); ?></p>
51                                </a>
52                                <?php do_action( 'browsehappy_like_button', $browser ); ?>
53                        </li><!-- #<?php echo $browser; ?> -->
54<?php endforeach; ?>
55                </ul><!-- #browserlist -->
56        </div><!-- #main -->
57
58        <footer>
59                <div class="wrap">
60                        <section id="about">
61                                <h2><?php _e( 'What is Browse Happy', 'browsehappy' ); ?></h2>
62                                <p><?php $what = __( 'Using an outdated browser makes your computer unsafe. Browse Happy is a way for you to find out what are the latest versions of the major browsers around. You can also learn about alternative browsers that may fit you even better than the one you are currently using.', 'browsehappy' );
63echo $what; ?></p>
64                        </section><!-- #about -->
65                        <section id="share">
66                                <h2><?php _e( 'Share the Happiness', 'browsehappy' ); ?></h2>
67                                <nav>
68                                        <ul>
69                                                <li class="twitter"><a onclick="window.open(this.href, 'twittershare', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,height=250,width=500'); return false;" href="http://twitter.com/share?url=<?php echo urlencode( home_url( '/' ) ); ?>&amp;text=<?php echo urlencode( __( 'Browse Happy: Online. Worry-free. Upgrade your browser today!', 'browsehappy' ) ); ?>" title="<?php esc_attr_e( 'Share on Twitter', 'browsehappy' ); ?>">Twitter</a></li>
70<?php
71$redirect_uri = home_url( '/' );
72if ( isset( $_GET['locale'] ) )
73        $redirect_uri = add_query_arg( 'locale', urlencode( $_GET['locale'] ), $redirect_uri );
74$facebook_pieces = array(
75        'app_id=180651631983617', // Browse Happy app
76        'link=' . home_url( '/' ),
77        'picture=' . get_template_directory_uri() . '/imgs/apple-touch-icon-114x114.png',
78        'name=' . urlencode( __( 'Browse Happy', 'browsehappy' ) ),
79        'description=' . urlencode( $what ),
80        'message=' . urlencode( __( 'Online. Worry-free. Upgrade your browser today!', 'browsehappy' ) ),
81        'display=popup',
82        'redirect_uri=' . $redirect_uri,
83);
84?>
85                                                <li class="facebook"><a onclick="window.open(this.href, 'fbshare', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,height=325,width=540'); return false;" href="http://www.facebook.com/dialog/feed?<?php echo implode( '&', $facebook_pieces ); ?>" title="<?php esc_attr_e( 'Share on Facebook', 'browsehappy' ); ?>">Facebook</a></li>
86                                        </ul>
87                                </nav>
88                        </section><!-- #share -->
89                        <div id="byline">
90                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'browsehappy' ) ); ?>" title="WordPress"><?php printf( __( 'Brought to you by %s', 'browsehappy' ), 'WordPress' ); ?></a>
91                        </div><!-- #byline -->
92                </div>
93        </footer>
94
95</div><!-- #body-wrap -->
96<?php wp_footer(); ?>
97</body>
98</html>
Note: See TracBrowser for help on using the repository browser.