update v1.0.6
This commit is contained in:
@@ -381,12 +381,13 @@ $data = $ConvDate[0];
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
// var Data = $('input[name="rating"]:checked').val();
|
||||
// var Data2 = $('input[name="rating2"]:checked').val();
|
||||
// if (Data) {
|
||||
// $('input[name=rating]').rating('readOnly');
|
||||
//
|
||||
// }
|
||||
var Data = $('input[name="rating"]:checked').val();
|
||||
var Data2 = $('input[name="rating2"]:checked').val();
|
||||
if (Data) {
|
||||
$('input[name=rating]').rating('readOnly');
|
||||
jQuery('.star').attr('disabled', true);
|
||||
|
||||
}
|
||||
$('input[name=rating]').change(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
|
||||
@@ -61,10 +61,16 @@
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->get();
|
||||
//$format = App\Model\helpdesk\Settings\System::where('id','1')->first()->date_time_format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id','1')->first()->time_zone;
|
||||
$tz = \App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = \Carbon\Carbon::now()->toDateTimeString();
|
||||
//dd($date);
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->where('publish_time','<',$date)->get();
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
@forelse($article as $arti)
|
||||
<li>
|
||||
<i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
|
||||
<h3 class="h5"><a href="#"><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
@@ -75,10 +81,16 @@
|
||||
$excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
{!! $excerpt !!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@empty
|
||||
<p>No Articles</p>
|
||||
@endforelse
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<p class="more-link text-center"><a href="{{url('category-list/'.$category->slug)}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.view_all') !!}</a></p>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
@section('breadcrumb')
|
||||
|
||||
<?php
|
||||
//dd($arti);
|
||||
$all = App\Model\kb\Relationship::where('article_id','=', $arti->id)->get();
|
||||
//dd($all);
|
||||
/* from whole attribute pick the article_id */
|
||||
$category_id = $all->lists('category_id');
|
||||
?>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("lb-faveo/dist/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/app.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -347,7 +347,7 @@ $footer4 = App\Model\helpdesk\Theme\Widgets::where('name','=','footer4')->first(
|
||||
<script src="{{asset("lb-faveo/js/superfish.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/mobilemenu.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/know.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/dist/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user