<!DOCTYPE html>
	<html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
	<head>
<title>Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ</title>
<meta name="description" content="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ - Savefile - Windows -...">
<meta name="keywords" content="windows">
<meta name="news_keywords" content="windows">
<meta name="author" content="Trường thcs Trần Quang Khải">
<meta name="copyright" content="Trường thcs Trần Quang Khải &#91;phavaphu@gmail.com&#93;">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="google-site-verification" content="RcwYmWMVb8dh-0VdAvXEp4IOHtTN12pffjnuI5mDK1o">
<meta name="generator" content="NukeViet v4.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="article:author" content="http://thcstranquangkhai.edu.vn">
<meta property="og:title" content="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Windows - https&#x3A;&#x002F;&#x002F;thcstranquangkhai.edu.vn&#x002F;index.php&#x002F;vi&#x002F;windows&#x002F;savefile&#x002F;nukeviet&#x002F;xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html">
<meta property="og:site_name" content="Trường thcs Trần Quang Khải">
<meta property="og:url" content="https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html">
<link rel="shortcut icon" href="https://thcstranquangkhai.edu.vn/uploads/favicon.ico">
<link rel="canonical" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/" title="Windows" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/thuat-thuat-bai-giang-van-phong/" title="Windows - Thuật thuật Bài giảng - Văn phòng" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/bai-giang-e-learning/" title="Windows - Bài giảng E_Learning" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/tai-lieu-su-dung-phan-mem-soan-giang-e-learning/" title="Windows - Tài liệu sử dụng phần mềm soạn giảng E_Learning" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/Tin-cong-nghe/" title="Windows - Microsoft PowerPoint" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/microsoft-word/" title="Windows - Microsoft Word" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/microsoft-excel/" title="Windows - Microsoft Excel" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/vnedu-phan-mem-nhap-diem/" title="Windows - VnEdu &#40;Phần mềm nhập điểm&#41;" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/Thu-thuat-khac/" title="Windows - Thủ thuật khác" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/thu-thuat-phan-mem-internet/" title="Windows - Thủ thuật Phần mềm - Internet" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/proshow-proceducer/" title="Windows - Proshow Proceducer" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/internet/" title="Windows - Internet" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/nukeviet/" title="Windows - NukeViet" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/thu-thuat-blogspot/" title="Windows - Thủ thuật Blogspot" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/thu-thuat-usb/" title="Windows - Thủ thuật USB" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/thu-thuat-youtube/" title="Windows - Thủ thuật Youtube" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/Download-Upload/" title="Windows - Download - Upload" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/may-chieu-projector/" title="Windows - Máy chiếu - Projector" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/photoshop/" title="Windows - Photoshop" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/driver/" title="Windows - Driver" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/mang-xa-hoi/" title="Windows - Mạng xã hội" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/Windows/" title="Windows - Windows" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-soan-bai-giang-elearning/" title="Windows - Phần mềm soạn bài giảng Elearning" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/San-pham/" title="Windows - Phần mềm SGK tin THCS" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-lop-6/" title="Windows - Phần mềm Tin lớp 6" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-lop-7/" title="Windows - Phần mềm Tin lớp 7" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-lop-8/" title="Windows - Phần mềm Tin lớp 8" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-lop-9/" title="Windows - Phần mềm Tin lớp 9" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-danh-cho-tieu-hoc/" title="Windows - Phần mềm tin dành cho Tiểu học" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tin-danh-cho-mam-non/" title="Windows - Phần mềm tin dành cho Mầm non" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/giang-day-hoc-tap/" title="Windows - Giảng dạy - Học tập" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-tap-huan/" title="Windows - Phần mềm tập huấn" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/ung-dung-van-phong/" title="Windows - Ứng dụng Văn phòng" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-phavaphu/" title="Windows - Phần mềm phavaphu" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/he-dieu-hanh/" title="Windows - Hệ điều hành" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/phan-mem-khac/" title="Windows - Phần mềm khác" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/qt/" title="Windows - QT" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/ban-ghost-win/" title="Windows - Bản Ghost Win" type="application/rss+xml">
<link rel="alternate" href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/rss/lap-trinh-di-dong/" title="Windows - Lập trình di động" type="application/rss+xml">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/wow.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/wow.min.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/theia-sticky-sidebar.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/assets/js/language/vi.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/assets/js/global.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/news.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/assets/js/jquery/jquery.cookie.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/main.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/custom.js">
<link rel="preload" as="script" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/bootstrap.min.js">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/assets/css/font-awesome.min.css">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/css/bootstrap.non-responsive.css">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/css/style.css">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/css/news.css">
<link rel="StyleSheet" href="https://thcstranquangkhai.edu.vn/assets/css/defaultphavaphu.vi.0.css?t=77">
<link href="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/css/animate.css" rel="stylesheet">
<style>
	body{background: #fff;}
</style>
		<!-- BEGIN: thông báo đẩy js -->
		<!-- END: thông báo đẩy js -->
<script data-show="inline">(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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-81359612-1', '.thcstranquangkhai.edu.vn');
ga('send', 'pageview');
</script>
</head>
	<body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Trường thcs Trần Quang Khải</h2>
		<p class="pull-right"><a title="Trường thcs Trần Quang Khải" href="https://thcstranquangkhai.edu.vn/">https://thcstranquangkhai.edu.vn</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ</h1>
		<ul class="list-inline">
			<li>Thứ ba - 25/10/2016 22:25</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
						<div class="pull-left imghome">
				<img alt="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ" src="https://thcstranquangkhai.edu.vn/assets/windows/2016_10/pr1gfut.jpg" width="100" class="img-thumbnail" />
			</div>
			Xin hướng dẫn hiển thị tin theo chuyên mục trên trang chủ như hình
		</div>
		<div id="bodytext" class="clearfix">
			<p>demo:&nbsp;<a href="https://mynukeviet.net/" target="_blank">https://mynukeviet.net</a>&nbsp;:D</p>

<div style="text-align:center"><img alt="mynuke" height="414" src="https://thcstranquangkhai.edu.vn/uploads/windows/2016_10/pr1gfut.jpg" width="755" /></div>
&nbsp;

<p>Hơi loằng ngoằng nha, chịu khó sẽ thành công :D</p>

<p>Cái này chỉ áp dụng cho kiểu hiển thị là&nbsp;<strong>Chủ đề, tin khác bên phải</strong>, nên bạn phải vào cấu hình module news để chọn kiểu này trước.</p>

<p>1, Mở&nbsp;<strong>themes/ten-theme/css/news.css</strong></p>

<p>Thêm vào cuối file</p>

<pre>
<code>.related img {
float: left;
margin-right: 10px;
}
.main .news_column .panel-body{
    padding: 0;
    padding-top: 5px
}
.main .news_column .panel-body ul{
    margin-left: 0    
}
.main .news_column .panel-body h2{
    margin: 8px 0 8px 0;    
}
.main .news_column .panel-body ul.related .h4{
    margin: 0;
    font-weight: bold;
    line-height: 20px;
}
</code></pre>

<p>2, Mở&nbsp;<strong>themes/ten-theme/modules/news/viewcat_main_right.tpl</strong></p>

<p>Tìm</p>

<pre>
<code>&lt;div class=&quot;{WCT}&quot;&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;div class=&quot;col-xs-24 col-sm-12 col-md-12&quot;&gt;
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;a title=&quot;{CONTENT.title}&quot; href=&quot;<a href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html" title="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ">https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html</a>
&quot;&gt;&lt;img src=&quot;{HOMEIMG}&quot; alt=&quot;{HOMEIMGALT}&quot; width=&quot;{IMGWIDTH}&quot; class=&quot;img-thumbnail pull-left imghome&quot; /&gt;&lt;/a&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;a title=&quot;{CONTENT.title}&quot; href=&quot;<a href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html" title="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ">https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html</a>
&quot;&gt;&lt;img src=&quot;{HOMEIMG}&quot; alt=&quot;{HOMEIMGALT}&quot;class=&quot;img-thumbnail imghome&quot; /&gt;&lt;/a&gt;
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;li&gt;&lt;em class=&quot;fa fa-eye&quot;&gt;&amp;nbsp;&lt;/em&gt; {CONTENT.hitstotal}&lt;/li&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;li&gt;&lt;em class=&quot;fa fa-eye&quot;&gt;&amp;nbsp;&lt;/em&gt;{LANG.view}: {CONTENT.hitstotal}&lt;/li&gt;
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;li&gt;&lt;em class=&quot;fa fa-comment-o&quot;&gt;&amp;nbsp;&lt;/em&gt; {CONTENT.hitscm}&lt;/li&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;li&gt;&lt;em class=&quot;fa fa-comment-o&quot;&gt;&amp;nbsp;&lt;/em&gt;{LANG.total_comment}: {CONTENT.hitscm}
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;div class=&quot;col-md-8&quot;&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;div class=&quot;col-xs-24 col-sm-12 col-md-12&quot;&gt;
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;li class=&quot;{CLASS}&quot;&gt;
</code></pre>

<p>Thay bằng</p>

<pre>
<code>&lt;li class=&quot;{CLASS} clearfix m-bottom&quot;&gt;
    &lt;img src=&quot;{OTHER.imghome}&quot; class=&quot;img-thumbnail&quot; width=&quot;80&quot; /&gt;
</code></pre>

<p>Tìm</p>

<pre>
<code>&lt;a class=&quot;show h4&quot; href=&quot;{OTHER.link}&quot; title=&quot;{OTHER.title}&quot; &lt;!-- BEGIN: tooltip --&gt;data-content=&quot;{OTHER.hometext}&quot; data-img=&quot;{OTHER.imghome}&quot; data-rel=&quot;tooltip&quot; data-placement=&quot;{TOOLTIP_POSITION}&quot;&lt;!-- END: tooltip --&gt;&gt;{OTHER.title}&lt;/a&gt;
</code></pre>

<p>Thêm bên dưới</p>

<pre>
<code>&lt;div class=&quot;text-muted&quot;&gt;
    &lt;ul class=&quot;list-unstyled list-inline&quot;&gt;
        &lt;li&gt;&lt;em class=&quot;fa fa-eye&quot;&gt;&amp;nbsp;&lt;/em&gt;{LANG.view}: {OTHER.hitstotal}&lt;/li&gt;
        &lt;!-- BEGIN: comment --&gt;
        &lt;li&gt;&lt;em class=&quot;fa fa-comment-o&quot;&gt;&amp;nbsp;&lt;/em&gt;{LANG.total_comment}: {OTHER.hitscm}&lt;/li&gt;
        &lt;!-- END: comment --&gt;
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>3, Hãy kiểm tra, nếu tồn tại&nbsp;<strong>themes/ten-theme/modules/news/theme.php</strong>&nbsp;thì hãy mở file&nbsp;<strong>theme.php</strong>&nbsp;này, ngược lại, nếu không tồn tại, hãy mở&nbsp;<strong>modules/news/theme.php</strong><br  />
(Tuy nhiên, mình khuyến khích copy&nbsp;<strong>modules/news/theme.php</strong>&nbsp;vào&nbsp;<strong>themes/ten-theme/modules/news/theme.php</strong>&nbsp;rồi chỉnh sửa ở đây, để không làm ảnh hưởng đến việc nâng cấp module news sau này)</p>

<p>Tìm đến hàm&nbsp;<strong>viewsubcat_main</strong>, trong hàm này (<strong>Lưu ý là trong hàm này thôi nhé</strong>)</p>

<p>Tìm</p>

<pre>
<code>global
</code></pre>

<p>Thêm biến&nbsp;<strong>$module_upload</strong>&nbsp;vào cuối danh sách</p>

<pre>
<code>global $module_name, $module_file, $site_mods, $global_array_cat, $lang_module, $module_config, $module_info, $module_upload;
</code></pre>

<p>Tìm</p>

<pre>
<code>$xtpl-&gt;assign(&#039;HOMEIMG&#039;, $array_row_i&#91;&#039;imghome&#039;&#93;);
</code></pre>

<p>Thay bằng</p>

<pre>
<code>$xtpl-&gt;assign(&#039;HOMEIMG&#039;, nv_news_resize_crop_images(NV_ROOTDIR . &#039;/&#039; . NV_UPLOADS_DIR . &#039;/&#039; . $module_upload . &#039;/&#039; . $array_row_i&#91;&#039;homeimgfile&#039;&#93;, 380, 250, $module_name));
</code></pre>

<p>Tìm</p>

<pre>
<code>$xtpl-&gt;parse(&#039;main.listcat.related.loop&#039;);
</code></pre>

<p>Thêm lên trên</p>

<pre>
<code>if (isset($site_mods&#91;&#039;comment&#039;&#93;) and isset($module_config&#91;$module_name&#93;&#91;&#039;activecomm&#039;&#93;) and $module_config&#91;$module_name&#93;&#91;&#039;activecomm&#039;&#93;) {
     $xtpl-&gt;parse(&#039;main.listcat.related.loop.comment&#039;);
}
</code></pre>

<p>Thêm nội dung này vào cuối file</p>

<pre>
<code>function nv_news_resize_crop_images( $img_path, $width, $height, $module_name = &#039;&#039;, $id = 0 )
 {
     $new_img_path = str_replace( NV_ROOTDIR, &#039;&#039;, $img_path );
     if( file_exists( $img_path ) )
     {
         $imginfo = nv_is_image( $img_path );
         $basename = basename( $img_path );
         $basename = preg_replace( &#039;/^\W+|\W+$/&#039;, &#039;&#039;, $basename );
         $basename = preg_replace( &#039;/&#91; &#93;+/&#039;, &#039;_&#039;, $basename );
         $basename = strtolower( preg_replace( &#039;/\W-/&#039;, &#039;&#039;, $basename ) );
         if( $imginfo&#91;&#039;width&#039;&#93; &gt; $width or $imginfo&#91;&#039;height&#039;&#93; &gt; $height )
         {
             $basename = preg_replace( &#039;/(.*)(\.&#91;a-zA-Z&#93;+)$/&#039;, $module_name . &#039;_&#039; . $id . &#039;_\1_&#039; . $width . &#039;-&#039; . $height . &#039;\2&#039;, $basename );
             if( file_exists( NV_ROOTDIR . &#039;/&#039; . NV_TEMP_DIR . &#039;/&#039; . $basename ) )
             {
                 $new_img_path = NV_BASE_SITEURL . NV_TEMP_DIR . &#039;/&#039; . $basename;
             }
             else
             {
                 $img_path = new NukeViet\Files\Image( $img_path, NV_MAX_WIDTH, NV_MAX_HEIGHT );

                 $thumb_width = $width;
                 $thumb_height = $height;
                 $maxwh = max( $thumb_width, $thumb_height );
                 if( $img_path-&gt;fileinfo&#91;&#039;width&#039;&#93; &gt; $img_path-&gt;fileinfo&#91;&#039;height&#039;&#93; )
                 {
                     $width = 0;
                     $height = $maxwh;
                 }
                 else
                 {
                     $width = $maxwh;
                     $height = 0;
                 }

                 $img_path-&gt;resizeXY( $width, $height );
                 $img_path-&gt;cropFromCenter( $thumb_width, $thumb_height );
                 $img_path-&gt;save( NV_ROOTDIR . &#039;/&#039; . NV_TEMP_DIR, $basename );
                 if( file_exists( NV_ROOTDIR . &#039;/&#039; . NV_TEMP_DIR . &#039;/&#039; . $basename ) )
                 {
                     $new_img_path = NV_BASE_SITEURL . NV_TEMP_DIR . &#039;/&#039; . $basename;
                 }
             }
         }

     }
     return $new_img_path;
 }</code></pre>
		</div>
				<div id="author">
						<p>
				<strong>Nguồn tin:</strong>
				mynukeviet.net:
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html" title="Xin hướng dẫn&#x3A; Hiển thị tin trên trang chủ">https://thcstranquangkhai.edu.vn/index.php/vi/windows/nukeviet/xin-huong-dan-hien-thi-tin-tren-trang-chu-153.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Trường thcs Trần Quang Khải
		</div>
		<div id="contact">
			<a href="mailto:phavaphu@gmail.com">phavaphu@gmail.com</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://thcstranquangkhai.edu.vn/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="https://thcstranquangkhai.edu.vn/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="windows",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=7,nv_my_abbr="+07",nv_cookie_prefix="nv4c_y197C",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_is_recaptcha=0;</script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/wow.js"></script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/wow.min.js"></script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/theia-sticky-sidebar.js"></script>
<script src="https://thcstranquangkhai.edu.vn/assets/js/language/vi.js"></script>
<script src="https://thcstranquangkhai.edu.vn/assets/js/global.js"></script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/news.js"></script>
<script src="https://thcstranquangkhai.edu.vn/assets/js/jquery/jquery.cookie.js"></script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/main.js"></script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/custom.js"></script>
<script type="text/javascript">
    (function(p,u,s,h){
        p._pcq=p._pcq||[];
        p._pcq.push(['_currentTime',Date.now()]);
        s=u.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src='https://cdn.pushcrew.com/js/00454aebdd272f8e4c5a5b5e50ac4513.js';
        h=u.getElementsByTagName('script')[0];
        h.parentNode.insertBefore(s,h);
    })(window,document);
</script>
<script src="https://thcstranquangkhai.edu.vn/themes/defaultphavaphu/js/bootstrap.min.js"></script>
</body>
</html>