Example #1
0
                 $post_info = get_post($post['post_num']);
                 $post_url = $post_info->guid;
                 $title = $post_info->post_title;
                 $post_date = mysql2date(get_option('date_format'), $post_info->post_date);
                 $post_author = get_userdata($post_info->post_author);
                 $post_author = $post_author->data->display_name;
                 $post_desc = get_post_meta($post['post_num'], _aioseop_description, true);
                 $post_thum = wp_get_attachment_url(get_post_thumbnail_id($post['post_num']));
                 $html .= '<li><div class="archive-image">';
                 $html .= '<a href="' . $post_url . '">';
                 $html .= '<img style="width:300px;" src="' . $post_thum . '"';
                 $html .= ' style="display: block;"><noscript>&lt;img width="300" height="194" src="' . $post_thum . '" class="attachment-medium-thumb wp-post-image" /&gt;</noscript>';
                 $html .= '</a></div><!--archive-image-->';
                 $html .= '<div class="special_togoshiginza_archive-text">';
                 $html .= '<h2><a href="' . $post_url . '">' . $title . '</a></h2>';
                 if (jpnCheck()) {
                     $html .= '<span class="archive-byline">Written by <a href="http://mcha-jp.com/author/matcha" title="' . $post_author . ' による投稿" rel="author">' . $post_author . '</a> on ' . $post_date . '</span>';
                 } else {
                     $html .= '<span class="archive-byline">Translated by <a href="http://mcha-jp.com/author/matcha" title="' . $post_author . ' による投稿" rel="author">' . $post_author . '</a> on ' . $post_date . '</span>';
                 }
                 $html .= '<p>' . $post_desc . '</p>';
                 $html .= '</div>';
                 $html .= '<!--special_togoshiginza_archive-text-->';
                 $html .= '</li>';
             }
         }
         $html .= '</ul>';
     }
 }
 $html .= '</div>';
 print $html;
Example #2
0
function newPostAddInfo()
{
    if (jpnCheck()) {
        print <<<HTML
\t\t\t\t<script type="text/javascript">
\t\t\t\t\tif(document.post.content.value == ""){
\t\t\t\t\t\tp=document.getElementsByName("content");
\t\t\t\t\t\t
\t\t\t\t\t\tp.item(0).value  = '<h3>Information</h3>\\r\\n';
\t\t\t\t\t\tp.item(0).value += '<strong>(店舗名orスポット名or地域名)</strong>\\r\\n\\r\\n';

\t\t\t\t\t\tp.item(0).value += '住所:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '営業時間:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '定休日:\\r\\n';
\t\t\t\t\t\tp.item(0).value += 'Wi-Fi環境:\\r\\n';
\t\t\t\t\t\tp.item(0).value += 'クレジットカードの有無と種類:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '言語対応レベル:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '他言語メニューの有無:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '最寄り駅:\\r\\n';
\t\t\t\t\t\tp.item(0).value += 'アクセス:(○○出口から徒歩△分)\\r\\n';
\t\t\t\t\t\tp.item(0).value += '価格帯:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '宗教情報:\\r\\n';
\t\t\t\t\t\tp.item(0).value += '電話番号:03-xxxx-xxxx\\r\\n';
\t\t\t\t\t\tp.item(0).value += '公式HP:<a href="http://www.○○○.jp" target="_blank">店舗名</a>';
\t\t\t\t\t}
\t\t\t\t</script>
HTML;
    }
}