Mẫu thiết kế web Blank - Elegant and Minimalist Wordpress Blog

Nội dung

freesupport

Version 1.8

Blank is an Elegantminimalistic Wordpress theme with Ultra-clean design and strongly focusing on content. It’s a good choice for blogging with all standards: ResponsiveRetina-readyTranslation ready, Simple, Clean and Effective. It’s also easy to setup and you can publish your content right after installing theme. No need more coding or something else.

imac responsive

retina

options

speed

test1

test2

test3

test4

test5

test6

test7

Special thanks to PixabayJørgen Grotdal and Nicolas Jolly for images used on the demo site. These images are NOT included in the theme.

Version 1.8 – July 17, 2014 – 1 year on Themeforest

- Social share on blog posts - Related Posts on blog posts - Fix small issues  + Sticky Header, Social Icons...  + Boxed Layout  + Retina issue - Loading effect for portfolio items - Redesign Portfolio Template: Allow post content and decoration - Design Portfolio Category - Add option to link image to the post - boxed layout wider than 20px each side - pagination option for portfolio

Version 1.7.1 – June 13, 2014

- make it compatible backward, page-portfolio.php template comes back - option for old design of sidebar toggle button - fix boxed layout issue on mobile - fix pagination retina issue

Version 1.7 – June 03, 2014

- redesign pagination buttons - make it compatible with WP 3.9 (shortcode generator) - make single thumbnail larger - add status post format - redesign the sidebar toggle button - develop portfolio shortcode and stop supporting portfolio template - add option: social icon option at top - add option: infinite scroll - update contact form 7 latest version - fix header logo height issue  - fix gallery post format issue  - fix mCSB_button.png missing file issue - fix some responsive issues

Version 1.6 – December 19, 2013

- add custom footer background pattern option - add custom sidebar background option - add an option for tagline - add option to hide permalink - add option for uppercase/lowercase - add option for blog title and small text - add many font size options - add footer padding option - add google font preview in options - add custom decoration for portfolio page - fix triangle top position in WP 3.8 (admin bar 32px) - fix  with Wordpress SEO by Yoast - resize portfolio default default decoration in image folder - fix portfolio all text in shortcode - make it compatible with WP 3.8 - fix sticky header menu on mobile view - fix custom separator pattern - make it compatible with Blogroll plugin - fix blog title line height</pre> <h3 id="item-description__version-1-5-november-20-2013">Version 1.5 – November 20, 2013</h3> <pre>- fix .article clear both - fix small issues - fix sidr issue - add option for decoration - add sticky option for centered logo - remove 1:11 proportion for navigation menu - update contact form 7 to v 3.5.4 - update admin panel to SMOF 1.5.2 - fix child theme footer background path - add option for content width up to 1100px - add footer custom icon option</pre> <h3 id="item-description__version-1-4-3-october-14-2013">Version 1.4.3 – October 14, 2013</h3> <pre>- update Wi:Portfolio plugin: add ability to add multi portfolios - fix retina logo issue - remove redundant script at the end of functions.php file</pre> <h3 id="item-description__version-1-4-2-september-30-2013">Version 1.4.2 – September 30, 2013</h3> <pre>- fix default value for header layout option.</pre> <h3 id="item-description__version-1-4-1-september-23-2013">Version 1.4.1 – September 23, 2013</h3> <pre>- fix boxed layout css - fix footer icons issue - fix blog font size options</pre> <h3 id="item-description__september-18-2013">September 18, 2013</h3> <pre>- fix default value for header layout option.</pre> <h3 id="item-description__version-1-4-september-05-2013">Version 1.4 – September 05, 2013</h3> <pre>- visible sidebar supported - fix small issues - 2 header styles - option for logo and navigation menu ratio - option for sticky header - option for page layout (small or fullwidth) - option for boxed/wide layout - option for header code - option for navigation custom font - option for body background color/image</pre> <h3 id="item-description__august-16-2013">August 16, 2013</h3> <pre>- fix small excerpt issue in WP 3.6 - add RSS option for footer icons - Update Contact form 7 plugin.</pre> <h3 id="item-description__version-1-3-2-august-14-2013">Version 1.3.2 – August 14, 2013</h3> <pre>- add self-hosted video and audio support for featured display and in post options. - fix some small css issues.</pre> <h3 id="item-description__august-08-2013">August 08, 2013</h3> <pre>- Change a little CSS comment form label for plugin compatiblitity  - Add missed decoration@2x.png for Retina CSS</pre> <h3 id="item-description__version-1-3-1-august-03-2013">Version 1.3.1 – August 03, 2013</h3> <pre>- change shortcode to [wivideo] shortcode to avoid builtin shortcode of WP 3.6 - make theme compatible with Wordpress 3.6</pre> <h3 id="item-description__version-1-3-august-01-2013">Version 1.3 – August 01, 2013</h3> <pre>- add many options for portfolio: layout, video, thumbnail... - add metabox plugin to Wi:Portfolio shortcode - move portfolio options from theme options to page options - add iconbox, recent posts, recent portfolio shortcodes - update demo.xml, language file and documentation</pre> <h3 id="item-description__version-1-2-3-july-27-2013">Version 1.2.3 – July 27, 2013</h3> <pre>- fix footer logo issue - add option for thumbnail position in medium layout - add more options for social footer links - add homepage & email icon options to social options - add option to display placeholder or label in comment form - add option to display small arrow or not for blog post thumbnails</pre> <h3 id="item-description__version-1-2-2-july-25-2013">Version 1.2.2 – July 25, 2013</h3> <pre>- add !function_exists to all functions to prevent conflicting - make scrolltop button responsive - add portfolio excerpt length option - add functions to portfolio plugin so it can be used with other themes</pre> <h3 id="item-description__version-1-2-1-july-24-2013">Version 1.2.1 – July 24, 2013</h3> <pre>- Fix nav menu error on mobile  - Fix body padding right on mobile  - Update credits on Documentation  - Update newest demo.xml</pre> <h3 id="item-description__version-1-2-july-21-2013">Version 1.2 – July 21, 2013</h3> <pre>- Include portfolio plugin in theme via TGM - Redesign Portfolio - New demo.xml file - Options for portfolio</pre> <h3 id="item-description__version-1-1-july-19-2013">Version 1.1 – July 19, 2013</h3> <pre>- Add portfolio plugin - Fix small issues - Update demo.xml</pre> <h3 id="item-description__version-1-0-july-17-2013">Version 1.0 – July 17, 2013</h3> <pre>- Initial Release</pre>

 </p>

 
 <br clear="all" /><p> </p>

 <p><div id="websiteIframe"></div></p>

 

 </div></div>

 

