选择文件名文件大小最后修改时间操作
[📄] 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
查看 head-pwa.php - 文件管理器
👁 查看:head-pwa.php
路径:/virtual/emerald/public_html/emerald.jpn.com/wp2020/wp-content/themes/cocoon-master/tmp/head-pwa.php
大小:2.31 KB · 修改:2026-06-11 17:11:56 · 权限:0747 · 可写
<?php //PWAタグ
/**
 * Cocoon WordPress Theme
 * @author: yhira
 * @link: https://wp-cocoon.com/
 * @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
 */
if ( !defined( 'ABSPATH' ) ) exit; ?>
<?php
// _v(get_home_url());
// _v(get_site_url());
// _v(ABSPATH);
// _v(get_abs_home_path());
// _v(get_abs_home_path());
// _v(file_exists(get_theme_pwa_manifest_json_file()));
// _v((get_theme_pwa_manifest_json_file()));
// _v(file_exists(get_theme_pwa_service_worker_js_file()));
// _v((get_theme_pwa_service_worker_js_file()));
?>
<?php if (
  !is_amp() &&
  !is_admin() &&
  !is_plugin_fourm_page() &&
  is_ssl() &&
	is_pwa_enable() &&
	(!is_user_logged_in() || is_pwa_admin_enable()) &&
  file_exists(get_theme_pwa_manifest_json_file()) &&
  file_exists(get_theme_pwa_service_worker_js_file())): ?>
<!-- PWA -->
<link rel="manifest" href="<?php echo get_theme_pwa_manifest_json_url(); ?>">
<script>
	document.addEventListener('DOMContentLoaded', function() {
		if ('serviceWorker' in navigator) {
			window.addEventListener('load', function() {
				navigator.serviceWorker.register('<?php echo get_theme_pwa_service_worker_js_url(); ?>').then(function(registration) {
					// Registration was successful
					console.log('ServiceWorker registration successful with scope: ', registration.scope);
					registration.onupdatefound = function() {
						registration.update();
						console.log('ServiceWorker update successful');
					}
				}, function(err) {
					// registration failed
					console.log('ServiceWorker registration failed: ', err);
				});
			});
		}
	}, false);
</script>
<!-- manifest.jsonのtheme_colorと同じ色を指定します -->
<meta name="theme-color" content="<?php echo get_pwa_theme_color(); ?>"/>

<!-- 以下はiOS用のコードです -->
<!-- ホーム画面に表示されるアプリ名 -->
<meta name="apple-mobile-web-app-title" content="<?php echo esc_attr(mb_substr(get_pwa_short_name(), 0, 12)); ?>">
<!-- URLバーの非表示 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- ステータスバーのスタイル(default / black / black-translucent) -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- アイコンの指定 -->
<link rel="apple-touch-icon-precomposed" href="<?php echo get_site_icon_url_l(); ?>" sizes="512x512">
<!-- /PWA -->
<?php endif; ?>
404 NOT FOUND | 人工芝販売・施工【大阪・近畿】人工芝エメラルド

404 NOT FOUND

404 Not Found

お探しのページは見つかりませんでした。