Skip to content

Commit

Permalink
update new default theme
Browse files Browse the repository at this point in the history
test smarty logic and fix warnings
  • Loading branch information
gigamaster committed May 1, 2024
1 parent 51e7737 commit 4f5f9ae
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 32 deletions.
2 changes: 1 addition & 1 deletion html/themes/xcl_default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ article h3 :is(span.badge){font-size: 14px;vertical-align: baseline;}

/* TAGS */
article>footer>.content-tags {
background : var(--pico-code-background-color);
/* background : var(--pico-code-background-color); */
color : var(--pico-code-value-color);
padding-top : 1rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h5>

<{if $plugin_params.order !='asc'}>
<{* ----- begin simple comment form *}>
<{if $forum.can_post && !$plugin_params.no_form}>
<{if $forum.can_post && !isset($plugin_params.no_form)}>
<{include file="db:`$mydirname`_inc_post_form_quick.html" h2_title=$smarty.const._MD_D3FORUM_POSTASCOMMENTTOP quick_form_mode="sametopic"}>
<{/if}>
<{* /end simple comment form *}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<input type="hidden" name="mode" id="mode" value="<{$quick_form_mode|default:'sametopic'}>">
<input type="hidden" name="pid" id="pid" value="<{$post.id|default:''}>">
<input type="hidden" name="topic_id" id="topic_id" value="<{$topic.id|default:''}>">
<input type="hidden" name="forum_id" id="forum_id" value="<{$forum.id}>">
<input type="hidden" name="forum_id" id="forum_id" value="<{$forum.id|default:''}>">
<{if isset($external_link_id)}>
<input type="hidden" name="external_link_id" id="external_link_id" value="<{$external_link_id|escape}>">
<{/if}>
Expand Down
8 changes: 4 additions & 4 deletions html/themes/xcl_default/templates/d3forum/main_post_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<nav aria-label="breadcrumb">
<ul>
<li><a href="<{$xoops_url}>/">
<img class="svg home" src="<{$xoops_url}>/images/icons/home.svg" alt=""></a>
<img class="svg" src="<{$xoops_url}>/images/icons/home.svg" width="1em" height="1em" alt="home"></a>
<li><a href="<{$mod_url}>/index.php">
<img class="svg forum" src="<{$xoops_url}>/images/icons/forum_0.svg" alt=""> <{$smarty.const._MD_D3FORUM_TOP}></a>
<img class="svg" src="<{$xoops_url}>/images/icons/forum_0.svg" width="1em" height="1em" alt="forum"> <{$smarty.const._MD_D3FORUM_TOP}></a>
<li><a href="<{$mod_url}>/index.php?cat_id=<{$category.id}>"><{$category.title}></a>
<li><a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>"><{$forum.title}></a>
<{if $topic.id}>
<{if isset($topic.id)}>
<li><a aria-current="page" href="<{$mod_url}>/index.php?topic_id=<{$topic.id}>"><{$topic.title}></a>
<{/if}>
</ul>
Expand All @@ -24,7 +24,7 @@
<input type="hidden" name="post_id" id="post_id" value="<{$post_id}>">
<input type="hidden" name="topic_id" id="topic_id" value="<{$topic_id}>">
<input type="hidden" name="forum_id" id="forum_id" value="<{$forum.id}>">
<input type="hidden" name="external_link_id" id="external_link_id" value="<{$external_link_id|default:''|escape}>">
<input type="hidden" name="external_link_id" id="external_link_id" value="<{$external_link_id|escape}>">
<input type="hidden" name="reference_quote" id="reference_quote" value="<{$reference_quote}>">

<article id="main-post-form">
Expand Down
28 changes: 14 additions & 14 deletions html/themes/xcl_default/templates/pico/main_content_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ <h2 class="pico_title"><{$smarty.const._PREVIEW}></h2>
<label for="ei_image">
Image
<input type="file" id="ei_image" name="ei_image">
<input type="hidden" name="ef_image" value="<{$content.ef.image|escape}>">
<{if $content.ef.image}>
<input type="hidden" name="ef_image" value="<{$content.ef.image|default:''|escape}>">
<{if isset($content.ef.image)}>
<a href="<{$xoops_url}>/<{$mod_config.extra_images_dir}>/image_0_<{$content.ef.image|escape}>">
<img src="<{$xoops_url}>/<{$mod_config.extra_images_dir}>/image_1_<{$content.ef.image|escape}>">
<img src="<{$xoops_url}>/<{$mod_config.extra_images_dir}>/image_1_<{$content.ef.image|escape|default:''}>">
</a>
<{/if}>
</label>
Expand Down Expand Up @@ -159,7 +159,7 @@ <h2 class="pico_title"><{$smarty.const._PREVIEW}></h2>
My photo
<input type="file" id="ei_myphoto" name="ei_myphoto">
<input type="hidden" name="ef_myphoto" value="<{$content.ef.myphoto|escape}>">
<{if $content.ef.myphoto}>
<{if isset($content.ef.myphoto)}>
<a href="<{$xoops_url}>/<{$mod_config.extra_images_dir}>/myphoto_0_<{$content.ef.myphoto|escape}>">
<img src="<{$xoops_url}>/<{$mod_config.extra_images_dir}>/myphoto_1_<{$content.ef.myphoto|escape}>"></a>
<{/if}>
Expand Down Expand Up @@ -343,7 +343,7 @@ <h5>
<span>Order</span>
</label>
<{foreach from=$content.filter_infos key="filter_name" item="filter"}>
<{if $filter.title}>
<{if isset($filter.title)}>
<{if $editor == "html" && !$content.body && $content.filter_infos[$filter_name].disableOnHtml}>
<{assign var=check value=0}>
<{else}>
Expand Down Expand Up @@ -388,7 +388,7 @@ <h5>
<{* ------- CONTENT TIME *}>

<{if $category.isadminormod}>
<{if $content.specify_created_time}>
<{if isset($content.specify_created_time)}>
<{assign var="specify_created_time_checked" value="checked='checked'"}>
<{else}>
<{assign var="created_time_style" value="display:none;"}>
Expand All @@ -399,7 +399,7 @@ <h5>
name="specify_created_time"
id="specify_created_time"
value="1"
onclick="if(this.checked){xoopsGetElementById('created_time').style.display='inline';}else{xoopsGetElementById('created_time').style.display='none'}" <{$specify_created_time_checked}>>
onclick="if(this.checked){xoopsGetElementById('created_time').style.display='inline';}else{xoopsGetElementById('created_time').style.display='none'}" <{$specify_created_time_checked|default:''}>>
<span><{$smarty.const._MD_PICO_LABEL_SPECIFY_DATETIME}> <small><{$content_base.created_time_formatted}></small></span>

</label>
Expand All @@ -408,7 +408,7 @@ <h5>
id="created_time"
size="24"
value="<{$content.created_time_formatted|escape}>"
style="<{$created_time_style}>">
style="<{$created_time_style|default:''}>">
</fieldset>
<{/if}>

Expand All @@ -424,7 +424,7 @@ <h5>
<{/if}>

<{if $category.isadminormod}>
<{if $content.specify_modified_time}>
<{if isset($content.specify_modified_time)}>
<{assign var="specify_modified_time_checked" value="checked='checked'"}>
<{else}>
<{assign var="modified_time_style" value="display:none;"}>
Expand All @@ -435,7 +435,7 @@ <h5>
name="specify_modified_time"
id="specify_modified_time"
value="1"
onclick="if(this.checked){xoopsGetElementById('modified_time').style.display='inline';}else{xoopsGetElementById('modified_time').style.display='none'}" <{$specify_modified_time_checked}>>
onclick="if(this.checked){xoopsGetElementById('modified_time').style.display='inline';}else{xoopsGetElementById('modified_time').style.display='none'}" <{$specify_modified_time_checked|default:''}>>

<span><{$smarty.const._MD_PICO_LABEL_SPECIFY_DATETIME}> <small><{$content_base.modified_time_formatted}></small></span>
</label>
Expand All @@ -444,13 +444,13 @@ <h5>
id="modified_time"
size="24"
value="<{$content.modified_time_formatted|escape}>"
style="<{$modified_time_style}> ">
style="<{$modified_time_style|default:''}>">
</fieldset>
<{/if}>

<{if $category.isadminormod}>
<h5><{$smarty.const._MD_PICO_EXPIRING}></h5>
<{if $content.specify_expiring_time}>
<{if isset($content.specify_expiring_time)}>
<{assign var="specify_expiring_time_checked" value="checked='checked'"}>
<{else}>
<{assign var="expiring_time_style" value="display:none;"}>
Expand All @@ -460,7 +460,7 @@ <h5><{$smarty.const._MD_PICO_EXPIRING}></h5>
name="specify_expiring_time"
id="specify_expiring_time"
value="1"
onclick="if(this.checked){xoopsGetElementById('expiring_time').style.display='inline';}else{xoopsGetElementById('expiring_time').style.display='none'}" <{$specify_expiring_time_checked}>>
onclick="if(this.checked){xoopsGetElementById('expiring_time').style.display='inline';}else{xoopsGetElementById('expiring_time').style.display='none'}" <{$specify_expiring_time_checked|default:''}>>

<span><{$smarty.const._MD_PICO_LABEL_SPECIFY_DATETIME}> <small><{$content_base.expiring_time_formatted}></small></span>
</label>
Expand All @@ -469,7 +469,7 @@ <h5><{$smarty.const._MD_PICO_EXPIRING}></h5>
name="expiring_time"
id="expiring_time" size="24"
value="<{$content.expiring_time_formatted|escape}>"
style="<{$expiring_time_style}>">
style="<{$expiring_time_style|default:''}>">

<{/if}>

Expand Down
2 changes: 1 addition & 1 deletion html/themes/xcl_default/templates/user/user_default.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2><{$smarty.const._LOGIN}></h2>

<label for="uname" aria-label="<{$smarty.const._USERNAME}>">

<input type="text" name="uname" id="uname" placeholder="<{$smarty.const._USERNAME}>" value="<{$usercookie}>">
<input type="text" name="uname" id="uname" placeholder="<{$smarty.const._USERNAME}>" value="<{$usercookie|default:''}>">
<{* xoops_input type=text name=uname size=25 maxlength=25 value=$usercookie *}>
</label>

Expand Down
15 changes: 5 additions & 10 deletions html/themes/xcl_default/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@
<{* ----- Favicon SVG located in the root directory ----- *}>
<link rel="icon" href="<{$xoops_url}>/favicon.svg" type="image/svg+xml">

<{* ----- Favicon.png root images' directory
<link rel="alternate icon" href="<{$xoops_url}>/images/favicon.png" type="image/png">

<!-- Mobile App Manifest -->
<!-- <link rel="manifest" href="<{$xoops_imageurl}>site.webmanifest">-->
----- *}>
<!-- <link rel="manifest" href="<{$xoops_imageurl}>site.webmanifest">-->

<{* ----- CSS - PicoCSS ----- *}>
<link rel="preload" href="<{$xoops_imageurl}>css/pico.amber.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
Expand Down Expand Up @@ -143,7 +139,7 @@

<{if $xoops_showrblock==1}>
<aside id="block-right">
<nav class="is-sticky-above-lg ">
<nav class="block-sticky">
<{include file="$xoops_theme/component/block-right.html"}>

<details open="">
Expand Down Expand Up @@ -177,7 +173,7 @@
<{if !empty($xoops_clblocks)}>
<div>
<{foreach item=block from=$xoops_clblocks}>
<{if !$block.title|strstr:"admin"}>
<{if !$block.title|strstr:"admin" && !$block.title|strstr:"top" && !$block.title|strstr:"hero"}>
<article class="block-center-left b-<{$block.weight}>">
<h4 data-layout="row center-justify" class="block-title">
<{if $xoops_isadmin}>
Expand All @@ -198,7 +194,7 @@ <h4 data-layout="row center-justify" class="block-title">
<{if !empty($xoops_ccblocks)}>
<div>
<{foreach item=block from=$xoops_ccblocks}>
<{if !$block.title|strstr:"admin"}>
<{if !$block.title|strstr:"admin" && !$block.title|strstr:"top" && !$block.title|strstr:"hero"}>
<article class="block-center-center b-<{$block.weight}>">
<h4 data-layout="row center-justify" class="block-title">
<{if $xoops_isadmin}>
Expand All @@ -219,7 +215,7 @@ <h4 data-layout="row center-justify" class="block-title">
<{if !empty($xoops_crblocks)}>
<div>
<{foreach item=block from=$xoops_crblocks}>
<{if !$block.title|strstr:"admin"}>
<{if !$block.title|strstr:"admin" && !$block.title|strstr:"top" && !$block.title|strstr:"hero"}>
<article class="block-center-right b-<{$block.weight}>">
<h4 data-layout="row center-justify" class="block-title">
<{if $xoops_isadmin}>
Expand Down Expand Up @@ -287,4 +283,3 @@ <h4 data-layout="row center-justify" class="block-title">
<script async src="<{$xoops_url}>/common/prismjs/prism.js"></script>
</body>
</html>

0 comments on commit 4f5f9ae

Please sign in to comment.