</div>



<br clear="all">

  <div class="nextRelatedItems">

 <h3>Nội dung khác:</h3>

 <ul>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Firestarter%3A-Advanced-Magazine-%2F-News-WP-Theme">Firestarter: Advanced Magazine / News WP Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Blue-Blog-%E2%80%93-Responsive-Wordpress-Blog-Theme">Blue Blog – Responsive Wordpress Blog Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Clearflex-WP">Clearflex WP</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Reporter%2C-a-Totally-Tweakable-WordPress-News-Theme">Reporter, a Totally Tweakable WordPress News Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Editr-%7E-Blog%2FMagazine-WordPress-Theme">Editr - Blog/Magazine WordPress Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Blogo-%7E-Stylish-WP-Theme-for-Creative-Bloggers">Blogo - Stylish WP Theme for Creative Bloggers</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Cube%3A-Front%7Eend-Multimedia-Publishing-WP-Theme">Cube: Front-end Multimedia Publishing WP Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Strelok-%7E-Retina-Responsive-WordPress-Blog-Theme">Strelok - Retina Responsive WordPress Blog Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Kinsky-%7E-WordPress-Blogging%2FPortfolio-Theme">Kinsky - WordPress Blogging/Portfolio Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/Redox-WordPress-Theme">Redox WordPress Theme</a></h2></li>

  <li><h2><a href="/M%E1%BA%ABu-thi%E1%BA%BFt-k%E1%BA%BF-web/GoodInc-Flat-Responsive-WordPress-Blog%2C-News-Theme">GoodInc Flat Responsive WordPress Blog, News Theme</a></h2></li>

 
 </ul>

 </div>

 
  Nguồn: <a href="javascript:void(0)" onclick="VHV.redirect('aHR0cDovL3RoZW1lZm9yZXN0Lm5ldC9pdGVtL2JsYW5rLWVsZWdhbnQtYW5kLW1pbmltYWxpc3Qtd29yZHByZXNzLWJsb2cvNTEzNDA0OD9XVC5vc3NfcGhyYXNlPXNpbXBsZSUyMGNsZWFuJTIwYmxvZyZXVC5vc3NfcmFuaz0xMiZXVC56X2F1dGhvcj13aXRoZW1lcyZXVC5hYz1zZWFyY2hfbGlzdA==', true)" rel="nofollow">themeforest.net/item/blank-elegant-and-minimalist-wordpress-blog/5134048?WT.oss_phrase=simple%20clea...</a>

 


