Corethink Theme Development (eight) use H-ui to develop blog topics before and after users log in

Source: Internet
Author: User
Thank H-ui, thank corethink!



After login

Login Form

Want to do login after the drop-down menu, really do not come out, it is generally shown ...
Entire breadcrumb navigation here, the module is traversed first, and is the module that allows the foreground to display, after that is to determine whether the user has logged in, has logged in, the display of the personal center, or display the login and registration button.
Code:

<navclass="breadcrumb"><divclass="container"><spanclass="C-gray en"><iclass="Hui-iconfont"> 
     i
 ><ahref="#">Hello, Welcome to {: C (' Web_site_title ')}! 
     a
 >
    
 <opencmf:nav_listname="vo"pid="0"><atarget="{$vo. Target}"href="{$vo. href}"><span>{$vo. Title} 
     span
 > 
     a
 > 
     opencmf:nav_list
 >
    
  
     span
 ><presentname="_user_auth"><ahref="#" ><imgclass="Round"src="{$_user_auth.avatar|get_cover= ' avatar '}"  Height="30px"width="30px"alt="{$_user_auth.nickname}" /><span>{$_user_auth.nickname}<span>{$_new_message} 
     span
 >
    
  
     span
 ><spanclass="Caret"> 
     span
 > 
     a
 ><ahref="{: U (' User/index/home ', Array (' uid ' = ' $_user_auth[' uid '), True, True)}" ><spanclass="label label-secondary radius">Personal homepage 
     span
 > 
     a
 ><volistname="_user_nav_main"id="Vo_nav"> <ahref="{: U ($vo _nav[' url '], NULL, True, True)}"class="{$ Vo_nav.class} "><spanclass="label label-secondary radius">{$vo _nav.title} 
     span
 > 
     a
 > 
     volist
 ><ahref="{: U (' user/user/logout ', NULL, True, True)}"class="Ajax-get "><spanclass="label Label-danger radius">Log Off Login 
     span
 > 
     a
 ><else/><aclass="btn btn-success-outline radius"data-toggle=" Modal "href=" #register-modal ">Registered 
     a
 ><aclass="btn btn-danger-outline radius"data-toggle="Modal" href="#login-modal">Login 
     a
 > 
     Present
 > 
     Div
 > 
     nav
 >

Blog/home/public/layout.html

