示例#1
0
site_title();
?>
">
    <meta name="twitter:description" content="<?php 
site_description('', true);
?>
">
    <meta name="twitter:url" content="https://prothemedesign.com<?php 
echo path(ltrim(Flight::request()->url, '/'));
?>
">

    <!-- Open Graph data -->
    <meta property="og:title" content="<?php 
site_title();
?>
">
    <meta property="og:url" content="https://prothemedesign.com<?php 
echo path(ltrim(Flight::request()->url, '/'));
?>
">
    <meta property="og:description" content="<?php 
site_description('', true);
?>
">
    <meta property="og:site_name" content="Pro Theme Design">
    <meta property="fb:admins" content="507302231">

<?php 
site_meta_image();
site_meta();
示例#2
0
 * Theme
 */
Flight::route('/theme/(@theme)/', function ($theme = '') {
    $theme_data = array();
    $themes = array();
    if (!empty($theme) && ($theme_data = themes_get($theme))) {
        $themes = get_theme_data();
        site_title($theme_data['name'] . ' WordPress Theme');
        site_description($theme_data['short_description']);
    } else {
        Flight::notFound();
    }
    site_popover(true);
    site_meta('twitter:card', 'product');
    site_meta('og:type', 'product');
    site_meta_image(image_path('devices/' . $theme_data['image']));
    if (!empty($theme_data['url-wporg'])) {
        site_meta('og:price:amount', str_replace('$', '', $theme_data['price-wporg']));
        site_meta('og:price:currency', 'USD');
        site_meta('twitter:data1', $theme_data['price-wporg']);
        site_meta('twitter:label1', 'Price');
    }
    site_enable_purchase();
    Flight::render('theme.php', array('theme' => $theme_data, 'theme_name' => $theme, 'themes' => $themes));
});
/**
 * Themes
 */
Flight::route('/themes/(@tag)/', function ($tag = '') {
    if (empty($tag)) {
        $tag = 'wordpress.org';