</div>




</div><div id="module9" class="ModuleWrapper" ><div class="form-comment-news">

 <div id="list-comments">

 
 <div class="no-data">Chưa có phản hồi</div>

 
 </div>

 

 <div id="pagination9" class="default-pagination"></div>

</div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

 <div class="modal-dialog">

 <div class="modal-content">

 <div class="modal-header">

 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

 <h4 class="modal-title">Permalink for Post</h4>

 </div>

 <div class="modal-body">

 <div class="bb-code">

 <span style="display:block">Nhúng vào diễn đàn</span>

 <input style="width:100%" type="text" dir="ltr" class="textCtrl fillSpace" id="bb_code_link_snippet" value='[URL=""][/URL]'>

 </div>

 <div class="bb-code">

 <span style="display:block">Nhúng vào trang Website</span>

 <input style="width:100%" type="text" dir="ltr" class="textCtrl fillSpace" id="html_link_code" value='<a href=""></a>'>

 </div>

 </div>

 </div><!-- /.modal-content -->

 </div><!-- /.modal-dialog -->

</div>

</div><div id="module10" class="ModuleWrapper" ><div class="post-comment"> 

 <div id="message-form10" class="clearfix">

 <form class="form-comment" id="form10">

 
 <div class="notice">Bạn vui lòng <a href="/?page=login">Đăng nhập</a> để bình luận</div>

 
 <input type="hidden" name="securityToken" value="1c10a827e0d66a11c9a9"><input type="hidden" name="submitFormId" value="10"><input type="hidden" name="moduleId" value="10"></form>

 </div>

 <div class="clear-both"></div>

</div>


<style type="text/css">

.post-comment form label {

 display:block;

 font-weight: bold;

 line-height: 20px;

 color:#323232;

}

.post-comment form input[type=text] {

 width: 250px;

}

.post-comment form input[type=text],

.post-comment form textarea {

 border: 1px solid #a5a5a5;

 width:90%;

 margin:auto;

}

</style>

</div><div id="module11" class="ModuleWrapper" >
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse; table-layout:fixed; clear:both;" ><tbody><tr valign="top">

<td class="default-column1" style=";"><div id="module12" class="ModuleWrapper" ><div class="theme-blocks"></div></div></td>

<td class="default-column2" style=";padding-left:5px;"><div id="module13" class="ModuleWrapper" ><div class="theme-blocks"></div></div></td>


</tr></tbody></table>
</div></div>

                    </div>

                <div class="region-bottom"></div>

                </div>

            </div>

           	<div id="page-footer">

            	<div class="footer"><div id="module15" class="ModuleWrapper"  moduleRootId="1215478">
<ul class="list-adversting">

 <li class="last-items"></li>

 

</ul>

<div class="clear-both"></div>

 

</div><div id="module16" class="ModuleWrapper" ><div class="container">
 <div class="row">
  <div class="footer-address clearfix">
 <div class="content-address"><p>VinaBase. © 2014. | <a href="http://vinabase.com/dieu-khoan-su-dung.html" rel="nofollow" title="Điều khoản sử dụng">Điều khoản sử dụng</a> | <a href="http://vinabase.com/chinh-sach-bao-mat.html" rel="nofollow" title="Chính sách bảo mật">Chính sách bảo mật</a>  (Website đang chờ xin cấp phép)</p>
</div>
 
 </div>
 </div>
</div>
</div></div>

           	</div>

        </div>

         

	</div>

	<div class="bg-page-bottom"></div>


<div id="footer-editer"></div>
 <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-22927833-17', 'auto');
  ga('require', 'displayfeatures');
  ga('send', 'pageview');

