Ejemplo n.º 1
0
                    <li><a class="fn-pageScroll" href="#link-contact">お問い合わせ</a></li>
                    <li><a href="https://tixeebox.tv/lp/how-to/" target="_blank">tixeeboxご利用方法</a></li>
                </ul>
            </div>
        </nav>
    </section>

    <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <div class="c-mainPanel">
                <div class="c-mainPanel_body">
                    <?php 
        echo wp_get_attachment_image(post_custom('cf_keyVisual'), 'full');
        ?>
                </div>
            </div>
    <?php 
    }
}
?>

    <div class="container">
        <div class="row u-mt20">
            <div class="col s12">
            <?php 
$ctm_linkspecial = get_post_meta($post->ID, 'cf_linkSpecialLP', true);
?>
            <?php 
Ejemplo n.º 2
0
  <p>
   <?php 
            echo post_custom("s-area-m");
            ?>
 m<sup>2</sup>
  </p>
 <?php 
        }
        ?>

 <p>
  <?php 
        if (post_custom('s-price')) {
            ?>
  <?php 
            echo post_custom("s-price");
            ?>
 <?php 
        }
        ?>
</p>
</a>

<?php 
    }
    ?>

<?php 
    the_posts_navigation();
    ?>
Ejemplo n.º 3
0
        <h3>おすすめアクティビティ オプショナル optional</h3>
      </div>
      <?php 
        $myposts = get_posts('category_name=optional_pickup&posts_per_page=999');
        ?>
      <?php 
        foreach ($myposts as $post) {
            ?>
      <?php 
            setup_postdata($post);
            ?>
      <div class="box"> <a href="<?php 
            the_permalink();
            ?>
" target="_top"><?php 
            echo post_custom('banner_img');
            ?>
</a>
        <?php 
            /*?><p><?php echo post_custom('banner_copy'); ?></p><?php */
            ?>
      </div>
      <?php 
        }
        ?>
      <div class="more"><a href="/optional/">もっと見る</a></div>
    </div>
    <div class="side_f"></div>
  </div>
  <?php 
    }
Ejemplo n.º 4
0
function seo_description()
{
    global $post;
    //カスタムフィールドがある場合
    if (is_single() && get_post_meta($post->ID, 'tcd-w_meta_description', true) or is_page() && get_post_meta($post->ID, 'tcd-w_meta_description', true)) {
        $trim_content = post_custom('tcd-w_meta_description');
        $trim_content = str_replace(array("\r\n", "\r", "\n"), "", $trim_content);
        $trim_content = htmlspecialchars($trim_content);
        echo $trim_content;
    } elseif (is_single() && has_excerpt() or is_page() && has_excerpt()) {
        $trim_content = get_the_excerpt();
        $trim_content = str_replace(array("\r\n", "\r", "\n"), "", $trim_content);
        echo $trim_content;
    } elseif (is_single() or is_page()) {
        $base_content = $post->post_content;
        $base_content = preg_replace('!<style.*?>.*?</style.*?>!is', '', $base_content);
        $base_content = preg_replace('!<script.*?>.*?</script.*?>!is', '', $base_content);
        $base_content = preg_replace('/\\[.+\\]/', '', $base_content);
        $base_content = strip_tags($base_content);
        $trim_content = mb_substr($base_content, 0, 120, "utf-8");
        $trim_content = str_replace(']]>', ']]&gt;', $trim_content);
        $trim_content = str_replace(array("\r\n", "\r", "\n"), "", $trim_content);
        $trim_content = htmlspecialchars($trim_content);
        if (preg_match("/。/", $trim_content)) {
            //指定した文字数内にある、最後の「。」以降をカットして表示
            mb_regex_encoding("UTF-8");
            $trim_content = mb_ereg_replace('。[^。]*$', '。', $trim_content);
            echo $trim_content;
        } else {
            //指定した文字数内に「。」が無い場合は、指定した文字数の文章を表示し、末尾に「…」を表示
            echo $trim_content . '...';
        }
        //シングルページと固定ページ以外はサイトのディスクリプションを表示
    } else {
        echo get_bloginfo('description');
    }
}
Ejemplo n.º 5
0
 <i class="fa fa-external-link-square"></i>
                                    </a></td>
                                <td><?php 
    _e(post_custom('apt_code'));
    ?>
</td>
                                <td><?php 
    _e(post_custom('apt_prazo'));
    ?>
</td>
                                <td><?php 
    _e('R$ ' . number_format(post_custom('apt_value'), 2, ',', '.'));
    ?>
</td>
                                <td><?php 
    _e(date('d/m/Y', strtotime(post_custom('apt_expiration'))));
    ?>
</td>
                            </tr>

                        <?php 
}
?>
                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </div>
</div>
Ejemplo n.º 6
0
get_header();
pressmark();
?>

	<p id="blurb">
        Pressmark is a bookmark manager using Wordpress.<br>
		You can download it on <a href="http://github.com/alx/pressmark">GitHub</a> and install it on your webhost.
    </p>

<?php 
if (have_posts()) {
    $previous_user = "";
    while (have_posts()) {
        the_post();
        $url = post_custom("pressmark-url");
        the_date('', '<h2 style="margin-bottom: 0; color: #000; text-decoration: none;">', '</h2><div style="text-align: right; font-family: Verdana; font-size: 11px; margin: 0 0 10px 0;"></div>', true);
        ?>
	
	<div class="article_bar" id="article_bar_<?php 
        the_ID();
        ?>
">
		<span style="display:none;" id="urltitle<?php 
        the_ID();
        ?>
"><?php 
        the_title();
        ?>
</span>
		<a id="article_link_<?php 
Ejemplo n.º 7
0
function the_views($display = true, $prefix = '', $postfix = '', $always = false)
{
    $post_views = intval(post_custom('views'));
    $views_options = get_option('views_options');
    if ($always || should_views_be_displayed($views_options)) {
        $output = $prefix . str_replace('%VIEW_COUNT%', number_format_i18n($post_views), $views_options['template']) . $postfix;
        if ($display) {
            echo apply_filters('the_views', $output);
        } else {
            return apply_filters('the_views', $output);
        }
    } elseif (!$display) {
        return '';
    }
}
Ejemplo n.º 8
0
function the_permalink_rss()
{
    echo apply_filters('the_permalink_rss', post_custom("pressmark-url"));
}
Ejemplo n.º 9
0
                ?>
						<p class="rank"><img src="/img/osusume_rank3-5_s.jpg" width="133" height="12" alt="3 ~5つ星"></p>
					<?php 
            } elseif (get_post_meta($post->ID, 'baligirl_rank', true) == '4-5') {
                ?>
						<p class="rank"><img src="/img/osusume_rank4-5_s.jpg" width="148" height="12" alt="4 ~5つ星"></p>
					<?php 
            }
            ?>
                <?php 
        }
        ?>
                <div class="link">
                  <div class="tourBtn">
                    <a href="http://www.tabikobo.com/tour/tourresult?media=plumeriabali&region_id=1&country_id=3&hotel_id=<?php 
        echo post_custom('hotel_id');
        ?>
