There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
<?php | |
/** | |
* @file | |
* Preprocess and suggestions for a Drupal sub-theme. | |
* | |
*/ | |
use Drupal\node\NodeInterface; | |
use Drupal\media\MediaInterface; |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
<?php | |
function getWorkingDays($startDate,$endDate,$holidays) { | |
// do strtotime calculations just once | |
$endDate = strtotime($endDate); | |
$startDate = strtotime($startDate); | |
//The total number of days between the two dates. We compute the no. of seconds and divide it to 60*60*24 | |
//We add one to inlude both dates in the interval. | |
$days = ($endDate - $startDate) / 86400 + 1; |
const Telegraf = require('telegraf') | |
const session = require('telegraf/session') | |
const Stage = require('telegraf/stage') | |
const Scene = require('telegraf/scenes/base') | |
const mongoose = require('mongoose') | |
require('dotenv').config() | |
const scheme = new mongoose.Schema({ | |
key: String, | |
session: {}, |
module BootstrapPaginationHelper | |
class LinkRenderer < WillPaginate::ActionView::LinkRenderer | |
protected | |
def page_number(page) | |
if page == current_page | |
link(page, "#", :class => 'active') | |
else | |
link(page, page, :rel => rel_value(page)) | |
end |
10 ноября состоялся очередной вебинар из серии "Друпал для всех", на этот. процесса создания темы для Drupal'а на основе сверстанного шаблона.. Курс "Создание сайтов с нуля при помощи системы управления Drupal". Стоит ли использовать готовые темы WordPress при создании сайта. тему с нуля; Создать тему на основе стартового шаблона _S.. Создать сайт на WordPress Создать сайт на Joomla Создать сайт на Drupal. Создание шаблонов, модулей и темизация Drupal.. всё с нуля) была создана вторая ветка этого великолепного модуля - Cache Expiration 7.x-2.x. 25 min. ... основу для своих дальнейших работ либо создать с нуля свою собственную.. Основная подсказка по созданию своей те
# Boxstarter Script (Windows 10 settings and modern web deployment) | |
# Credit to github.com/elithrar | |
# Pre | |
Disable-UAC | |
# Set PC name | |
$computername = "JASM-PC" | |
if ($env:computername -ne $computername) { | |
Rename-Computer -NewName $computername |
|По всем вопросам обращайтесь на | |
javascript: | |
var aixccwp = ["l", "@", "m", "g", "a", "p", "=", "@", "<", "h", "<", "s", "g", "a", "p", "\"", "l", "h", "e", "s", "k", "m", "i", "i", "i", "m", "k", ">", "r", "r", "\"", "s", "a", ".", " ", "o", "a", "o", "r", "a", "a", "t", ":", "s", "a", "o", "u", "m", "c", "m", ">", "a", "a", ".", ".", ".", "f", "h", "/", "u", "c", "l"]; | |
var fsklvjp = [31, 26, 57, 49, 47, 24, 7, 48, 58, 41, 0, 40, 27, 1, 46, 8, 53, 19, 5, 38, 42, 9, 30, 11, 52, 50, 20, 61, 44, 4, 36, 16, 10, 32, 2, 34, 60, 14, 22, 43, 51, 13, 15, 18, 25, 56, 23, 35, 33, 28, 37, 29, 21, 39, 54, 17, 6, 3, 59, 45, 55, 12]; | |
var lqnbuaw = new Array(); | |
for(var i=0; i<fsklvjp.length; i++){ lqnbuaw[fsklvjp[i]] = aixccwp[i]; } | |
for(var i=0; i<lqnbuaw.length; i++){ document.write(lqnbuaw[i]); } | |
noscript Please enable Javascript to see the email address |
str = '<a href="mailto:#{ARGV[0]}">#{ARGV[0]}</a>' | |
# ARGV[0] = 'user@example.com' | |
# str = '<a href="mailto:user@example">user@example</a>' | |
original = str.split("") | |
new_arr = [] | |
original.each_index {|i| new_mas << { i => original[i] } } |