</script><!--[if IE 6]>
	<script src="http://vinabase.com/3rdparty/fix_ie/DD_belatedPNG.js"></script>
	<script type="text/javascript">
		DD_belatedPNG.fix('.mask,img');
	</script>
<![endif]-->
<script type="text/javascript">
	var cb = function() {
		var styles = {
			'/EStore/Software/skins/Vinabase/style.css?v=1.448':1
				
	    		};
		var myNav = navigator.userAgent.toLowerCase(), ie8 = ((myNav.indexOf('msie') != -1) && (parseInt(myNav.split('msie')[1]) < 9));
		for(var i in styles)
		{
			if(!ie8 && (i.indexOf('style.css') == -1))
			{
				var l = document.createElement('link'); 
				l.rel = 'stylesheet';
				l.href = i;
				var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
			}
		}
	};
	var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
	  window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
	if (raf) raf(cb);
	else if (window.addEventListener){
	  window.addEventListener('load', cb);
	} else if (window.attachEvent){
		window.attachEvent('onload', cb);
	}
</script>
<script type="text/javascript">	
	rootURL = 'http://vinabase.com/';
	staticURL = '/';
</script>
<script type="text/javascript" src="/3rdparty/jQuery/jquery-1.11.0.min.js"></script><script type="text/javascript" src="/lib.js?v=1.448"></script>
<script type="text/javascript" src="/3rdparty/Bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript"  src="/3rdparty/Bootstrap/offcanvas.js"></script>
<script type="text/javascript">
(function() {
    if ( jQuery.ajaxPrefilter ) {
        
        var rURL = /^([^\/]+)/,
            rEsc = /(\-|\.)/,
            protocol = rURL.exec( document.location.href )[ 1 ].replace( rEsc, "\\$1" ),
            rDomains = {};
        
        jQuery.ajaxPrefilter(function( options ) {
            var strip = options.stripDomain,
                rDomain,
                sDomain;
            if( strip ) {
                rDomain = rDomains[ strip ];
                if ( !rDomain ) {
                    sDomain = "^(?:" + protocol + ")?\\/\\/" + strip.replace( rEsc, "\\$1" );
                    rDomains[ strip ] = rDomain = new RegExp( sDomain, "i" )
                }
                options.url = options.url.replace( rDomain, "" );
            }
        });
    }

})( jQuery );

jQuery.ajaxSetup({
    stripDomain: "vinabase.com"
});
VHV.serverTime = 1731677705;
$.extend(VHV,{
	
	rootURL:rootURL,
	staticURL:staticURL,
	language: 'vi',
	version:'1.448',
	loadingImage:'/Colombo/Default/skins/Default/images/loading.gif',
	
	isDebug:false,
	urlMode:'rewrite',
	site:'9506',
	defaultPortalPath:'',
	defaultPortalId:'Colombo',
	exportUser:0});
$.extend(VHV.App, {
	mainPackage:'Colombo',
	portal:'9506',
	site:'9506'
});
if($.browser.msie && VHV.urlMode == 'ajax')
{
	VHV.urlMode = 'rewrite';
}
VHV.href = '?'+decode64('X1VSTENvZGU9TSVFMSVCQSVBQnUtdGhpJUUxJUJBJUJGdC1rJUUxJUJBJUJGLXdlYi9CbGFuay1+LUVsZWdhbnQtYW5kLU1pbmltYWxpc3QtV29yZHByZXNzLUJsb2cm');
VHV.init();

VHV.User = {"id":"guest","privileges":[]};

VHV.localTime = Math.round(new Date().getTime()/1000);
;
VHV.load('3rdparty/jQuery/dlmenu/css/component.css');

VHV.load('3rdparty/jQuery/dlmenu/modernizr.custom.js',function(){

 VHV.load('3rdparty/jQuery/dlmenu/jquery.dlmenu.js',function(){

 $('#dl-menu17').dlmenu();

 });

});

