123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?php
- include(get_stylesheet_directory().'/layouts/all_opt.php');
- $text_logo = iro_opt('text_logo');
- if (iro_opt('social_display_icon', '') === 'display_icon/remix_iconfont'): ?>
- <link rel="stylesheet" href="<?=iro_opt('vision_resource_basepath'); ?>display_icon/remix_iconfont/remix_social.css">
- <?php endif;
- $print_social_zone = function() use ($all_opt): void {
- // 微信
- if (iro_opt('wechat')): ?>
- <li class="wechat"><a href="#" title="WeChat">
- <?php if (iro_opt('social_display_icon') === 'display_icon/remix_iconfont'): ?>
- <i class="remix_social icon-wechat"></i>
- <?php else: ?>
- <img loading="lazy" src="<?= iro_opt('vision_resource_basepath').iro_opt('social_display_icon').'/' . 'wechat.webp' ?>" />
- <?php endif; ?>
- </a>
- <div class="wechatInner">
- <img class="wechat-img" style="height: max-content;width: max-content;" loading="lazy" src="<?= iro_opt('wechat', '') ?>" alt="WeChat">
- </div>
- </li>
- <?php
- endif;
- // 大体(all_opt.php)
- foreach ($all_opt as $key => $value):
- if (!empty($value['link'])):
- $img_url = $value['img'] ?? (iro_opt('vision_resource_basepath').iro_opt('social_display_icon').'/' . ($value['icon'] ?? $key) . '.webp');
- $title = $value['title'] ?? $key;
- ?>
- <li><a href="<?= $value['link']; ?>" target="_blank" class="social-<?= $value['class'] ?? $key ?>" title="<?= $title ?>">
- <?php if (iro_opt('social_display_icon') === 'display_icon/remix_iconfont' && $key !== 'socialdiy1' && $key !== 'socialdiy2'): ?>
- <i class="remix_social icon-<?= $key ?>"></i>
- <?php else: ?>
- <img alt="<?= $title ?>" loading="lazy" src="<?= $img_url ?>" />
- <?php endif; ?>
- </a></li>
- <?php
- endif;
- endforeach;
- // 邮箱
- if (iro_opt('email_name') && iro_opt('email_domain')): ?>
- <li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail">
- <?php if (iro_opt('social_display_icon') === 'display_icon/remix_iconfont'): ?>
- <i class="remix_social icon-mail"></i>
- <?php else: ?>
- <img loading="lazy" alt="E-mail" src="<?php echo iro_opt('vision_resource_basepath').iro_opt('social_display_icon').'/' . 'mail.webp'; ?>" />
- <?php endif; ?>
- </a></li>
- <?php
- endif;
- }
- ?>
- <div id="banner_wave_1"></div>
- <div id="banner_wave_2"></div>
- <figure id="centerbg" class="centerbg">
- <?php if (iro_opt('infor_bar')) { ?>
- <div class="focusinfo">
- <?php if (isset($text_logo['text']) && iro_opt('text_logo_options', 'true')) : ?>
- <h1 class="center-text glitch is-glitching Ubuntu-font" data-text="<?=$text_logo['text']; ?>">
- <?php echo $text_logo['text']; ?></h1>
- <?php else : ?>
- <div class="header-tou"><a href="<?php bloginfo('url'); ?>"><img alt="avatar" src="<?=iro_opt('personal_avatar', '') ?: iro_opt('vision_resource_basepath','https://s.nmxc.ltd/sakurairo_vision/@2.7/').'series/avatar.webp'?>"></a>
- </div>
- <?php endif; ?>
- <div class="header-info">
- <!-- 首页一言打字效果 -->
- <?php if (iro_opt('signature_typing', 'true')) : ?>
- <?php if (iro_opt('signature_typing_marks', 'true')) : ?><i class="fa-solid fa-quote-left"></i><?php endif; ?>
- <span class="element"><?=iro_opt('signature_typing_placeholder','疯狂造句中......')?></span>
- <?php if (iro_opt('signature_typing_marks', 'true')) : ?><i class="fa-solid fa-quote-right"></i><?php endif; ?>
- <span class="element"></span>
- <script type="application/json" id="typed-js-initial">
- <?= iro_opt('signature_typing_json', ''); ?>
- </script>
- <!-- var typed = new Typed('.element', {
- strings: ["给时光以生命,给岁月以文明", ], //输入内容, 支持html标签
- typeSpeed: 140, //打字速度
- backSpeed: 50, //回退速度
- loop: false, //是否循环
- loopCount: Infinity,
- showCursor: true //是否开启光标
- }); -->
- <?php endif; ?>
- <p><?php echo iro_opt('signature_text', 'Hi, Mashiro?'); ?></p>
- <?php if (iro_opt('infor_bar_style') === 'v2') : ?>
- <div class="top-social_v2">
- <?php $print_social_zone(); ?>
- </div>
- <?php endif; ?>
- </div>
- <?php if (iro_opt('infor_bar_style') === 'v1') : ?>
- <div class="top-social">
- <?php $print_social_zone(); ?>
- </div>
- <?php endif; ?>
- <?php if (iro_opt('cover_random_graphs_switch', 'true')): ?>
- <div class="bg-switch">
- <li id="bg-next" style="display: flex; gap: 6px; align-items: center; letter-spacing: 1px;"><i class="fa-solid fa-dice"></i><?= __('Change', 'sakurairo') ?></li>
- </div>
- <?php endif; ?>
- </div>
- <?php } ?>
- </figure>
- <?php
- echo bgvideo(); //BGVideo
- ?>
- <!-- 首页下拉箭头 -->
- <?php if (iro_opt('drop_down_arrow', 'true')) : ?>
- <div class="headertop-down" onclick="headertop_down()"><span><svg t="1682342753354" class="homepage-downicon" viewBox="0 0 1843 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21355" width="80px" height="80px"><path d="M1221.06136021 284.43250057a100.69380037 100.69380037 0 0 1 130.90169466 153.0543795l-352.4275638 302.08090944a100.69380037 100.69380037 0 0 1-130.90169467 0L516.20574044 437.48688007A100.69380037 100.69380037 0 0 1 647.10792676 284.43250057L934.08439763 530.52766665l286.97696258-246.09516608z" fill="<?php echo iro_opt('drop_down_arrow_color'); ?>" p-id="21356"></path></svg></span></div>
- <?php endif; ?>
|