选择文件名文件大小最后修改时间操作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
をエスケープし、', esc_attr( $matches[1] ), esc_attr( $matches[2] ) ); return apply_filters( 'embed_gist', $embed, $matches, $attr, $url, $rawattr ); } endif; /////////////////////////////////////// // Etag と Last-modified ヘッダを使って動的コンテンツでもブラウザキャッシュさせる /////////////////////////////////////// //add_action( 'wp','header_last_modified_and_etag', 0 ); if ( !function_exists( 'header_last_modified_and_etag' ) ): function header_last_modified_and_etag() { if (is_singular() && !is_plugin_fourm_page()) { $modified_time = get_the_modified_time( 'U' ); $amp = is_amp() ? '1' : '0'; // Last-modified と ETag 生成 $last_modified = gmdate( "D, d M Y H:i:s T", $modified_time ); $etag = md5( $last_modified . get_permalink() . $amp ); // ヘッダ送信 header( "Last-Modified: {$last_modified}" ); header( "Etag: {$etag}" ); // リクエストヘッダの If-Modified-Since と If-None-Match を取得 $if_modified_since = filter_input( INPUT_SERVER, 'HTTP_IF_MODIFIED_SINCE' ); $if_none_match = filter_input( INPUT_SERVER, 'HTTP_IF_NONE_MATCH' ); // Last-modified または Etag と一致していたら 304 Not Modified ヘッダを返して終了 if ( $if_modified_since === $last_modified || $if_none_match === $etag ) { header( 'HTTP', true, 304 ); exit; } } } endif; //ウィジェット表示タイプのオプション配列 if ( !function_exists( 'get_widget_entry_type_options' ) ): function get_widget_entry_type_options(){ return array( ET_DEFAULT => get_image_preview_tag('https://wp-cocoon.com/wp-content/uploads/2019/07/default.png', __( '通常のカード表示', THEME_NAME ), 360). __( 'デフォルト', THEME_NAME ), ET_BORDER_PARTITION => get_image_preview_tag('https://wp-cocoon.com/wp-content/uploads/2019/07/border_partition.png', __( 'カードの上下に破線の区切り線が表示されます。', THEME_NAME ), 360). __( 'カードの上下に区切り線を入れる', THEME_NAME ).__( '(縦並び表示のみ)', THEME_NAME ), ET_BORDER_SQUARE => get_image_preview_tag('https://wp-cocoon.com/wp-content/uploads/2019/07/border_square.png', __( 'カード自体を罫線で囲みます。', THEME_NAME ), 360). __( 'カードに枠線を表示する', THEME_NAME ), ET_LARGE_THUMB => get_image_preview_tag('https://wp-cocoon.com/wp-content/uploads/2019/07/large_thumb-1.jpg', __( '大きなサムネイル画像の下にタイトルを表示します。', THEME_NAME ), 360). __( '大きなサムネイル表示にする', THEME_NAME ), ET_LARGE_THUMB_ON => get_image_preview_tag('https://wp-cocoon.com/wp-content/uploads/2019/07/large_thumb_on-1.jpg', __( '大きなサムネイル画像の下段にタイトルを重ねます。', THEME_NAME ), 360). __( '大きなサムネイルにタイトルを重ねて表示する', THEME_NAME ), ); } endif; //ウィジェット表示スタイルのオプション配列 if ( !function_exists( 'get_widget_style_options' ) ): function get_widget_style_options(){ return array( 'image_only' => get_image_preview_tag('https://im-cocoon.net/wp-content/uploads/rcs_image_only.png').__( '画像のみ', THEME_NAME ), RC_DEFAULT => get_image_preview_tag('https://im-cocoon.net/wp-content/uploads/rcs_center_white_title.png').__( '画像中央に白文字タイトル', THEME_NAME ), 'center_label_title' => get_image_preview_tag('https://im-cocoon.net/wp-content/uploads/rcs_center_label_title.png').__( '画像中央にラベルでタイトル', THEME_NAME ), ET_LARGE_THUMB_ON => get_image_preview_tag('https://im-cocoon.net/wp-content/uploads/rcs_large_thumb_on.png').__( '画像下段を黒背景にしタイトルを重ねる', THEME_NAME ), ); } endif; //カスタム投稿動作確認用 if (DEBUG_MODE) { add_action( 'init', 'debug_create_post_type' ); function debug_create_post_type() { register_post_type( 'news', array( // 投稿タイプ名の定義 'labels' => [ 'name' => 'ニュース', // 管理画面上で表示する投稿タイプ名 'singular_name' => 'news', // カスタム投稿の識別名 ], 'public' => true, // 投稿タイプをpublicにするか 'has_archive' => false, // アーカイブ機能ON/OFF 'menu_position' => 5, // 管理画面上での配置場所 'show_in_rest' => true, // 5系から出てきた新エディタ「Gutenberg」を有効にする 'supports' => array('title','editor','thumbnail'), ) ); } }