$('#menu-navigation>.menu-item>a').click(function() {

 $(this).toggleClass('active');

});

 $('#sidr-close').click(function(){

 $('#sidr-main').slideToggle(500).animate({

 left: '-300px'

 })

 });

 $('.sf-menu>li').hover(function(){

 $(this).find('.dropdown').stop().animate({

 opacity:1

 }).css('display','block');

 },function(){

 $(this).find('.dropdown').stop().animate({

 opacity:0

 }).css('display','none');

 });

 $('.search-toggle').click(function(){

 $(this).parents('.alignright').find('.the-search-form').slideToggle(500).animate({

 opacity: 1 

 });

 });;
 </script>
 <script type="text/javascript" id="script77053">




$('#autocomplete77053').click(function(){

VHV.load('3rdparty/jQuery/jqueryui/themes/smoothness/jquery-ui.css');

VHV.load('3rdparty/jQuery/jqueryui/jquery-ui.min.js', function(){

 $('#autocomplete77053').autocomplete({

 source: VHV.Model('Software.DataRecord.autocomplete').url({"service":"Software.DataRecord.autocomplete","type":"Entity","field":"code"})

 
 ,minLength: 0

 
 
 
 ,autoFocus: true

 ,focus: function( event, ui ) {

 if(ui.item && ui.item.id)

 {

 $('#input77053').val(ui.item.id);

 }

 }

 ,select: function( event, ui ) {

 $(this).val(ui.item.value);

 $('#input77053').data('autocompleteItem', ui.item).val( ui.item.id ).change();

 

 return false;

 }

 }).change(function(){

 

 }).data( 'uiAutocomplete' )._renderItem = function( ul, item ) {

 return $( "<li></li>" )

 .data( "item.autocomplete", item )

 .append( "<a>" + item.label + (item.desc?"<br><em>" + item.desc + "</em>":'')+"</a>" )

 .appendTo( ul );

 };

});

});








</script>
 <script type="text/javascript">;$('#form18 input[name=type]').next().attr('placeholder', "Chủ đề...");
VHV.ExecQueue.add(function(){
 $('#form18 input[name=type]').val('WebsiteTemplate');
 $('#form18 .ui-autocomplete-input').val('Mẫu thiết kế web');
}, function(){
 return $('#form18 .ui-autocomplete-input').length;
});
$('#mobile-toggle').click(function(){
 $('#sidr-main').slideToggle(500).animate({
 left: 0
 })
});;$('.objectDetail img:gt(2)').hide().each(function(){

 $(this).attr('data-original', this.src).attr('src', '/EStore/Default/skins/Default/images/lazyload.png');

}).show();

VHV.load('3rdparty/jQuery/lazyload/lazyload.min.js',function(){

 $(".objectDetail img").lazyload({

 effect : 'fadeIn'

 });

}); 

VHV.load('http://vinabase.com/EStore/Default/skins/Default/admin.css');


setTimeout(function(){

 $('#websiteIframe').append('<'+'a href="http://' + 'http://blank.withemes.com/" target="_blank" title="http://blank.withemes.com/">Mở demo trong cửa sổ mới</a> | <'+'a href="http://'+'colombo.vn/dang-ky" target="_blank">Tạo website trực tuyến</a><br clear="all"><if'+'rame width="100%" height="1000" frameborder="0" src="http://http://blank.withemes.com/" sandbox="allow-forms allow-scripts"></if'+'rame>');

}, 500);


//this.href.replace('?page=login&href=', '?page=login&loginSocial=Google&redirectHref=')

$('.objectDetail a[title="Đăng nhập để xem"]').each(function(){

 $(this).after('<span class="social" style="zoom:0.75;"><a style="border-left:none;" href="'+this.href.replace('?page=login&href=', '?page=login&loginSocial=Facebook&redirectHref=')+'" class="facebook" title="Đăng nhập bằng Facebook"><i></i></a><a href="https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.login email&state='+this.href.replace('http://vinabase.com/?page=login&href=', '')+'&redirect_uri='+encodeURIComponent('http://vinabase.com/?page=login&loginSocial=Google')+'&response_type=code&client_id=363895508280-mlcklcgiv5m39k05q1jdj0np89bclfjv.apps.googleusercontent.com&access_type=offline" rel="nofollow" class="google" title="Đăng nhập bằng Google"><i></i></a></span>');

});





 (function() {

 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;

 po.src = 'https://apis.google.com/js/plusone.js';

 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);

 })();;$('.content-comment img').each(function() {

 imgSrc = $(this).attr('src');

 $(this).wrap('<a href="'+imgSrc+'" class="highslide cursor" onclick="return hs.expand(this)"></a>');

});