">
                      ツアー詳細へ
                    </a>
                  </div>
                  <div class="hotelLink"><a href="<?php 
        the_permalink();
        ?>
">ホテル詳細はこちら</a></div>
                </div>
              </div>
             </span>
            </div>
            <?php 
    }
Ejemplo n.º 10
0
 */
include '../wp-load.php';
include 'php/config.php';
include 'php/function.php';
$title = 'お問い合わせ';
//$description = '';
//$keword = '';
$css = '<link href="/carsharing/lp/contact/css/contact.css" rel="stylesheet" type="text/css" media="screen,print" />';
//$js = '';
get_header();
if ($INPUT_id) {
    $args = array('page_id' => $INPUT_id);
    query_posts($args);
    if (have_posts()) {
        the_post();
        if (post_custom('pdf')) {
            $file_arr = get_imagefield('pdf');
            $pdf_url = $file_arr['url'];
        }
        $permalink = get_permalink($post->ID);
    }
    wp_reset_query();
}
?>


<?php 
/**
 * 入力チェック
 */
$flag_check = false;
Ejemplo n.º 11
0
function biz_vektor_getHeadKeywords()
{
    $options = biz_vektor_get_theme_options();
    $commonKeyWords = $options['commonKeyWords'];
    // get custom field
    $entryKeyWords = post_custom('metaKeyword');
    // display common keywords
    echo $commonKeyWords;
    // If common and individual keywords exist, print ','.
    if ($commonKeyWords && $entryKeyWords) {
        echo ',';
    }
    // print individual keywords
    echo $entryKeyWords;
}
Ejemplo n.º 12
0
" rel="bookmark"><?php 
        the_post_thumbnail();
        ?>
</a>
			<div class="table-responsive">
<table class="table table-striped"><tbody>
<tr><th>家賃</th><td><div class="text-danger"><strong><?php 
        echo post_custom('textfield_common1');
        ?>
</strong></div></td></tr>
<tr><th>間取り</th><td><?php 
        echo post_custom('textfield_common3');
        ?>
</td></tr>
<tr><th>地域</th><td><?php 
        echo post_custom('radio_common2');
        ?>
</td></tr>
</tbody>
</table></div>
		</article>
	</div><!--col-->
<?php 
    }
    ?>
</div><!--front-->
<div class="row">
<div class="pager">
	<?php 
    global $wp_rewrite;
    $paginate_base = get_pagenum_link(1);
Ejemplo n.º 13
0
<?php

$title = get_the_title();
$description = esc_html(post_custom('description'));
$keword = esc_html(post_custom('keword'));
//$css = '';
//$js = '';
get_header();
the_post();
?>


<?php 
the_content();
?>


<div class="btnContact"><a href="/carsharing/lp/contact/?id=<?php 
the_ID();
?>
"><img src="<?php 
bloginfo('template_url');
?>
/images/btn_contact.gif" alt="お問い合わせはこちら" class="over" /></a></div>

<?php 
get_footer();
?>

