xiuno教程:发贴时【添加附件】链接改为按钮样式


本教程需要修改2处文件,容易程度:非常容易。
1:打开模板下的【plugin/模板名称/overwrite/view/htm/post.htm】文件
如果上述文件不存在,则打开根目录下的【view/htm/post.htm】
找到<!--{hook post_message_after.htm}-->和<!--{hook post_submit_after.htm}-->之间的内容,修改为保存

    <div class="d-flex justify-content-between">
    	<div>
    		<label class="addattach btn btn-secondary mb-0" id="addattach">
    			<i class="icon-folder-open-o"></i> 
    				<?php echo lang('add_attach');?>
    				<input type="file"  multiple="multiple" class="d-none" />
    		</label>
    				<!--{hook post_bottom_right.htm}-->
    	</div>
    	<div class="text-right">
    		<button type="submit" class="btn btn-primary" id="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo $form_submit_txt;?> </button>
    				<!--{hook post_bottom_left.htm}-->
    	</div>
    </div>
    <div class="attachlist_parent">
    	<?php echo post_file_list_html($filelist, TRUE);?>							
    </div>​

2:打开模板下的【plugin/模板名称/overwrite/css/bootstrap-bbs.css】文件
有些模板可能自己重新定义了CSS文件名称,请自己查找一下
如果上述文件均不存在,则打开根目录下的【view/css/bootstrap-bbs.css】
找到下面内容并删除。

    .addattach:hover {
      font-weight: 800;
    }
免责声明:

此内容由本站网友原创或转载自网络公开渠道,仅供学习测试使用,禁止商用,著作权归原作者所有;
本站不对此内容担负法律责任,请于下载后24小时内删除;
如发现内容侵权或违规,请联系本站,我们将在12小时内及时做删除或屏蔽处理!邮箱:[email protected]


最新回复 (0)

您可以在 登录 or 注册 后,对此帖发表评论!

返回
发新帖
自助推广 自助积分购买 我的推广
展示位加载中...
赞助商家我要入驻