VHV.using ($.extend(
 $.parseJSON(decode64('eyJkZWZhdWx0TGF5b3V0IjoiR2xvYmFsLnNpbXBsZUxpc3RpbmciLCJsYXlvdXQiOiJGb3J1bVRvcGljLnJlcGx5TGlzdCIsImhhc1BhZ2luYXRpb24iOjEsImhhc0NvbnRyb2xsZXIiOjEsIml0ZW1zUGVyUGFnZSI6IjEwIiwidG90YWxJdGVtcyI6MCwib3JkZXJCeSI6ImNyZWF0ZWRUaW1lIiwicGFnZU5vIjoxLCJjbGFzcyI6InNpbXBsZUxpc3RpbmciLCJzZXJ2aWNlIjoiU29mdHdhcmUuRm9ydW0uUmVwbHkuc2VsZWN0QWxsIiwiZW5kVGl0bGUiOiIiLCJiZWdpblRpdGxlIjoiIiwiaW5kZXgiOjUsIm1vZHVsZVBvc2l0aW9uIjowLCJwYXRoIjoiQ01TIiwidG9waWNJZCI6IjU0NGRjMDQ3N2Y4YjlhZWU1NzhiNTY0OSJ9')),{"module":"CMS.Listing","page":"objectDetail","id":"9","modulePosition":"0","moduleParentId":"-1"}),{

  itemsPerPage: "10",
 totalItems: 0,

 perPage:decode64('MQ=='),

 nextText:"Tiếp",

 prevText:"Trước",

 startText:'',

 endText:'',

 linkTo:'javascript:void(0);'

});

$('.default-pagination').addClass('thumbnail-pagination');

VHV.load('3rdparty/jQuery/emoticons/css/jquery.emotions.icq.css');

VHV.load('3rdparty/jQuery/emoticons/js/jquery.emotions.js', function(){

 $('.postContentWrapper').emotions();

});

function quoteReply(obj, id)

{

 $('input[name="fields[quoteId]"]').val(id);

 $('.quoteReplyContent').html($(obj).parent().parent().find('.content-comment').html());

 $('.quoteReplyUser').html($(obj).parent().parent().parent().find('.fullname h3').html());

 $('.quoteReplyTime').html($(obj).parent().find('span:first').html());

 $('.quoteReplyRegion').show();

 var editorId = $('textarea', $('.quoteReplyRegion').parent()).attr('id');

 if(window.CKEDITOR && CKEDITOR.instances && CKEDITOR.instances[editorId])

 {

 location = '#quoteReplyRegion';

 CKEDITOR.instances[editorId].focus();

 }

}



CKEDITOR_BASEPATH = '/3rdparty/ckeditor-4.3.3/';

$('.editReplyButton').click(function(){

 var id = $(this).attr('rev');

 if(!$(this).data('editorLoaded'))

 {

 $(this).data('editorLoaded', true);

 var id = $(this).attr('rev');

 var obj = $('#replyContent'+id).attr('contentEditable', 'true');

 var editor = CKEDITOR.inline( 'replyContent'+id, {

 shiftEnterMode : CKEDITOR.ENTER_P,

 startupFocus : true,

 toolbar : [

 [ 

 'Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 

 'NumberedList', 'BulletedList', 

 'JustifyLeft', 'JustifyCenter', 'JustifyBlock',

 'Link', 'Unlink', 'FontSize', 'TextColor', 'BGColor', 'Image', 'Flash', 'Table'

 ]

 ]

 });

 editor.on('key', function(ev) {

 if (ev.data.keyCode==13)

 {

 ev.cancel();

 VHV.alert("Shift + Enter để xuống dòng. Enter để lưu, Esc để hủy bỏ. Đang lưu...");

 VHV.Model('Software.Forum.Reply.edit')({

 id: ev.editor.name.replace('replyContent', ''),

 'fields[content]': ev.editor.getData()

 }, function(){

 VHV.alert("Save successfully!");

 ev.editor.focusManager.blur();

 });

 }

 if (ev.data.keyCode==27)

 { 

 ev.cancel();

 ev.editor.focusManager.blur();

 }

 });

 editor.on('instanceReady', function( ev )

 {

 ev.editor.focus();

 }

 );

 }

 else

 {

 editor = CKEDITOR.instances['replyContent'+id];

 editor.focus();

 }

 

});