Ejemplo n.º 14
0
function biz_vektor_getHeadKeywords()
{
    $options = biz_vektor_get_theme_options();
    if (isset($options['commonKeyWords'])) {
        $commonKeyWords = esc_html($options['commonKeyWords']);
        // display common keywords
        echo $commonKeyWords;
    }
    if (is_page() || is_single()) {
        // get custom field
        $entryKeyWords = esc_html(post_custom('metaKeyword'));
    }
    // If common and individual keywords exist, print ','.
    if (isset($commonKeyWords) && $commonKeyWords && isset($entryKeyWords) && $entryKeyWords) {
        echo ',';
    }
    // print individual keywords
    echo isset($entryKeyWords) ? $entryKeyWords : '';
}
Ejemplo n.º 15
0
function updated_send_email($post_id)
{
    // ----------------------------------------------------------送信タイミング!!!!
    // If this is just a revision, don't send the email.
    if (wp_is_post_revision($post_id)) {
        return;
    }
    if (wp_is_post_revision($post_id)) {
        return;
    } else {
        if (wp_publish_post($post_id)) {
        }
    }
    // ここからget field
    // ----------------------------------------------------------フィールド開始
    $postid = get_the_ID();
    $adminurl = get_edit_post_link($id, $context);
    $modified = get_field('corresp');
    //対応者名表示
    if (isset($modified)) {
        $modified = get_field('corresp');
        $addfronts = $modified;
        $addfront = explode("@", $addfronts);
        $adminaddress = $addfront[0];
        // 分解表示 アカウント出力
    }
    //コメント本文
    $textecomment = get_field('textediter_comment');
    if ($textecomment) {
        //メールへ添付
        $contenttemp = '<br>コメント:' . $textecomment . '';
        // コメント欄へUP
        $contentcomment = $textecomment;
        $data = array('comment_post_ID' => $postid, 'comment_author' => $modified, 'comment_content' => $contentcomment, 'comment_type' => 'Comment', 'comment_parent' => 0, 'user_id' => 1);
        wp_insert_comment($data);
    }
    // 必要であれば追加 //
    // 'comment_author_email' => $adminaddress,
    //認証街の方への処理    'comment_approved' => 1,
    // -------------------------------------------------------------デフォルト--data!!!
    // 社員番号
    $post_stuff = get_field('staffnumber');
    // 依頼期日  dateはタイトルとの連結でエラーが出るので直接タイトルを入れてある
    $date = DateTime::createFromFormat('Y/m/d', get_field('due-date'));
    $date = get_field('due-date');
    // extract Y,M,D
    $y = substr($date, 0, 4);
    $m = substr($date, 4, 2);
    $d = substr($date, 6, 2);
    // 連絡先(電話番号)
    $tel = get_field('tel');
    // メール宛先(cc)はsbujectの上に設置
    if ($tel) {
        $tels = '連絡先(電話番号)' . $tel . '<br>';
    }
    // 本文フィールド
    //-------------------------------------------------------------AWSアカウント発行申請
    // プロジェクト名
    $project = get_field('projectname');
    // 費用負担部門
    $department = get_field('department');
    // 担当者一覧
    $staffs = get_field('staffs');
    //-------------------------------------------------------------IPアドレス払出・返却申請
    // 操作
    $field = get_field_object('ip_action');
    $value = get_field('ip_action');
    $ip_action = $field['choices'][$value];
    // IP種別
    $field = get_field_object('ip_kind');
    $value = get_field('ip_kind');
    $ip_kind = $field['choices'][$value];
    // 領域
    $field = get_field_object('area');
    $value = get_field('area');
    $area = $field['choices'][$value];
    // IPv4 or IPv6
    $field = get_field_object('vfour_or_vsix');
    $value = get_field('vfour_or_vsix');
    $vfour_or_vsix = $field['choices'][$value];
    // VLAN 

    $vlan = get_field('vlan');
    // 個数
    $ip_number = get_field('ip_number');
    // プロジェクト名
    $projectname = get_field('projectname');
    // 用途
    $use = get_field('use');
    // FQDN
    $fqdn = get_field('fqdn');
    // 返却IP
    $return_ip = get_field('return_ip');
    // セカンドメール
    $secondmail = get_field('secondmail');
    //-------------------------------------------------------------Cloverアカウント発行申請
    // プロジェクト名
    $projectname = get_field('projectname');
    //アカウント名
    $accountname = get_field('accountname');
    //unit1
    $unit_one = get_field('unit_one');
    //unit2
    $unit_two = get_field('unit_two');
    //サービス
    $service = get_field('service');
    // リストチェック
    // $field = get_field_object('list_chk');
    // $value = get_field('list_chk');
    // $list_chk = $field['choices'][ $value ];
    //-------------------------------------------------------------FireWall設定申請
    //依頼区分
    $field = get_field_object('divide');
    $value = get_field('divide');
    $divide = $field['choices'][$value];
    //設定区分
    $field = get_field_object('set_up_kind');
    $value = get_field('set_up_kind');
    $set_up_kind = $field['choices'][$value];
    //CloverAccount
    $cloveraccount = get_field('cloveraccount');
    //Src to Dest
    $field = get_field_object('src_to_dest');
    $value = get_field('src_to_dest');
    $src_to_dest = $field['choices'][$value];
    //Source IPv4
    $src_ipv_four = get_field('src_ipv_four');
    //Source IPv4
    $src_ipv_four_bulk = get_field('src_ipv_four_bulk');
    //Source IPv6
    $src_ipv_six = get_field('src_ipv_six');
    //Source IPv6
    $src_ipv_six_bulk = get_field('src_ipv_six_bulk');
    //Dest IPv4
    $dest_ipv_four = get_field('dest_ipv_four');
    //Dest IPv4
    $dest_ipv_four_bulk = get_field('dest_ipv_four_bulk');
    //Dest IPv6
    $dest_ipv_six = get_field('dest_ipv_six');
    //Dest IPv6
    $dest_ipv_six_bulk = get_field('dest_ipv_six_bulk');
    // DestProtocol
    $field = get_field_object('destprotocol');
    $value = get_field('destprotocol');
    $destprotocol = $field['choices'][$value];
    // DestPort
    $destport = get_field('destport');
    //削除内容
    $delete = get_field('delete');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------GCPアカウント発行申請
    // プロジェクト名
    $projectname = get_field('projectname');
    //費用負担部署
    $costs_borne = get_field('costs_borne');
    // 担当者一覧
    $staffs = get_field('staffs');
    //-------------------------------------------------------------NAT設定変更申請
    // Source IP Address
    $source_ip_address = get_field('source_ip_address');
    // FQDN
    $fqdn = get_field('fqdn');
    // 領域
    $territory = get_field('territory');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------SSL証明書申請
    //費用負担部署
    $costs_borne = get_field('costs_borne');
    //作業区分選択(新規,更新,削除)
    $field = get_field_object('work_description');
    $value = get_field('work_description');
    $work_description = $field['choices'][$value];
    //証明書bit数
    $field = get_field_object('certificate_bit');
    $value = get_field('certificate_bit');
    $certificate_bit = $field['choices'][$value];
    //EV証明書
    $field = get_field_object('certificate_ev');
    $value = get_field('certificate_ev');
    $certificate_ev = $field['choices'][$value];
    //確認用URL
    $confirmation_url = get_field('confirmation_url');
    //ドメイン名
    $domain_name = get_field('domain_name');
    //証明書をインストールする機器(IP)
    $machinery_ip = get_field('machinery_ip');
    //LB内パーティション
    $partition = get_field('partition');
    // 署名アルゴリズム
    $field = get_field_object('algorithm');
    $value = get_field('algorithm');
    $algorithm = $field['choices'][$value];
    //証明書期限更新連絡先
    $telnumber = get_field('telnumber');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------VPNアカウント発行・解除申請
    //発行 or 解除
    $field = get_field_object('issure_or_remove');
    $value = get_field('issure_or_remove');
    $issure_or_remove = $field['choices'][$value];
    // VPN廃止対象者
    $vpn_name = get_field('vpn_name');
    // VPN廃止対象者メールアドレス
    $vpn_address = get_field('vpn_address');
    // VPN廃止対象者所属
    $vpn_project = get_field('vpn_project');
    //VPN廃止日
    $vpn_day = get_field('vpn_day');
    //-------------------------------------------------------------その他依頼
    //作業詳細
    $work_detail = get_field('work_detail');
    //-------------------------------------------------------------受取依頼
    //納品数
    $delivery_number = get_field('delivery_number');
    //納品予定日
    $delivery_date = get_field('delivery_date');
    //搬入対象機器
    $machinery = get_field('machinery');
    //搬入車両情報
    $vehicle = get_field('vehicle');
    //搬入機器の開梱有無
    $field = get_field_object('open');
    $value = get_field('open');
    $open = $field['choices'][$value];
    //搬入機器の対処
    $cope = get_field('cope');
    //搬入業者連絡先
    $contact = get_field('contact');
    //搬入時連絡の方法
    $how_to = get_field('how_to');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------各種DC申請代行依頼
    //日時
    $date_and_time = get_field('date_and_time');
    //作業内容
    $work = get_field('work');
    //入館者
    $visitors = get_field('visitors');
    //入館者ふりがな
    $visitors_furigana = get_field('visitors_furigana');
    //連絡先
    $tel = get_field('tel');
    //-------------------------------------------------------------各種お問い合わせ
    //依頼種別
    $field = get_field_object('kind');
    $value = get_field('kind');
    $kind = $field['choices'][$value];
    if ($kind) {
        $kinds = '依頼種別:' . $kind . '<br>';
    }
    //利用端末
    $field = get_field_object('vpn_device');
    $value = get_field('vpn_device');
    $vpn_device = $field['choices'][$value];
    if ($vpn_device) {
        $vpn_devices = '利用端末:' . $vpn_device . '<br>';
    }
    //バージョン
    $vpn_version = get_field('vpn_version');
    if ($vpn_version) {
        $vpn_versions = 'バージョン:' . $vpn_version . '<br>';
    }
    //設定手順において完了している項番
    $field = get_field_object('vpn_number_mac');
    $value = get_field('vpn_number_mac');
    $vpn_number_mac = $field['choices'][$value];
    if ($vpn_number_mac) {
        $vpn_number_macs = '設定手順において完了している項番/mac:' . $vpn_number_mac . '<br>';
    }
    //設定手順において完了している項番
    $field = get_field_object('vpn_number_windows');
    $value = get_field('vpn_number_windows');
    $vpn_number_windows = $field['choices'][$value];
    if ($vpn_number_windows) {
        $vpn_number_windowss = '設定手順において完了している項番/windows:' . $vpn_number_windows . '<br>';
    }
    //症状
    $vpn_insident = get_field('vpn_insident');
    if ($vpn_insident) {
        $vpn_insidents = '症状:' . $vpn_insident . '<br>';
    }
    //問い合わせ内容
    $other_insident = get_field('other_insident');
    if ($other_insident) {
        $other_insidents = '問い合わせ内容:' . $other_insident . '<br>';
    }
    //-------------------------------------------------------------新ドメイン取得申請
    //ドメイン名
    $domain_name = get_field('domain_name');
    //NS管理
    $field = get_field_object('ns_management');
    $value = get_field('ns_management');
    $ns_management = $field['choices'][$value];
    //DNSzoneオーナー
    $dns_zones_owner = get_field('dns_zones_owner');
    //サービス名
    $servicename = get_field('servicename');
    //設定希望NS
    $name_server = get_field('name_server');
    //費用負担部署
    $costs_borne = get_field('costs_borne');
    //-------------------------------------------------------------構内配線調整/回線工事の立会依頼
    //実施日時
    $date_the_time = get_field('date_the_time');
    //業者名
    $trader_name = get_field('trader_name');
    //業者連絡先
    $suppliers_contact = get_field('suppliers_contact');
    //作業詳細
    $working_details = get_field('working_details');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------機器状況確認依頼
    //機器状況確認依頼
    $rack = get_field('rack');
    //対象機器Unit
    $unit = get_field('unit');
    //対象機器シリアル
    $serial = get_field('serial');
    //対象機器ホスト名
    $host_name = get_field('host_name');
    //現在の状況
    $present_situation = get_field('present_situation');
    //作業事前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //実施希望期間
    $implementation_period = get_field('implementation_period');
    //-------------------------------------------------------------物理サーバ貸出・返却・保守依頼
    //作業区分
    $field = get_field_object('work_classification');
    $value = get_field('work_classification');
    $work_classification = $field['choices'][$value];
    //タイプ
    $field = get_field_object('type');
    $value = get_field('type');
    $type = $field['choices'][$value];
    //台数
    $number = get_field('number');
    //Cloverオーナー
    $cloverowner = get_field('cloverowner');
    //ホスト名
    $hostname = get_field('hostname');
    //VLAN
    $vlan = get_field('vlan');
    //Tftp Profile
    $tftp_profile = get_field('tftp_profile');
    //症状
    $insedent = get_field('insedent');
    //-------------------------------------------------------------資産外機器の受取依頼
    //搬入対象機器
    $target_device = get_field('target_device');
    //納品数
    $delivery_number = get_field('delivery_number');
    //搬入車両情報
    $vehicle_information = get_field('vehicle_information');
    //搬入機器の開梱有無
    $field = get_field_object('unpacking');
    $value = get_field('unpacking');
    $unpacking = $field['choices'][$value];
    //搬入機器の対処
    $deal = get_field('deal');
    //搬入業者連絡先
    $contact_number = get_field('contact_number');
    //搬入時連絡の方法
    $contact_way = get_field('contact_way');
    //作業前連絡の有無
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------障害対応依頼
    //対象機器ラック
    $subject_rack = get_field('subject_rack');
    //対象機器Unit
    $unit = get_field('unit');
    //対象機器シリアル
    $serial = get_field('serial');
    //対象機器ホスト名
    $host_name = get_field('host_name');
    //障害状況
    $present_situation = get_field('trouble_status');
    //監視状況
    $watching = get_field('watching');
    //電源断許可
    $power = get_field('power');
    //保守対応実施有無
    $field = get_field_object('maintain');
    $value = get_field('maintain');
    $maintain = $field['choices'][$value];
    //作業前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------電源ON/OFF依頼
    //対象機器ラック
    $subject_rack = get_field('subject_rack');
    //対象機器Unit
    $unit = get_field('unit');
    //対象機器シリアル
    $serial = get_field('serial');
    //対象機器ホスト名
    $host_name = get_field('host_name');
    //電源ON・OFF
    $field = get_field_object('power');
    $value = get_field('power');
    $power = $field['choices'][$value];
    //作業前連絡
    $field = get_field_object('advance_notice');
    $value = get_field('advance_notice');
    $advance_notice = $field['choices'][$value];
    //-------------------------------------------------------------共通フッター
    // 添付
    $file = get_field('file');
    //$file =  str_replace("http:","",$fileimg);
    // 備考
    $memo = get_field('memo');
    //
    // SUBJECT  ステータス カテゴリー トップ状況 + メッセージ
    //
    // ----------------------------------------------------------SUBJECT + ディスクリプション
    // カテゴリー名取得 申請書タイトル
    $cat = get_the_category();
    $cat = $cat[0];
    $category = $cat->cat_name;
    // ステータス名取得 ステータス状況
    $term = array_pop(get_the_terms($post->ID, 'status'));
    $term_p = $term->parent;
    if (!$term_p == 0) {
        $term = array_shift(get_the_terms($post->ID, 'status'));
    }
    $categorystatus_set = esc_html($term->term_id);
    $term_set = 78;
    if ($term_set == $categorystatus_set) {
        $categorystatus = '新規';
        //下書き状態の場合
    } else {
        $categorystatus = esc_html($term->name);
    }
    // ステータス(カテゴリ)からの説明文(メッセージ)ディスクリプション
    $statusdiscriptions = $term->description;
    $statusdiscription = nl2br($statusdiscriptions);
    // 現状使用していないが今後使用かも?
    $posttags = get_the_tags();
    if ($posttags) {
        foreach ($posttags as $tag) {
            $option_tag_tag = $tag->name . ' ';
        }
    }
    // subject
    $subject = "依頼ID:{$postid}" . "_{$category}" . "/{$categorystatus}";
    // デフォルトメッセージフォームメッセージフォームから追加メッセージとあったが
    // 結局コメントボックスだけでやることになったのでコメントアウト
    //    $defaultmess = get_field('defaultmess');
    // //コンテンツ本文取得
    // global $post;
    // $contents = mb_substr($post->post_content, 0, 30);
    // $contenttemp = nl2br($contents);
    // コメント取得
    // The Query
    $comments_query_args = array('post_type' => 'post', 'number' => 1, 'status' => 'approve', 'post_id' => $post_id);
    $comments_query = new WP_Comment_Query();
    $recent_comments = $comments_query->query($comments_query_args);
    // Comment Loop
    if ($recent_comments) {
        foreach ($recent_comments as $recent_comment) {
            $quickpostcom = $recent_comment->comment_content;
        }
    }
    // 申請者メールアドレス取得
    $post = get_post($post_id);
    if ($post) {
        $author = get_userdata($post->post_author);
        $user_email = $author->user_email;
    }
    // mailaddress
    $ccaddress = post_custom('e_mail_cc');
    // 本番用メルアド
    // catoms-admin@cyberagent.co.jp
    // ----------------------------------------------------------ヘッダーへ収納
    $mail_address = array('*****@*****.**', $ccaddress, $user_email);
    // カテゴリー判定
    $category = get_the_category();
    $cat_id = $category[0]->cat_ID;
    $cat_name = $category[0]->cat_name;
    $cat_slug = $category[0]->category_nicename;
    //
    //----------------------------------------------------------AWSアカウント発行申請 message
    //
    if (in_category('awsacountpassrequest')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $messagetest = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>

{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

[社員番号] {$post_stuff}<br>
[依頼期日] {$date}<br>
[連絡先(電話番号)] {$tel}<br>
[Cc] {$ccaddress}<br><br><br>


[プロジェクト名] {$project}<br>
[費用負担部門] {$department}<br>
[担当者一覧] {$staffs}<br><br>

添付:<img src="{$file}" alt="" /><br>
[備考] {$memo}<br>



EOS;
        wp_mail($mail_address, $subject, $messagetest, $headers);
    } else {
    }
    //
    //----------------------------------------------------------IPアドレス払出・返却申請 message
    //
    if (in_category('ip_paying_return')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $ip_paying_return = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

操作:{$ip_action}<br>
IP種別:{$ip_kind}<br>
領域:{$area}<br>
IPv4 or IPv6:{$vfour_or_vsix}<br>
VLAN:{$vlan}<br>
個数:{$ip_number}<br>
プロジェクト名:{$projectname}<br>
用途:{$use}<br>
FQDN:{$fqdn}<br>
返却IP:{$return_ip}<br>
セカンドメール:{$secondmail}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $ip_paying_return, $headers);
    } else {
    }
    //
    //----------------------------------------------------------Cloverアカウント発行申請 message
    //
    if (in_category('cloveracountpassrequest')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $cloveracountpassrequest = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

プロジェクト名:{$projectname}<br>
アカウント名::{$accountname}<br>
unit1:{$unit_one}<br>
unit2:{$unit_two}<br><br>

サービス:{$service}<br>
リストチェック:{$list_chk}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $cloveracountpassrequest, $headers);
    } else {
    }
    //
    //----------------------------------------------------------FireWall設定申請 message
    //
    if (in_category('firewallconfiguration_application')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $firewallconfiguration_application = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

依頼区分:{$divide}<br>
設定区分:{$set_up_kind}<br>
CloverAccount:{$cloveraccount}<br>
Src to Dest:{$src_to_dest}<br>
Source IPv4:{$src_ipv_four}<br>
Source IPv4:{$src_ipv_four_bulk}<br>
Source IPv6:{$src_ipv_six}<br>
Source IPv6:{$src_ipv_six_bulk}<br>
Dest IPv4:{$dest_ipv_four}<br>
Dest IPv4:{$dest_ipv_four_bulk}<br>
Dest IPv6:{$dest_ipv_six}<br>
Dest IPv6:{$dest_ipv_six_bulk}<br>
DestProtocol:{$destprotocol}<br>
DestPort:{$destport}<br>
削除内容:{$delete}<br>
作業事前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $firewallconfiguration_application, $headers);
    } else {
    }
    //
    //----------------------------------------------------------GCPアカウント発行申請 message
    //
    if (in_category('gcpaccountissuance_application')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $gcpaccountissuance_application = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

プロジェクト名 :{$projectname}<br>
費用負担部署:{$costs_borne}<br>
担当者一覧 :{$staffs}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $gcpaccountissuance_application, $headers);
    } else {
    }
    //
    //----------------------------------------------------------NAT設定変更申請 message
    //
    if (in_category('nat_configuration_change_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $nat_configuration_change_request = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

Source IP Address:{$source_ip_address}<br>
FQDN:{$fqdn}<br>
領域:{$territory}<br>
作業事前連絡;{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $nat_configuration_change_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------SSL証明書申請 message
    //
    if (in_category('sslcertificate_application')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $sslcertificate_application = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

費用負担部署:{$costs_borne}<br>
作業区分選択(新規,更新,削除);{$work_description}<br>
証明書bit数:{$certificate_bit}<br>
リストチェック:{$certificate_ev}<br>
確認用URL:{$confirmation_url}<br>
ドメイン名:{$domain_name}<br>
証明書をインストールする機器(IP):{$machinery_ip}<br>
LB内パーティション:{$partition}<br>
署名アルゴリズム:{$algorithm}<br>
証明書期限更新連絡先:{$telnumber}<br>
作業事前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $sslcertificate_application, $headers);
    } else {
    }
    $commenttest = get_comment_text($comment_ID, $args);
    //
    //----------------------------------------------------------VPNアカウント発行・解除申請 message
    //
    if (in_category('vpn_account_iandc_application')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $vpn_account_iandc_application = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
追加コメントエディタから
{$contenttemp}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

テストメール用<br>

{$commenttest}



添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $vpn_account_iandc_application, $headers);
    } else {
    }
    //
    //----------------------------------------------------------その他依頼 message
    //
    if (in_category('other_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $other_request = <<<EOM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

作業詳細:{$work_detail}<br><br><br>



添付:<img src="{$file}" alt="" /><br>
備考:{$memo}<br>


EOM;
        wp_mail($mail_address, $subject, $other_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------受取依頼 message
    //
    if (in_category('receipt_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $receipt_request = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

納品数:{$delivery_number}<br>
納品予定日:{$delivery_date}<br>
搬入対象機器:{$machinery}<br>
搬入車両情報:{$vehicle}<br>
搬入機器の開梱有無:{$open}<br>
搬入機器の対処:{$cope}<br>
搬入業者連絡先:{$contact}<br>
搬入時連絡の方法:{$how_to}<br>
作業事前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $receipt_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------各種DC申請代行依頼 message
    //
    if (in_category('various_dc_aprequest')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $various_dc_aprequest = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
{$tels}
Cc:{$ccaddress}<br><br>

日時:{$date_and_time}<br>
作業内容:{$work}<br>
入館者:{$visitors}<br>
入館者ふりがな:{$visitors_furigana}<br>
連絡先:{$tel}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $various_dc_aprequest, $headers);
    } else {
    }
    //
    //----------------------------------------------------------各種お問い合わせ message
    //
    if (in_category('contactbox')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $contactbox = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

{$kinds}
{$vpn_devices}
{$vpn_versions}
{$vpn_number_macs}
{$vpn_number_windowss}
{$vpn_insidents}
{$other_insidents}

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}<br>


{$contenttemp}

EOS;
        wp_mail($mail_address, $subject, $contactbox, $headers);
    } else {
    }
    //
    //----------------------------------------------------------新ドメイン取得申請 message
    //
    if (in_category('new_domaina_application')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $new_domaina_application = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

ドメイン名:{$domain_name}<br>
NS管理:{$ns_management}<br>
DNSzoneオーナー:{$dns_zones_owner}<br>
サービス名:{$servicename}<br>
設定希望NS:{$name_server}<br>
費用負担部署:{$costs_borne}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $new_domaina_application, $headers);
    } else {
    }
    //
    //----------------------------------------------------------構内配線調整/回線工事の立会依頼 message
    //
    if (in_category('wrofpwadjustment_line_construction')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $wrofpwadjustment_line_construction = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

実施日時:{$date_the_time}<br>
業者名:{$trader_name}<br>
業者連絡先:{$suppliers_contact}<br>
作業詳細:{$working_details}<br>
作業事前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $wrofpwadjustment_line_construction, $headers);
    } else {
    }
    //
    //----------------------------------------------------------機器状況確認依頼 message
    //
    if (in_category('device_status_c_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $device_status_c_request = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

対象機器ラック:{$rack}<br>
対象機器Unit:{$unit}<br>
対象機器シリアル:{$serial}<br>
対象機器ホスト名:{$host_name}<br>
現在の状況:{$present_situation}<br>
作業事前連絡:{$advance_notice}<br>
実施希望期間:{$implementation_period}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $device_status_c_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------物理サーバ貸出・返却・保守依頼 message
    //
    if (in_category('pscandmaintenance_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $pscandmaintenance_request = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

作業区分:{$work_classification}<br>
タイプ:{$type}<br>
台数:{$number}<br>
Cloverオーナー:{$cloverowner}<br>
ホスト名:{$hostname}<br>
VLAN:{$vlan}<br>
Tftp Profile:{$tftp_profile}<br>
症状:{$insedent}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $pscandmaintenance_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------資産外機器の受取依頼 message
    //
    if (in_category('r_r_of_assetso_equipment')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $r_r_of_assetso_equipment = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

搬入対象機器:{$target_device}<br>
納品数:{$delivery_number}<br>
搬入車両情報:{$vehicle_information}<br>
搬入機器の開梱有無:{$unpacking}<br>
搬入機器の対処:{$deal}<br>
搬入業者連絡先:{$contact_number}<br>
搬入時連絡の方法:{$contact_way}<br>
作業前連絡の有無:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $r_r_of_assetso_equipment, $headers);
    } else {
    }
    //
    //----------------------------------------------------------障害対応依頼 message
    //
    if (in_category('failure_corresponding_request')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $failure_corresponding_request = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

対象機器ラック:{$subject_rack}<br>
対象機器Unit:{$unit}<br>
対象機器シリアル:{$serial}<br>
対象機器ホスト名:{$host_name}<br>
障害状況:{$present_situation}<br>
監視状況:{$watching}<br>
電源断許可:{$power}<br>
保守対応実施有無:{$maintain}<br>
作業前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $failure_corresponding_request, $headers);
    } else {
    }
    //
    //----------------------------------------------------------電源ON/OFF依頼 message
    //
    if (in_category('poweronoffrequest')) {
        $headers = array('Content-Type: text/html; charset=UTF-8');
        $poweronoffrequest = <<<EOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
※このメールには返信しないでください!<br>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

作業依頼内容URL<br>
[編集画面] {$adminurl}<br>
IDとPASSが必要です。<br><br>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br>
{$statusdiscription}<br>{$quickpostcom}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br><br>

社員番号:{$post_stuff}<br>
依頼期日:{$date}<br>
連絡先(電話番号):{$tel}<br>
Cc:{$ccaddress}<br><br>

対象機器ラック:{$subject_rack}<br>
対象機器Unit:{$unit}<br>
対象機器シリアル:{$serial}<br>
対象機器ホスト名:{$host_name}<br>
電源ON・OFF:{$power}<br>
作業前連絡:{$advance_notice}<br><br>

添付:<img src="{$file}" alt="" /><br>
備考:{$memo}


EOS;
        wp_mail($mail_address, $subject, $poweronoffrequest, $headers);
    } else {
    }
    // function updated_send_email( $post_id ) { の wrap
}
Ejemplo n.º 16
0
function post_views($post_id, $echo = true, $unit = ' views')
{
    $count_key = 'views';
    $views = get_post_custom($post_id);
    $views = intval($views['views'][0]);
    $post_views = intval(post_custom('views'));
    if ($views == '') {
        //return '';
        echo '0' . $unit;
    } else {
        if ($echo) {
            echo format_number($views) . $unit;
        } else {
            return format_number($views) . $unit;
        }
    }
}
Ejemplo n.º 17
0
        ?>
" class="materialboxed" alt = "間取り図" >
	</div>
<?php 
    }
    ?>

<h2>物件イメージ</h2>
<div class="estate-gallery">
	<?php 
    the_content();
    ?>
</div>

<?php 
    if (post_custom('l-map')) {
        ?>
<h2>地図</h2>
<div class="g−map">
<?php 
        $location = get_field('l-map');
        if (!empty($location)) {
            ?>
<div class="acf-map">
	<div class="marker" data-lat="<?php 
            echo $location['lat'];
            ?>
" data-lng="<?php 
            echo $location['lng'];
            ?>
"></div>
Ejemplo n.º 18
0
<div class="box">
<?php 
$myposts = get_posts('category_name=spa-jimbaran-uluwatu-pickup&posts_per_page=999');
/*SPA記事ピックアップリスティング*/
foreach ($myposts as $post) {
    ?>
  <?php 
    setup_postdata($post);
    ?>
    <div class="left">
    <a href="<?php 
    the_permalink();
    ?>
" target="_top"><?php 
    echo post_custom('cityThumb');
    ?>
</a>
  <a href="<?php 
    the_permalink();
    ?>
" target="_top"><?php 
    the_title();
    ?>
</a>
    </div>
<?php 
}
?>

<div class="list">
Ejemplo n.º 19
0
<?php 
    if (post_custom('tokuten1') && !(post_custom('tokuten_txt') && post_custom('tokuten2'))) {
        //if(is_single('padma-resort-bali-at-legian')):
        if (is_single_hotel()) {
        } else {
            $tokuten_names = array(1 => 'ハネムーン特典', 2 => 'バースデイ特典', 3 => 'お部屋アップグレード', 4 => 'レイトチェックアウト', 5 => 'スパ付き', 6 => 'ランチもしくはディナー付き');
            $tokutens1 = explode(',', post_custom('tokuten1'));
            $inner_html = '<div id="icon_box">';
            foreach ($tokutens1 as $tokuten1) {
                $inner_html .= sprintf('<div class="icon_list"><img src="/img/tokuten_icon%02d.gif" width="32" height="32" alt="%s"></div>', $tokuten1, $tokuten_names[$tokuten1]);
            }
            if (post_custom('tokuten_txt') && post_custom('tokuten2')) {
                $tokuten_text = post_custom('tokuten_txt');
                $inner_html .= sprintf('<br /><br /><br /><br />%s<br /><br />', $tokuten_text);
                $tokutens2 = explode(',', post_custom('tokuten2'));
                foreach ($tokutens2 as $tokuten2) {
                    $inner_html .= sprintf('<div class="icon_list"><img src="/img/tokuten_icon%02d.gif" width="32" height="32" alt="%s"></div>', $tokuten2, $tokuten_names[$tokuten2]);
                }
            }
            $inner_html .= '<br /><br /><br /><div class="icon_btn"><a href="/icon/icon2.html" target="window_name" onClick="disp(\'/icon/icon2.html\')">特典アイコンについて</a></div></div>';
            ?>
<div id="tokuten_hidden" style="display:none;"><?php 
            echo $inner_html;
            ?>
</div>
<script type="text/javascript">
$(function(){
  try{
    $("div#rooms_toku table tbody tr td").append($("div#tokuten_hidden").html());
  }catch(e){}
Ejemplo n.º 20
0
        ?>
" class="materialboxed" alt = "間取り図" >
 </div>
<?php 
    }
    ?>

<h2>物件イメージ</h2>
<div class="estate-gallery">
 <?php 
    the_content();
    ?>
</div>

<?php 
    if (post_custom('s-map')) {
        ?>
 <h2>地図</h2>
 <div class="g−map">
  <?php 
        $location = get_field('s-map');
        if (!empty($location)) {
            ?>
  <div class="acf-map">
   <div class="marker" data-lat="<?php 
            echo $location['lat'];
            ?>
" data-lng="<?php 
            echo $location['lng'];
            ?>
"></div>
Ejemplo n.º 21
0
						<p>職種:<?php 
        the_field('job_category_01');
        ?>
</p>
						<p><?php 
        if (get_field('job_incom_row')) {
            ?>
年収:<?php 
            echo post_custom('job_incom_row');
            ?>
万円<?php 
        }
        if (get_field('job_income_high')) {
            ?>
〜<?php 
            echo post_custom('job_income_high');
            ?>
万円<?php 
        }
        ?>
</p>
					</div>
					<p class="btn">
						<a href="<?php 
        the_permalink();
        ?>
">
							<img src="<?php 
        bloginfo('template_directory');
        ?>
/img/page/btn_entry.png" width="200" height="60" alt="通販転職 詳細をみる" />
Ejemplo n.º 22
0
function biz_vektor_seo_set_HeadKeywords()
{
    $options = biz_bektor_option_validate();
    $commonKeyWords = $options['commonKeyWords'];
    // get custom field
    $entryKeyWords = post_custom('metaKeyword');
    $keywords = array();
    if ($commonKeyWords) {
        $keywords[] = $commonKeyWords;
    }
    if ($entryKeyWords) {
        $keywords[] = $entryKeyWords;
    }
    $key = implode(',', $keywords);
    // print individual keywords
    if (!$key) {
        return;
    }
    echo '<meta name="keywords" content="' . $key . '" />' . "\n";
}
Ejemplo n.º 23
0
function get_imagefield($key)
{
    $imagefield = post_custom($key);
    $out['id'] = preg_replace('/(\\[)([0-9]+)(\\])(http.+)/', '$2', $imagefield);
    $out['url'] = preg_replace('/(\\[)([0-9]+)(\\])(http.+)/', '$4', $imagefield);
    return $out;
}
Ejemplo n.º 24
0
        ?>
      <?php 
        foreach ($myposts as $post) {
            ?>
      <?php 
            setup_postdata($post);
            ?>
      <div class="box"> <a href="<?php 
            the_permalink();
            ?>
" target="_top"><?php 
            echo post_custom('banner_img');
            ?>
</a>
        <p><?php 
            echo post_custom('banner_copy');
            ?>
</p>
      </div>
      <?php 
        }
        ?>
      <div class="more"><a href="/optional/">もっと見る</a></div>
    </div>
    <div class="side_f"></div>
  </div>
  <?php 
    }
    ?>
  <?php 
    if (is_page('select')) {
Ejemplo n.º 25
0
    foreach ($myposts as $post) {
        ?>
	<?php 
        setup_postdata($post);
        ?>
    <div class="left">
    <a href="<?php 
        the_permalink();
        ?>
" target="_top"><?php 
        $title = get_the_title();
        the_post_thumbnail(array(157, 157), array('alt' => $title, 'title' => $title));
        ?>
</a>
    <span><?php 
        echo post_custom('copy');
        ?>
</span>
	<a href="<?php 
        the_permalink();
        ?>
" target="_top"><?php 
        the_title();
        ?>
</a>
    </div>
<?php 
    }
    ?>
    </div>
</div><!-- id=villa -->
Ejemplo n.º 26
0
    }
    ?>
"><?php 
    if (post_custom('wpcf-topimage_url')) {
        ?>
<a href="<?php 
        echo post_custom('wpcf-topimage_url');
        ?>
">
<?php 
    }
    // 画像フィールドを表示
    if (types_render_field('topimage_image')) {
        echo types_render_field('topimage_image', array('size' => 'full', 'alt' => get_the_title()));
    }
    if (post_custom('wpcf-topimage_url')) {
        ?>
</a>
<?php 
    }
    ?>
</div>
<?php 
}
wp_reset_postdata();
?>
</div>

<a class="left carousel-control" href="#carousel_sample" data-slide="prev">
  <span class="glyphicon glyphicon-chevron-left"></span>
</a>
Ejemplo n.º 27
0
        if (post_custom('area')) {
            ?>
       <?php 
            echo post_custom("area");
            ?>
m<sup>2</sup>
      <?php 
        }
        ?>
     </p>
     <p>
      <?php 
        if (post_custom('house-rent')) {
            ?>
       ¥<?php 
            echo post_custom("house-rent");
            ?>
      <?php 
        }
        ?>
    </p>
    </a>

   <?php 
    }
    wp_reset_postdata();
    ?>
<!-- 忘れずにリセットする必要がある -->


  <?php 
Ejemplo n.º 28
0
            ?>
		<a class="rss" href="<?php 
            echo $author_feed_url;
            ?>
">RSS</a>
	</h2>
<?php 
        }
        // first_post
        ?>

	<ul>
		<li>
			<h3>
				<a href="<?php 
        echo post_custom("pressmark-url");
        ?>
"><?php 
        the_title();
        ?>
</a>
				<?php 
        // PDF to Scribd
        if (preg_match("/http:\\/\\/.*\\.pdf\$/", $url)) {
            echo ' - [<a href="http://www.scribd.com/vacuum?url=' . $url . '">Scribd</a>]';
        }
        ?>
			</h3>
			<h4>
				<span class="meta">
					<?php 
Ejemplo n.º 29
0
</a></div>
    <div class="list_name">
    <span><?php 
        echo post_custom('copy');
        ?>
</span>
	<a href="<?php 
        the_permalink();
        ?>
" target="_top"><?php 
        the_title();
        ?>
</a>
    </div>
	<p class="area"><?php 
        echo post_custom('area');
        ?>
</p>
	<?php 
        if (get_post_meta($post->ID, 'hotel_stars', true)) {
            ?>
    	<?php 
            if (get_post_meta($post->ID, 'hotel_stars', true) == '1') {
                ?>
        <p class="rank"><img src="/img/osusume_rank1_s.jpg" width="12" height="12" alt="1つ星"></p>
    	<?php 
            } elseif (get_post_meta($post->ID, 'hotel_stars', true) == '2') {
                ?>
        <p class="rank"><img src="/img/osusume_rank2_s.jpg" width="27" height="12" alt="2つ星"></p>
    	<?php 
            } elseif (get_post_meta($post->ID, 'hotel_stars', true) == '3') {
Ejemplo n.º 30
0
                  <?php 
    $posttags = get_the_tags();
    if ($posttags) {
        foreach ($posttags as $tag) {
            echo '<span class="' . $tag->slug . '">' . $tag->name . '</span>';
        }
    }
    the_title();
    ?>
<!-- /.title--></p>
                  <p class="description"><?php 
    echo post_custom('description');
    ?>
</p>
                  <p class="charge"><?php 
    echo post_custom('charge');
    ?>
</p>
                </a>
              </div><!-- /.box-->
            </div>
          <?php 
}
wp_reset_postdata();
?>
          <!--//ブログ-->
          </div>
        </section>
      </article>