This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="chat-message-form"> | |
<?php | |
$user = JFactory::getUser(); | |
if(in_array('2', $user->groups)) { // check for group with id: 2 | |
?> | |
<form action="#"> | |
<input class="chat-new-message" name="new-message" type="text" placeholder="Напишите сообщение" /> | |
<button class="chat-send-message" id="mod-chat-btn" type="button"></button> | |
</form> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="#"> | |
<input type="hidden" name="Username" id="mod-chat-username" value="<?php echo JFactory::getUser()->get('username'); ?>"> | |
<input class="chat-new-message" name="new-message" id="mod-chat-message" type="text" placeholder="Напишите сообщение" /> | |
<button class="chat-send-message" id="mod-chat-btn" type="button"></button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Если работаем внутри модуля или компонента | |
echo JText::_('MOD_LOGIN_VALUE_USERNAME'); //Просто указываем название свойства и получаем занчение | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo gmdate("H:i:s", 685); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$( document.body ).on( 'click', '#datapicker', function() { | |
//alert(""); | |
$(this).datepicker({showOn:'focus'}).focus(); | |
}); | |
}(jQuery)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* *****************************Запретить определенные дни******************************* */ | |
var disabledDays = ["1-10-2017","5-10-2017","10-10-2017","11-10-2017","15-10-2017","7-10-2017"]; | |
/* utility functions */ | |
function nationalDays(date) { | |
var m = date.getMonth(), d = date.getDate(), y = date.getFullYear(); | |
//console.log('Checking (raw): ' + m + '-' + d + '-' + y); | |
for (i = 0; i < disabledDays.length; i++) { | |
if($.inArray((m+1) + '-' + d + '-' + y,disabledDays) != -1 || new Date() > date) { | |
//console.log('bad: ' + (m+1) + '-' + d + '-' + y + ' / ' + disabledDays[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Хедер | |
.navbar-header | |
.nav | |
.navbar-nav | |
#Контент | |
.container | |
.row | |
.col- [offset-] | |
.col-sm-[offset-] | |
.col-md-[offset-] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#menu-top-menu").find(".menu-item").click(function(){ | |
var hash = $(this).find("a").attr("href").split("#")[1]; | |
var hashNum = 0; | |
if (window.location.hash != ''){ | |
hashNum = window.location.hash.replace("#"+hash, ""); | |
console.log('hashNum: ' + hashNum); | |
}; | |
hashMenu = jQuery("#"+hash).offset().top; | |
jQuery('html,body').animate({ | |
scrollTop: hashMenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnyWidgetObject(Popup): | |
def selected_file(self, *args): | |
super(AnyWidgetObject, self) | |
self.parent.children[1].ids.AnyElementId.text = "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TextListView(StackLayout): | |
pass | |
#:kivy 1.10.1 | |
# -*- coding: utf-8 -*- | |
#: import ListItemButton kivy.uix.listview.ListItemButton | |
#: import ListAdapter kivy.adapters.listadapter.ListAdapter | |
<TextListView>: | |
ListView: | |
adapter: ListAdapter(data = ['0','1','2','3','4','5','6','7','8','9'], |
OlderNewer