This is an example grunt file for compiling and minifying your css and js for bootstrap.
- bootstrap source files
- node.js
- Grunt
- read about LiveReload in grunt
<system.identityModel.services> | |
<federationConfiguration> | |
<cookieHandler requireSsl="false" /> | |
<serviceCertificate> | |
<certificateReference x509FindType="FindBySubjectName" findValue="localhost" storeLocation="LocalMachine" storeName="My" /> | |
</serviceCertificate> | |
</federationConfiguration> | |
</system.identityModel.services> |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="wordpress" patternSyntax="Wildcard"> | |
<match url="*"/> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> | |
</conditions> |
<?php | |
if (!is_blog_installed()) { return; } | |
$my_server_port = ((!empty ($_SERVER ['SERVER_PORT']) AND $_SERVER ['SERVER_PORT'] <> '80') ? (":" . $_SERVER ['SERVER_PORT']) : ''); | |
$my_server_name = (!empty ($my_server_port) ?($_SERVER['SERVER_NAME'] . $my_server_port) : $_SERVER['SERVER_NAME'] ); | |
if ('http://' . $my_server_name . '/wp' == get_option('home')) { | |
update_option('siteurl', 'http://' . $my_server_name . '/wp'); | |
update_option('home', 'http://' . $my_server_name); | |
update_option('upload_path', $_SERVER['DOCUMENT_ROOT'] . '\media'); |
This is an example grunt file for compiling and minifying your css and js for bootstrap.
/* | |
* Copyright (c) Brock Allen. All rights reserved. | |
* see license.txt | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; |
/* css hover version of .dropdown */ | |
.dropdown-hover { | |
.dropdown (); | |
&:hover { | |
> .dropdown-menu { | |
display: block; | |
} | |
} |
<div class="container"> | |
<ul class="main-Menu"> | |
@foreach (var item in MenuHelper.Top()) | |
{ | |
@ShowTree(item); | |
} | |
</ul> | |
</div> | |
@helper ShowTree(Kooboo.CMS.Sites.Models.Page item) { |