选择文件名文件大小最后修改时间操作
[📄] 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
]+?('.$img_reg.')[\'\"][^>]*?)>([\s\w\W\d]+?)<\/a>/i',//Aタグの正規表現 '${3}',//置換する $content );//投稿本文(置換する文章) $content = apply_filters('add_lightbox_property', $content); return $content; } endif; //画像リンクのAタグをlityに対応するように付け替え //http://sorgalla.com/lity/ if ( is_lity_effect_enable() ) { add_filter( 'the_content', 'add_lity_property', 11 ); add_filter( 'the_category_tag_content', 'add_lity_property', 11 ); } if ( !function_exists( 'add_lity_property' ) ): function add_lity_property( $content ) { //プレビューやフィードで表示しない if( is_feed() ) return $content; //既に適用させているところは処理しない if ( is_lightbox_plugin_exist($content) ) return $content; //画像用の正規表現 $img_reg = IMAGE_RECOGNITION_EXTENSIONS_REG; //YouTube用の正規表現 $youtube_reg = '\/\/www\.youtube\.com\/watch\?v=[^"]+'; //Viemo用の正規表現 $viemo_reg = '\/\/vimeo\.com\/[^"]+'; //Googleマップ用の正規表現 $google_map_reg = '\\/\/[mapsw]+\.google\.[^\/]+?\/maps\?q=[^"]+'; //Aタグを正規表現で置換 $content = preg_replace( '/]+?('.$img_reg.'|'.$youtube_reg.'|'.$viemo_reg.'|'.$google_map_reg.')[\'\"][^>]*?)>([\s\w\W\d]+?)<\/a>/i',//Aタグの正規表現 '${3}',//置換する $content );//投稿本文(置換する文章) return $content; } endif; //thickboxを呼び出さない add_action( 'wp_enqueue_scripts', 'deregister_thickbox_files' ); if ( !function_exists( 'deregister_thickbox_files' ) ): function deregister_thickbox_files() { wp_dequeue_style( 'thickbox' ); wp_dequeue_script( 'thickbox' ); } endif; //WordPressサービスを用いてサイトのスクリーンショットの取得 if ( !function_exists( 'get_site_screenshot_url' ) ): function get_site_screenshot_url($url){ $mshot = 'https://s.wordpress.com/mshots/v1/'; return $mshot.urlencode($url).'?w='.THUMB160WIDTH.'&h='.THUMB160HEIGHT; } endif; //画像リンクのAタグをSpotlightに対応するように付け替え //https://github.com/nextapps-de/spotlight if ( is_spotlight_effect_enable() ) { add_filter( 'the_content', 'add_spotlight_property', 11 ); add_filter( 'the_category_tag_content', 'add_spotlight_property', 11 ); } if ( !function_exists( 'add_spotlight_property' ) ): function add_spotlight_property( $content ) { //プレビューやフィードで表示しない if( is_feed() ) return $content; //既に適用させているところは処理しない if ( is_lightbox_plugin_exist($content) ) return $content; //画像用の正規表現 $img_reg = IMAGE_RECOGNITION_EXTENSIONS_REG; $res = preg_match_all('/(]+?('.$img_reg.')[\'\"][^>]*?)>)([\s\w\W\d]+?)<\/a>/i', $content, $m); if ($res && isset($m[1])) { //$alls = $m[0]; $a_starts = $m[1]; $i = 0; $count = 1; //class="spotlight"の追加 foreach ($a_starts as $a_start) { if (includes_string($a_start, ' class="')) { if (preg_match('/ class="(.+?)"/i', $a_start, $n)) { //class内のクラス名の分解 $classes = explode(' ', $n[1]); //spotlightが含まれているか if ( !in_array('spotlight', $classes) ) { $replaced_a = str_replace(' class="', ' class="spotlight ', $a_start, $count); $content = str_replace($a_start, $replaced_a, $content, $count); } } } else { //classがない場合はclass="spotlight"を追加 $replaced_a = str_replace('