code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php //+++++++++++++++++++++++++++++++++++++++++ // アイキャチ画像 add_theme_support('post-thumbnails'); set_post_thumbnail_size(120, 90, true); //+++++++++++++++++++++++++++++++++++++++++ // アイキャチ画像のURLを取得 function get_featured_image_url() { $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image...
PHP
<?php /* * * ページナビゲーション出力 */ function get_pagenavi(){ $navi_html = ""; $navi_html = '<div class="pager clearfix">'; $paged = get_query_var('paged'); $paginate_base = get_pagenum_link(1); global $wp_rewrite; global $max_pages; if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // MasterControl Setting /* register_post_type( 'mastercontrol', array( 'label' => 'MasterControl', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/master_control_l...
PHP
<?php function header_googleplus(){ print <<<GOOGLE_PLUS <!-- google plus --> <script type="text/javascript"> window.___gcfg = {lang: 'ja'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s =...
PHP
<?php /** * The custom background script. * * @package WordPress * @subpackage Administration */ /** * The custom background class. * * @since 3.0.0 * @package WordPress * @subpackage Administration */ class Custom_Background { /** * Callback for administration header. * * @var callback * @since 3...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ //カスタムメニュー register_nav_menus(array( 'navbar' => 'ナビゲーションバー', 'sidebar' => 'サイドバー' )); function facebook_js(){ print <<<FACEBOOK_HEADER <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script> <script type="text/javascri...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カバー画像 register_post_type( 'coverimg', array( 'label' => __('Cover image', 'aspthemes'), 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/profile.png', 'su...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Info 情報 register_post_type( 'information', array( 'labels' => array( 'name' => __('Infomation','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('Infomation','aspthemes'), __('Add New Post')), ), 'hierarc...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Info 情報 register_post_type( 'information', array( 'label' => 'Infomation', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'has_archive' => 'information-archive', 'menu_...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト shop 情報 register_post_type( 'shop', array( 'labels' => array( 'name' => __('SHOP','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('SHOP','aspthemes'), __('Add New Post')), ), 'hierarchical' => false, ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト shop 情報 register_post_type( 'shop', array( 'label' => 'SHOP', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/blog.png', 's...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト YOUTUBE (YouTube) register_post_type( 'youtube', array( 'labels' => array( 'name' => __('youtube', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('youtube','aspthemes'), __('Add New Post')), ), 'hiera...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト YOUTUBE (YouTube) register_post_type( 'youtube', array( 'label' => 'youtube', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/yout...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト media 情報 register_post_type( 'media', array( 'labels' => array( 'name' => __('media','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('media','aspthemes'), __('Add New Post')), ), 'hierarchical' => false...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト media 情報 register_post_type( 'media', array( 'label' => 'media', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/media.png', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト トップページ register_post_type( 'top', array( 'labels' => array( 'name' => __('TOP PAGE','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('TOP PAGE','aspthemes'), __('Add New Post')), ), 'hierarchical' =>...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Profile register_post_type( 'profile', array( 'labels' => array( 'name' => __('Profile','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('Profile','aspthemes'), __('Add New Post')), ), 'hierarchical' =>...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Profile register_post_type( 'profile', array( 'label' => 'Profile', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/profile.png', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト ITUNES register_post_type( 'itunes', array( 'labels' => array( 'name' => __('iTunes', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('iTunes','aspthemes'), __('Add New Post')), ), 'hierarchical' => fal...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト ITUNES register_post_type( 'itunes', array( 'label' => 'iTunes', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/itune.png', ...
PHP
<?php // //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト BLOG register_post_type( 'blog', array( 'labels' => array( 'name' => __('blog', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('blog','aspthemes'), __('Add New Post')), ), 'hierarchical' => false, ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト BLOG register_post_type( 'blog', array( 'label' => 'ブログ', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/blog.png', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト event 情報 register_post_type( 'event', array( 'labels' => array( 'name' => __('event', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('event','aspthemes'), __('Add New Post')), ), 'hierarchical' => false...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト event 情報 register_post_type( 'event', array( 'label' => 'event', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/event.png', ...
PHP
<?php register_post_type( 'goods', array( 'labels' => array( 'name' => __('Goods', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('Goods','aspthemes'), __('Add New Post')), ), 'hierarchical' => false, 'public' => true, 'query_var' => false, 'me...
PHP
<?php register_post_type( 'goods', array( 'label' => 'Goods', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/goods.png', 'supports' => array( 'title', 'custom-...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Twitter register_post_type( 'twitter', array( 'labels' => array( 'name' => __('Twitter','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('Twitter','aspthemes'), __('Add New Post')), ), 'hierarchical' => ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Twitter register_post_type( 'twitter', array( 'label' => 'Twitter', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/twitter.png', ...
PHP
<?php register_post_type( 'discography', array( 'labels' => array( 'name' => __('discography', 'aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('discography','aspthemes'), __('Add New Post')), ), 'hierarchical' => false, 'public' => true, 'qu...
PHP
<?php register_post_type( 'discography', array( 'label' => 'ディスコグラフィー', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/discography.png', 'supports' => array( 'title',...
PHP
<?php register_post_type( 'photogallery', array( 'labels' => array( 'name' => __('PhotoGallery','aspthemes'), 'add_new_item' => str_replace(__('New Post'), __('PhotoGallery','aspthemes'), __('Add New Post')), ), 'hierarchical' => false, 'public' => true, 'quer...
PHP
<?php register_post_type( 'photogallery', array( 'label' => 'PhotoGallery', 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/media.png', 'supports' => array( 'title', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト デザイン register_post_type( 'design', array( 'label' => 'デザイン', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => '/wp-content/images/tool/design.gif', 'supports' => array( ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ //ウィジェット登録 register_sidebar(array( 'description' => '', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '' ) ); register_sidebar(array( 'description' => '', 'before_widget' => '', 'after_w...
PHP
<?php // ameba広告をスキップ add_action('syndicated_post', 'delete_amebarss'); function delete_amebarss( $post ){ if ( preg_match( '/^PR/', $post['post_title'] ) ) : return NULL; endif; return $post; }
PHP
<?php /* Template Name: Twitter */ ?> <?php get_header(); ?> <!-- TwitterID取得 --> <?php query_posts('post_type=twitter'); ?> <?php if(have_posts()): ?> <?php while(have_posts()): the_post(); ?> <?php $twitter = get_post_meta($post->ID, 'Twitter', true); ?> <?php endwhile; ?> <?php endif; ?> <!-- //TwitterID...
PHP
<?php /* Template Name: Discography */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo get_global_menu(); ?> <!-- ...
PHP
<?php get_header(); ?> <a name="pagetop" id="pagetop"></a> <div id="wrapper"> <!-- ヘッダー START --> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美春 " /></a></h1> </div> <!-- //ヘッダー END// --> <!--...
PHP
<?php define("PACKAGE_ROOT", dirname(__FILE__)); include_once PACKAGE_ROOT.'/conf/facebook_const.php'; include_once PACKAGE_ROOT.'/lib/mastercontrol.php'; //+++++++++++++++++++++++++++++++++++++++++ //カスタムヘッダー include_once 'lib/func_header.php'; include_once 'lib/func_footer.php'; include_once 'lib/layout/func.php'...
PHP
<?php /* Template Name: iTMS Template */ define("IMAGEFLOW_ABSOLUTE_URL", get_bloginfo('template_directory') . "/custom_itunes.php-ext/ImageFlow_1.3.0"); define("IMAGEFLOW_ABSOLUTE_DIR", dirname(__FILE__) . "/custom_itunes.php-ext/ImageFlow_1.3.0"); define("LINKSHARE_PARTNER_ID", "0"); define("LINKSHARE_AFFILIATE_ID"...
PHP
<?php $template_type = get_post_type(get_the_ID()); include 'custom_' . $template_type . '.php'; ?>
PHP
<?php /* Template Name: Event */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダー START --> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美春 "...
PHP
<?php /* Template Name: PhotoGallary */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo get_global_menu(); ?> <!--...
PHP
<?php /* Template Name: Goods */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo get_global_menu(); ?> <!-- //グローバ...
PHP
<?php /* Template Name: Blog */ get_header(); ?> <div id="wrapper"> <a name="pagetop" id="pagetop"></a> <?php run_layout(); ?> <?php get_footer(); ?>
PHP
<?php /* Template Name: YouTube */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo do_shortcode("[gnavi]"); ?> <!--...
PHP
<?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php wp_nav_menu(array('theme_location' => 'navbar', 'container_id' => 'navigation...
PHP
<?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1>紗羅マリーfacebook page</h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php wp_nav_menu(array('theme_location' => 'navbar', 'container_id' => 'navigation', 'men...
PHP
<?php if ($handle = opendir('.')) { $style_def = array(); $style_hover = array(); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && findexts($file) === 'png') { list($width_image) = @getimagesize($file); $file_uname = split("_", str_replace(".png", "", $file)); ...
PHP
<?php /* Template Name: osusume */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo get_global_menu(); ?> <!-- //グロ...
PHP
<?php get_header(); ?> <?php get_footer(); ?>
PHP
<?php function parse_signed_request($signed_request, $secret) { list($encoded_sig, $payload) = explode('.', $signed_request, 2); // decode the data $sig = base64_url_decode($encoded_sig); $data = json_decode(base64_url_decode($payload), true); if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { error_log('Un...
PHP
<?php get_header(); ?> <?php get_footer(); ?>
PHP
<?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php wp_nav_menu(array('theme_location' => 'navbar', 'container_id' => 'navigation...
PHP
<?php /* Template Name: Info */ get_header(); ?> <div id="wrapper"> <a name="pagetop" id="pagetop"></a> <?php run_layout(); ?> <?php get_footer(); ?>
PHP
<!-- Footer START --> <div id="footer"> <p>Copyright&copy; LesPros Entertainment Co., Ltd. All rights reserved.</p> </div> <!-- //Footer END// --> <div> <?php wp_footer(); ?> </body> </html>
PHP
<?php $q = get_posts('post_type=mastercontrol&posts_per_page=1'); $qq = get_post_custom_values('appid', $q[0]->ID); if($qq[0] == ""){$APP_ID = "";}else{$APP_ID = $qq[0];} define("APP_ID", $APP_ID); $qq = get_post_custom_values('appsecret', $q[0]->ID); if($qq[0] == ""){$SECRET_KEY = "";}else{$SECRET_KEY = $qq...
PHP
<?php loadIframeFB(); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> ...
PHP
<?php /* Template Name: Profile */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダー START --> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美...
PHP
<?php /* Template Name: multiblog */ ?> <?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php echo get_global_menu(); ?> <!-- //グ...
PHP
<?php get_header(); ?> <a name="pagetop" id="pagetop"></a> <div id="wrapper"> <!-- ヘッダー START --> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美春 " /></a></h1> </div> <!-- //ヘッダー END// --> <!-- グローバルナビ ST...
PHP
<?php function wall_post( $og_image, $og_url, $og_title, $message ){ $fanpage = PAGE_ID; $page_token = ACCESS_TOKEN; if ( $page_token !== "" ): $ch = curl_init(); $params = 'access_token=' . urlencode($page_token); $params .= '&picture=' . urlencode($og_image); $params .= '&link=...
PHP
<?php function footer_html(){ $likeCount = facebook_likeCount("http://www.facebook.com/stockstyle"); print <<<FOOTER_STYLE <div id="powerd"> Powerd by&nbsp;<a href="https://www.facebook.com/stockstyle">STOCK STYLE</a> <span class="likeCountArrow"><span>$likeCount</span></span> </div> FOOTER_STYLE; } add_action(...
PHP
<?php // プラグイン //remove_action( 'wp_head', 'wordbooker_header' ); remove_action( 'wp_head', 'wpogp_auto_include' ); remove_action( 'wp_head', 'wp_page_numbers_stylesheet' ); remove_action( 'wp_head', 'widget_akismet_style' ); remove_action( 'wp_head', 'feed_links' ); // システム remove_action( 'wp_head', 'feed_links'); re...
PHP
<?php // FacebookPageにリダイレクト function redirectFB() { if($_GET["app_data"] != "" && !ereg("facebook",$_SERVER['HTTP_USER_AGENT'])){ echo '<meta http-equiv="refresh" CONTENT="0;URL=' . FB_URL . "&app_data=" . $_GET["app_data"] . '" />'; exit; } } function loadIframeFB(){ if ( isset($_R...
PHP
<?php function header_googleplus(){ print <<<GOOGLE_PLUS <script type="text/javascript"> window.___gcfg = {lang: 'ja'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElements...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ //カスタムメニュー register_nav_menus(array( 'navbar' => 'ナビゲーションバー', 'sidebar' => 'サイドバー' )); function facebook_js(){ print <<<FACEBOOK_HEADER <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script> <script type="text/javascri...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Info 情報 register_post_type( 'Info', array( 'label' => 'Infomation', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/event.png', ...
PHP
<?php /* //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト photogallery register_post_type( 'photogallery', array( 'label' => 'フォトギャラリー', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/medi...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Profile register_post_type( 'profile', array( 'label' => 'Profile', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/profile.png', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト ITUNES register_post_type( 'itunes', array( 'label' => 'iTunes', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/itune.png', 's...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト BLOG register_post_type( 'blog', array( 'label' => 'ブログ', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/blog.png', 'supports'...
PHP
<?php register_post_type( 'gallery', array( 'label' => 'Gallery', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/media.png', 'supports' => array( 'title', 'editor'...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト PV (YouTube) register_post_type( 'pv', array( 'label' => 'PV', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/youtube.png', '...
PHP
<?php register_post_type( 'goods_book', array( 'label' => 'Goods_BOOK', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/goods.png', 'supports' => array( 'title', 'c...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト Twitter register_post_type( 'twitter', array( 'label' => 'Twitter', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/twitter.png', ...
PHP
<?php //+++++++++++++++++++++++++++++++++++++++++ // カスタムポスト デザイン register_post_type( 'design', array( 'label' => 'デザイン', 'hierarchical' => false, 'public' => true, 'query_var' => false, 'menu_icon' => get_bloginfo('template_url').'/images/tool/master_control_logo.png', ...
PHP
<?php get_header(); ?> <a name="top"></a> <div id="wrapper"> <div id="google_translate_element"></div> <!-- ヘッダーSTART --> <div id="header"> <h1><?php bloginfo('name'); ?></h1> </div> <!-- //ヘッダーEND// --> <!-- グローバルナビSTART --> <?php wp_nav_menu(array('theme_location' => 'navbar', 'container_id' => 'navigation...
PHP
<?php $reflectPath = str_replace($_SERVER['DOCUMENT_ROOT'], "", dirname(__FILE__)); $js = file_get_contents("imageflow.js"); echo str_replace("%%reflectPath%%", $reflectPath, $js); ?>
PHP
<?php /* ------------------------------------------------------------------- Easy Reflections v3 by Richard Davey, Core PHP (rich@corephp.co.uk) Released 13th March 2007 Includes code submissions from Monte Ohrt (monte@ohrt.com) ------------------------------------------------------------------- ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php $db = mysqli_connect("l...
PHP
<? $conn=mysql_connect("localhost", "root", "root") or die("can't connect database"); mysql_select_db("it3",$conn); $sql="select * from user"; $query=mysql_query($sql); if(mysql_num_rows($query) == 0) { echo "Chua co du lieu"; } else { while($row=mysql_fetch_array($query)) { echo $row[IDSV] ." - ".$row[ho ...
PHP
<html> <head> <title>bai3</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href=../style/mystyle.css rel=stylesheet type="text/css"></link> </head> <body> <ul> <li><a href="trangchu.php">Update</a></li> </li> </ul> <h1>Update Database</h1> <?php $con=@...
PHP
$conn=mysql_connect("localhost","root","root") or die(" khong the ket noi"); mysql_select_db("it3");
PHP
<?php // Silence is golden. ?>
PHP
<?php if ( ! isset( $content_width ) ) $content_width = 625; function twentytwelve_setup() { /* * Makes Twenty Twelve available for translation. * * Translations can be added to the /languages/ directory. * If you're building a theme based on Twenty Twelve, use a find and replace * to change 'twentytwelve'...
PHP
<?php get_header(); ?> <!-- Content --> <div id="content" class="clearfix"> <div class="page-title">Business</div> <!-- One Post --> <?php if(have_posts()): ?> <?php while(have_posts()): the_post(); ?> <?php get_template_part( 'content', get_post_type(...
PHP
<footer class="clearfix"> <!-- Footer widgets --> <ul> <li> <h3 class="widget-title">Flicker Gallery</h3> <div class="flickr-widget"> <a href="#"><img alt="" src="<?php bloginfo('stylesheet_directory'); ?>/upload/flicker-1.jpg"></a> <a href="#"><img alt="" src="<?php bloginfo('stylesheet_direct...
PHP
<!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title> <?php global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_descript...
PHP
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="post-container clearfix"> <div class="post-meta"> <div class="comments"><a href="#"><?php the_comment(); ?> comments</a></div> <div class="author"><a href="<?php the_author_link(); ?>"><?php the_author(); ?></a></div> <div class="date">17 Jan...
PHP
<?php /** * Implements an optional custom header for Twenty Twelve. * See http://codex.wordpress.org/Custom_Headers * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ /** * Sets up the WordPress core custom header arguments and settings. * * @uses add_theme_support() to register...
PHP
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. The actual display of comments is * handled by a callback to twentyeleven_comment() which is * located in the functions.php file. * * @package WordPress * @subpackage Twenty_El...
PHP
<?php /** * The template for displaying Search Results pages. * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ get_header(); ?> <section id="primary"> <div id="content" role="main"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-tit...
PHP
<?php /** * Twenty Eleven functions and definitions * * Sets up the theme and provides some helper functions. Some helper functions * are used in the theme as custom template tags. Others are attached to action and * filter hooks in WordPress to change core functionality. * * The first function, twentyeleven_set...
PHP
<?php /** * The template for displaying posts in the Image Post Format on index and archive pages * * Learn more: http://codex.wordpress.org/Post_Formats * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>> ...
PHP
<?php /** * The Template for displaying all single posts. * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <nav id="nav-single"> <h3 class="assis...
PHP
<?php /** * The default template for displaying content * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <hgroup> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" ti...
PHP
<?php /** * The template for displaying posts in the Status Post Format on index and archive pages * * Learn more: http://codex.wordpress.org/Post_Formats * * @package WordPress * @subpackage Twenty_Eleven */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h...
PHP
<?php /** * The template for displaying Archive pages. * * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Tw...
PHP
<?php /** * The template for displaying posts in the Link Post Format on index and archive pages * * Learn more: http://codex.wordpress.org/Post_Formats * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header c...
PHP