function replyLike(that, id)

{

 if(!that.data('lockLike'))

 {

 that.data('lockLike', '1');

 var count = that.parent().find('strong'), value = count.length?parseInt(count.html().replace('(', '').replace(')', '')):0, oldLabel = that.html();

 if(!value) value = 0;

 if(oldLabel == 'Thích')

 {

 that.html('Đã thích').parent().addClass('active');

 count.html('('+(value + 1)+')');

 }

 else

 {

 that.html('Thích').parent().removeClass('active');

 count.html((value > 1)?'('+(value - 1)+')':'');

 }

 VHV.Model('Software.Forum.Reply.like')({

 id: id,

 unlike: (oldLabel == 'Thích')?0:1

 }, function(){

 that.data('lockLike', 0);

 });

 }

}

$('.content-comment table,.replyContent table').addClass('table').wrap('<div class="table-responsive" style="overflow-x:auto;"></div>');;VHV.using ($.extend(
 $.parseJSON(decode64('eyJzZXJ2aWNlIjoiIiwibGF5b3V0IjoiRm9ydW1Ub3BpYy5yZXBseVBvc3QiLCJpdGVtSWQiOiIiLCJpdGVtVHlwZSI6IkRhdGFUeXBlLkZvcnVtUmVwbHkiLCJzdWJtaXRTZXJ2aWNlIjoiU29mdHdhcmUuRm9ydW0uUmVwbHkuZWRpdCIsInJlcXVpcmVMb2dpbiI6IjEiLCJjb21tZW50U3RhdHVzIjoiMCIsImluZGV4Ijo2LCJtb2R1bGVQb3NpdGlvbiI6MCwicGF0aCI6IkNNUyIsInJlcGx5T2JqZWN0VHlwZSI6IkRhdGFUeXBlLldlYnNpdGVUZW1wbGF0ZSJ9')),{"module":"CMS.Form","page":"objectDetail","id":"10","modulePosition":"0","moduleParentId":"-1"}),{

 rules: {

 'fields[fullName]': 'required',

 'fields[content]': {

 required: true,

 depends: function(){

 if(window.CKEDITOR)

 {

 for (var instance in CKEDITOR.instances )

 {

 if($('#'+instance).length)

 {

 CKEDITOR.instances[instance].updateElement();

 }

 

 }

 

 }

 },

 minlength: 10

 }

 },

 messages: {

 'fields[fullName]': 'Yêu cầu nhập',

 'fields[content]': {

 required: 'Yêu cầu nhập',

 minlength: 'Không nhỏ hơn 10 ký tự'

 }

 },

 success: function(result){

 if(typeof(result) == 'string')

 {

 if(result.indexOf('{') != -1)

 {

 eval('result = '+result+';');

 }

 else

 {

 result = {

 status: result

 };

 }

 }

 switch(result.status)

 {

 case 'SUCCESS':

 VHV.alert('Đăng phản hồi thành công');

 var cm = $('.form-comment-news').parent();

 if(cm.length)

 {

 CKEDITOR.instances[$('#form10 textarea').attr('id')].setData('');

 $('#quoteReplyRegion').hide();

 $('.editReplyButton').each(function(){

 var id = $(this).attr('rev');

 var obj = $('#replyContent'+id).attr('contentEditable', 'true');

 if(CKEDITOR.instances['replyContent'+id])

 {

 CKEDITOR.remove(CKEDITOR.instances['replyContent'+id]);

 }

 });

 $('.editReplyButton').data('editorLoaded', 0);

 VHV.App.modules[cm.attr('id').replace('module', '')].reload();

 }

 else

 {

 setTimeout(location.reload, 1000);

 }

 break;

 case 'FAIL':

 VHV.alert('Có lỗi khi đăng phản hồi');

 break;

 case 'NOT_LOGIN':

 VHV.alert('Bạn chưa đăng nhập');

 //location.reload();

 break;

 } 

 }

});;;$('.tb-footer').find('.list-adversting').addClass('fotter-adversting');
</script>

</body>
</html>