<html><head><metacharset="Utf-8"><metaname="renderer"content="Webkit|ie-comp|ie-stand" ><metahttp-equiv="x-ua-compatible"content="Ie=edge"> <metaname="viewport"content="Width=device-width, Initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no "/><metahttp-equiv="Cache-control"content="No-siteapp" />
    
 <linkrel="stylesheet"type="text/css"href ="__home_css__/h-ui.min.css"/><linkrel="stylesheet"type="text/css"href ="__home_libs__/hui-iconfont/1.0.7/iconfont.css"/><linkrel="stylesheet"type="text/css"href="__ Home_libs__/icheck/icheck.css "/><linkrel="stylesheet"type="text/css"href ="__home_css__/style.css"/>
    
 <blockname="title"><title>{: C (' Web_site_title ')} 
     title
 > 
     Block
 ><metaname= "keywords"content="keywords, 5 or so, single 8 Chinese characters or less" ><metaname= "description"content="Site description, the number of words as far as possible empty in 80 kanji, 160 characters or less!" "> 
     Head
 ><body><divclass="Clearfix hook hook-page-header">{: Hook (' PageHeader ')}
    
  
     Div
 >
    
 <headerclass="Navbar-wrapper"><divclass="NavBar navbar-black navbar-fixed-top"><divclass="Container cl"><aclass="logo navbar-logo hidden-xs"href="/abouthui.shtml" >{: C (' Web_site_title ')} 
     a
 ><aclass="logo navbar-logo-m visible-xs"href="/ Abouthui.shtml ">H-ui 
     a
 ><spanclass="logo navbar-slogan hidden-xs">{: C (' Web_site_slogan ')} 
     span
 ><aaria-hidden="false"class="Nav-toggle hui-iconfont Visible-xs "href=" javascript:; " > 
     a
 ><navclass="nav navbar-nav nav-collapse"role="Navigation"  ID="Hui-navbar"><ulclass="cl"><li><ahref="{: C (' Home_Page ')}">Home 
     a
 > 
     Li
 ><cms:category_listname="vo"pid="0"Group ="1"><php>if ($vo [' _child ']): 
     PHP
 ><liclass="DropDown dropdown_hover"><ahref="{$vo. href}"class="dropdown_a"data-toggle= "Dropdown" Role="button">{$vo. Title}<spanclass="Caret"> 
     span
 > 
     a
 ><ulclass="dropdown-menu menu radius Box-shadow"><volistname="Vo._child"id="Vo1"><li><ahref="{$vo 1.href}">{$vo 1.title} 
     a
 > 
     Li
 > 
     volist
 > 
     ul
 > 
     Li
 ><php>Else 
     PHP
 ><li><ahref="{$vo. href}"><span>{$vo. Title} 
     span
 > 
     a
 > 
     Li
 ><php>endif 
     PHP
 > 
     cms:category_list
 > 
     ul
 > 
     nav
 ><navclass="Navbar-userbar hidden-xs"> 
     nav
 > 
     Div
 > 
     Div
 > 
     Header
 ><navclass="breadcrumb"><divclass="container"><spanclass="C-gray en"><iclass="Hui-iconfont"> 
     i
 ><ahref="#">Hello, Welcome to {: C (' Web_site_title ')}! 
     a
 >
    
 <opencmf:nav_listname="vo"pid="0"><atarget="{$vo. Target}"href="{$vo. href}"> <span>{$vo. Title} 
     span
 > 
     a
 > 
     opencmf:nav_list
 >
    
  
     span
 ><presentname="_user_auth"><ahref="#" ><imgclass="Round"src="{$_user_auth.avatar|get_cover= ' avatar '}"  Height="30px"width="30px"alt="{$_user_ Auth.nickname} " /><span>{$_user_auth.nickname}<span>{$_new_message} 
     span
 >
    
  
     span
 ><spanclass="Caret"> 
     span
 > 
     a
 ><ahref="{: U (' User/index/home ', Array (' uid ' = ' $_user_auth[' uid '), True, True)}" ><spanclass="label label-secondary radius">Personal homepage 
     span
 > 
     a
 ><volistname="_user_nav_main"id="Vo_nav"> <ahref="{: U ($vo _nav[' url '], NULL, True, True)}"class="{$ Vo_nav.class} "><spanclass="label label-secondary radius">{$vo _nav.title} 
     span
 > 
     a
 > 
     volist
 ><ahref="{: U (' user/user/logout ', NULL, True, True)}"class="Ajax-get "><spanclass="label Label-danger radius">Log Off Login 
     span
 > 
     a
 ><else/><aclass="btn btn-success-outline radius"data-toggle=" Modal "href=" #register-modal ">Registered 
     a
 ><aclass="btn btn-danger-outline radius"data-toggle="Modal" href="#login-modal">Login 
     a
 > 
     Present
 > 
     Div
 > 
     nav
 ><blockname="main"> 
     Block
 >
    
 <footerclass="Footer mt-20"><divclass="container"><p>{: C (' Web_site_copyright ')}<br><arel="nofollow"target="_blank"href="http// www.miitbeian.gov.cn/">{: C (' WEB_SITE_ICP ')} 
     a
 > 
     P
 > 
     Div
 > 
     Footer
 ><scripttype="text/javascript"src="__home_libs__/ Jquery/1.9.1/jquery.min.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/layer /2.1/layer.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/laypage/1.2/ Laypage.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/ My97datepicker/wdatepicker.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/ Icheck/jquery.icheck.min.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/ Bootstrap-switch/bootstrapswitch.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/validform/5.3.2 /validform.min.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/ Validform/5.3.2/passwordstrength-min.js "> 
     Script
 ><scripttype="text/javascript"src="__home_js__/h-ui.js "> 
     Script
 ><script> var navigation = Responsivenav ("Hui-navbar", {customtoggle: ". Nav-toggle"}); $ (function() { $ ('. Skin-minimal input '). ICheck ({checkboxclass:          ' Icheckbox-blue ', Radioclass: ' Iradio-blue ', Increasearea: ' 20% ' }); $ ("#demoform").    ValidForm ({tiptype: 2 }); }); 
     Script
 > 
     Block
 ><divclass="Clearfix hook hook-page-footer">{: Hook (' PageFooter ')}
    
  
     Div
 ><includefile="$_user_login_modal"/>
 
    <scripttype="text/javascript"src="__home_libs__/bootstrap-modal /2.2.4/bootstrap-modalmanager.js "> 
     Script
 ><scripttype="text/javascript"src="__home_libs__/ Bootstrap-modal/2.2.4/bootstrap-modal.js "> 
     Script
 ><blockname="Script"> 
     Block
 > 
     Body
 > 
     HTML
 >
    
 

Markdown really works.

:)

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the Corethink theme development (eight) use H-ui to develop blog topics before and after the user login, including the think, user login aspects, I hope to be interested in PHP tutorial friends helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.