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
//Условие IF | |
{$id == '1' ? '' : $url} | |
//Получение изображения через переменную с точкой ($_pls) | |
{$_pls["tv.img"] | phpthumbon : "w=300&h=200&zc=1"} | |
//Без префикса | |
{$img | phpthumbon : "w=300&h=200&zc=1"} | |
//Информация о прозводителе | |
{$_modx->makeUrl($_pls['vendor.resource'])} |
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
import ConfigParser, mmap | |
config_file = "/usr/share/applications/google-chrome.desktop" | |
add_string_to_each_section = ["StartupWMClass", "Google-chrome-stable"] | |
option = add_string_to_each_section[0] | |
value = add_string_to_each_section[1] | |
class Fixer: | |
def check(self, cf, option, value): |