Commit b5224c3c authored by Kgneo's avatar Kgneo
Browse files

game questionDay

parent ced5a67b
<?php
$this->renderPartial("../news/newsAssets");
HtmlHelper::registerCssAndScriptsFiles(
array('/css/timeline2.css',
'/css/news/index.css',
......@@ -92,7 +94,7 @@
margin-top: 15px;
}
</style>
<div class="row padding-10 bg-white">
<div class="row padding-10 bg-white live-container">
<div class="col-md-12 col-sm-12 col-xs-12 bg-white top-page no-padding" id="" style="padding-top:0px!important;">
<div id="container-scope-filter" class="col-md-offset-1 col-md-11 col-lg-offset-1 col-lg-11 col-sm-12 col-xs-12 col-md-offset" style="padding:20px 0px;">
<?php
......
<?php
$this->renderPartial("../news/newsAssets");
HtmlHelper::registerCssAndScriptsFiles( array('/css/default/directory.css') , Yii::app()->theme->baseUrl. '/assets');
//$cssAnsScriptFilesModule = array('');
//HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
......
<?php
$cssAnsScriptFilesModule = array(
'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css',
'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/wysiwyg-color.css',
'/plugins/bootstrap-datetimepicker/css/datetimepicker.css',
//'/plugins/x-editable/css/bootstrap-editable.css',
'/plugins/select2/select2.css',
//X-editable...
'/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js' ,
// '/plugins/x-editable/js/bootstrap-editable.js' ,
//'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min.js' ,
//'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5.js' ,
//'/plugins/wysihtml5/wysihtml5.js',
'/plugins/jquery.scrollTo/jquery.scrollTo.min.js',
'/plugins/ScrollToFixed/jquery-scrolltofixed-min.js',
'/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js',
'/plugins/jquery.appear/jquery.appear.js',
'/plugins/jquery.elastic/elastic.js',
'/plugins/underscore-master/underscore.js',
'/plugins/jquery-mentions-input-master/jquery.mentionsInput.js',
'/plugins/jquery-mentions-input-master/jquery.mentionsInput.css',
'/plugins/jquery-mentions-input-master/lib/jquery.events.input.js',
);
//error_log("BasURL : ".Yii::app()->request->baseUrl);
HtmlHelper::registerCssAndScriptsFiles( $cssAnsScriptFilesModule ,Yii::app()->request->baseUrl);
$cssAnsScriptFilesModule = array(
'/js/news/autosize.js',
'/js/news/newsHtml.js',
'/js/menus/multi_tags_scopes.js',
'/js/cooperation/uiModeration.js',
'/js/cooperation/uiCoop.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
$cssAnsScriptFilesModule = array(
'/css/news/newsSV.css',
'/css/cooperation.css',
'/js/comments.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule,Yii::app()->theme->baseUrl."/assets");
$timezone = "";
$pair = false;
......
<?php
$cssAnsScriptFilesModule = array(
'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css',
'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/wysiwyg-color.css',
'/plugins/bootstrap-datetimepicker/css/datetimepicker.css',
//'/plugins/x-editable/css/bootstrap-editable.css',
'/plugins/select2/select2.css',
//X-editable...
'/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js' ,
// '/plugins/x-editable/js/bootstrap-editable.js' ,
//'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min.js' ,
//'/plugins/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5.js' ,
//'/plugins/wysihtml5/wysihtml5.js',
'/plugins/jquery.scrollTo/jquery.scrollTo.min.js',
'/plugins/ScrollToFixed/jquery-scrolltofixed-min.js',
'/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js',
'/plugins/jquery.appear/jquery.appear.js',
'/plugins/jquery.elastic/elastic.js',
'/plugins/underscore-master/underscore.js',
'/plugins/jquery-mentions-input-master/jquery.mentionsInput.js',
'/plugins/jquery-mentions-input-master/jquery.mentionsInput.css',
'/plugins/jquery-mentions-input-master/lib/jquery.events.input.js',
);
//error_log("BasURL : ".Yii::app()->request->baseUrl);
HtmlHelper::registerCssAndScriptsFiles( $cssAnsScriptFilesModule ,Yii::app()->request->baseUrl);
$cssAnsScriptFilesModule = array(
'/js/news/autosize.js',
'/js/news/newsHtml.js',
'/js/menus/multi_tags_scopes.js',
'/js/cooperation/uiModeration.js',
'/js/cooperation/uiCoop.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
$cssAnsScriptFilesModule = array(
'/css/news/newsSV.css',
'/css/cooperation.css',
'/js/comments.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule,Yii::app()->theme->baseUrl."/assets");
?>
\ No newline at end of file
......@@ -161,6 +161,15 @@ foreach($news as $key => $media){
initCommentsTools(news);
<?php } ?>
//alert("bind me");
$(".live-container #news-list .btn-tag-news").off().click(function(){ console.log("yahiyaho");
var tag = $(this).data("filter");
$("#second-search-bar, #main-search-bar").val(tag);
startNewsSearch(true);
KScrollTo("#container-scope-filter");
});
$.each(news, function(e,v){
updateNews[e]= v;
if(typeof v._id.$id != "undefined")
......@@ -258,14 +267,14 @@ foreach($news as $key => $media){
<?php if(sizeof($news)==0){ ?>
scrollEnd = true;
<?php } ?>
scrollEnd = true;
<?php } ?>
$(".btn-start-moderation").off().click(function(){
var newsid = $(this).data("newsid");
uiModeration.getNewsToModerate(newsid);
});
$(".btn-start-moderation").off().click(function(){
var newsid = $(this).data("newsid");
uiModeration.getNewsToModerate(newsid);
});
initBtnLink();
initBtnLink();
});
</script>
......@@ -259,8 +259,9 @@
<?php if(@$media["tags"] && @$media["type"] != "activityStream")
foreach ($media["tags"] as $keyy => $tag) {
if($tag != "") { ?>
<a href="javascript:;" class="filter btn no-padding" data-filter=".'+tag+'">
<span class="text-red">#<?php echo $tag; ?></span>
<a href="javascript:;" class="btn-tag-news btn no-padding"
data-filter="<?php echo strpos($tag, "#")===false ? "#" : ""; echo $tag; ?>">
<span class="text-red"><?php echo strpos($tag, "#")===false ? "#" : ""; echo $tag; ?></span>
</a>
<?php }} ?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment