[solved] How to delete text symbol from php line?
$string = 'Some Text .... 1. 2 .3. Buy'; $string = preg_replace('~[^0-9]+~','',$string); echo $string; // 123
[solved] How to delete all version from cource code in css & js files with your theme
For delete all version from css & js files in your Wordpress theme - I use function sdt_remove_ver_css_js with one argument. Add this code to your wp-content/themes/your-theme/function.php
// Remove WP Version From Styles add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999 ); // Remove WP Version From Scripts add_filter( 'script_loader_src', 'sdt_remove_ver_css_js', 9999 ); // Function to remove version numbers function sdt_remove_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; }
Awesome!
[solved] Deprecated: Methods with the same name as their class will not be constructors ... www/plugins/content/jw_sigpro/jw_sigpro.php on line 19
If you update your hosting to v7.1 & more - you can look same notification 'Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_sigpro has a deprecated constructor in .../www/plugins/content/jw_sigpro/jw_sigpro.php on line 19'
This code fix this problem you need Open plugins/content/jw_sigpro/jw_sigpro.php find this code in line 28:
function plgContentJw_sigpro(&$subject, $params) { parent::__construct($subject, $params); // Define the DS constant under Joomla! 3.0 if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } }
And replase it to this code:
public function __construct(&$subject, $params) { parent::__construct($subject, $params); // Define the DS constant under Joomla! 3.8.2+ if (!defined('DS')){ define('DS', DIRECTORY_SEPARATOR); } }
Awesome - it work done! :-)
If you see same problem with jw_sig.php - just download free new plugin from GitHub and install it: https://github.com/joomlaworks/simple-image-gallery
Apple does not specifically show its announcements in other browsers. #appleshit
Fusking Apple) Apple must Die!
[Schema.org] Micro-markup menu items
Many of us are very familiar with micro-markup and know firsthand what schema.org is. But I would like to note that not many people use this format to mark the navigation menu of the site. Here is an example of marking menu items in the schema.org format:
<ul itemscope itemtype="http://www.schema.org/SiteNavigationElement"> <li itemprop="name"> <a itemprop="url" href="#">Link</a> </li> <li itemprop="name"> <a itemprop="url" href="#">Link</a> </li> <li itemprop="name"> <a itemprop="url" href="#">Link</a> </li> </ul>
[solved] How to configurate aliases in Sublime Text
Use Terminal and run commands
subl ~/.zshrc
then we can add commands:
# In line 88 change aliases text: # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" alias db="cd ~/Dropbox/" alias doc="cd ~/Documents/" alias zs="subl ~/.zshrc" alias gum="git pull upstream master"
Profit!
One Way to Donate and Support Hurricane Irma Victims
Together with Alex & Benjamin, we created an international company to support the victims of the hurricane IRMA. We ask you not to remain indifferent and donate money to charity.
It’s not easy to realize that people after Hurricane Irma, which suits Harvey, have nowhere to sleep, there is no drinking water. Help me raise money to help rebuild. External support is needed, and I will send all the money received directly to non-profit organizations operating in the region.
Visit to link for Donate: https://fundly.com/donate-to-and-support-hurricane-irma-victims
Hurricane Irma is already leading to catastrophic and tragic destruction in the Caribbean. The region will desperately need financial support to help heal and recover from this incredible catastrophe.
Background from nav menu
nav.mainnavigation-menu { background: rgba(0, 0, 0, 0) radial-gradient(ellipse at center center , #005982 0%, #002d4b 100%) repeat scroll 0 0; display: none; height: 100vh; left: 0; margin-top: 0; opacity: 0; position: fixed; text-align: center; top: 0; width: 100%; z-index: 3; }
[clip] Rixton - Me and My Broken Heart
How to trim String text in php
For example we have text
<strong> The Times NY </strong>
But good result need be
<strong>The Times NY</strong>
I make regexp in php
function trim_text($str) { return trim(preg_replace('/\s{2,}/', ' ', $str)); }
How to capitalize the first letter in a cell in Excel
That was how to capitalize just the first letter of each word in a cell using the Microsoft Excel very easy (change A1 to you num.cell)
// For example: A1 = katy =CONCATENATE(UPPER(LEFT(A1,1)),RIGHT(A1,LEN(A1)-1))
[solved] How to disabling the “Enable notifications?” popup in Firefox
(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful. (2) In the search box above the list, type or paste webno and pause while the list is filtered (3) To disable PUSH NOTIFICATIONS, double-click the dom.webnotifications.serviceworker.enabled preference to switch its value from true to false -- sites can still generate desktop notifications while you have a tab open to the site (4) To disable ALL NOTIFICATIONS, double-click the dom.webnotifications.enabled preference to switch its value from true to false -- this is a master switch, you won't get any desktop notifications from sites
Cool Zombie Outbreak
Cool Zombie Outbreak
<div id="marquee"> <div><span>STAY INDOORS: ZOMBIE OUTBREAK</span></div> <div><span>STAY INDOORS: ZOMBIE OUTBREAK</span></div> </div> <form onsubmit="setText(event)"><label for="textsource">Source text</label> <input id="textsource" title="Text must be 5 to 30 characters in length" pattern=".{5,30}" type="text" value="STAY INDOORS: ZOMBIE OUTBREAK" /> <input type="submit" value="Use" /></form> <script type="text/javascript" xml="space">// <![CDATA[ function setText(event){ event.preventDefault(); leftText.innerText = textsource.value.toUpperCase(); rightText.innerText = textsource.value.toUpperCase(); } var leftText = document.querySelector("#marquee div:first-of-type span"); var rightText = document.querySelector("#marquee div:last-of-type span"); var textsource = document.getElementById("textsource"); setText(); // ]]></script>
#marquee { margin-top: 3rem; perspective: 500px; font-size: 0; font-family: Agency, sans-serif; } #marquee div { display: inline-block; height: 12rem; width: 30rem; position: relative; } #marquee div:first-of-type { background: #e5233e; transform-origin: top right; transform: rotateY(-40deg); color: #fff; } #marquee div:last-of-type { background: #b31e31; transform-origin: top left; transform: rotateY(45deg); color: #f8c9d9; } #marquee div { font-size: 8rem; overflow: hidden; } #marquee div span { position: absolute; width: 400%; line-height: 1.4; } @keyframes leftcrawl { to { transform: translateX(-100rem); } } @keyframes rightcrawl { to { transform: translateX(-130rem); } } #marquee div:first-of-type span { transform: translateX(60rem); animation: leftcrawl 14s linear infinite; text-shadow: 4px 0px 4px rgba(0, 0, 0, 0.3); } #marquee div:last-of-type span { transform: translateX(30rem); animation: rightcrawl 14s linear infinite; } #marquee form { margin-top: 3rem; background: #334; padding: 1rem; text-align: center; color: #fff; } #marquee input[type="text"] { padding: .5rem; font-size: 1.2rem; width: 22rem; } #marquee input[type="text"] { padding: .5rem; } l#marquee label { margin: 1rem; } @media all and (max-width: 993px) { #marquee { perspective: none; } #marquee div:last-of-type { opacity: 0; height: 0; } #marquee div:first-of-type { width: 80%; } }
Mac how to Upgrade php v5 to php v7
We will proceed by installing PHP 5.5, PHP 5.6, PHP 7.0, and PHP 7.1 and using a simple script to switch between them as we need.
$ brew install php55 --with-apache $ brew unlink php55 $ brew install php56 --with-apache $ brew unlink php56 $ brew install php70 --with-apache $ brew unlink php70 $ brew install php71 --with-apache
Let's do it!
brew install php71
Or use this code and install php 7.3 without brew
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
and after that run this in terminal
export PATH=/usr/local/php5/bin:$PATH
But, we looking Error:
==> Installing php71 from josegonzalez/php Error: Cannot install josegonzalez/php/php71 because conflicting formulae are installed. php55: because different php versions install the same binaries. Please `brew unlink php55` before continuing. Unlinking removes a formula's symlinks from /usr/local. You can link the formula again after the install finishes. You can --force this install, but the build may fail or cause obscure side-effects in the resulting software.
Dont panic! :-) Run unlink command:
brew unlink php55
# Unlinking /usr/local/Cellar/php55/5.5.38_11... 17 symlinks removed
Then try again:
brew install php71 # ==> Summary # ? /usr/local/Cellar/php71/7.1.0_11: 342 files, 39.7M
Then try our php version
php -v
PHP 7.1.0 (cli) (built: Dec 2 2016 03:30:24) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
What you can do if you type php -v and show php v5.5?
open terminal and put this code and press Enter
export PATH=/usr/local/php5/bin:$PATH
AH00526: Syntax error on line 20 apache2/extra/httpd-mpm.conf: Invalid command LockFile
Open Terminal
sudo mv httpd-mpm.conf httpd-mpm.conf.elcapitan sudo cp httpd-mpm.conf~orig httpd-mpm.conf
and then entered the commands:
sudo apachectl restart apachectl configtest
The last command returned "Syntax OK". Now work Done!
Bluetooth Not Available on your's Mac
From the OS X Finder, hit Command+Shift+G to summon "Go To Folder" and enter the following path:
/Library/Preferences/
- Locate the file named “com.apple.Bluetooth.plist” and delete it (you may see a com.apple.Bluetooth.plist.lockfile too, if so delete that as well) – this is a system folder so you will need to authenticate with an admin user
- Head to the Apple menu and choose “Shut Down” to power down the Mac
Let started use Amazon AWS
First, check to see if you already have Python installed:
$ python --version
If you don't have Python installed, follow the procedure at Install Python to set it up.
Next, check pip:
$ pip --help
-
If Python 2.7 or later is not installed, install it with your distribution's package manager. The command and package name varies:
-
On Debian derivatives such as Ubuntu, use APT:
$
sudo apt-get install python
-
On Red Hat and derivatives, use yum:
$
sudo yum install python
-
On SUSE and derivatives, use zypper:
$
sudo zypper install python
-
-
Open a command prompt or shell and run the following command to verify that Python installed correctly:
$
python --version
Python 2.7.10
I am going to home (Kiev to JV)
[29.11.2022] I'm drive to home, cool weather at a speed of 160 km per hour and slowly internet,) the snow outside the window shatters on the speed. I typed to John that all questions for work - tomorrow. My MacBook restored after failure, I'm happy ,-)
[solved] How to disable unneeded scripts in joomla 3.6 (img.caption js.migrate...)
To disable scripts you can insert here the php code in the head pattern
<?php unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js'], $this->_scripts[$this->baseurl.'/media/system/js/mootools-more.js'], $this->_scripts[$this->baseurl.'/media/system/js/core.js'], $this->_scripts[$this->baseurl.'/media/jui/js/bootstrap.min.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery.min.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery-noconflict.js'], $this->_scripts[$this->baseurl.'/media/jui/js/jquery-migrate.min.js'], $this->_scripts[$this->baseurl.'/media/system/js/caption.js']); if( isset($this->_script['text/javascript']) ) { $this->_script['text/javascript'] = preg_replace('\.addEvent\(\'load\',\s*(\'img.caption\'\);\s*}\);\s*%', '', $this->_script['text/javascript']); if( empty($this->_script['text/javascript']) ) unset( $this->_script['text/javascript'] ); }; ?>
[solved] Where MAMP PRO MySQL Database Folder
The Updated version of MAMP Pro is saving the databases on a different location. I have installed the MAMP Pro for all users of the machine and can find one here
Open Finder and go to Menu: Go -> Go to Folder and paste them
~/Library/Application Support/appsolute/MAMP PRO/
If the MAMP installation is for specific users, we can find it here
/Macintosh HD/Users/username/Library/Application Support/appsolute/MAMP PRO/db/mysql/
Viva la Revolution!
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
[ solved ] k2 joomla - fix Tags, when K2 remove spaces and Dashes
If you save K2 article and K2 remove from the Tags spases and dashes - we need fix this in function check (). Open administrator\components\com_k2\tables\k2tag.php. Pleace find line 30 and replase this code
// Oldest line 30 $this->name = JString::str_ireplace('-', '', $this->name);
Replase old line in this code:
// approve - and space $this->name = JString::str_ireplace('-', '—', $this->name); $this->name = JString::str_ireplace(' ', ' ', $this->name);
The Avener - To Let Myself Go ft. Ane Brun
SCRUM - як працювати в два рази менше, встигаючи в два рази більше
[fix] Strict standards: Declaration of K2Element::render() should be compatible with JFormField::render
Krikor say "This is unrelated of the recent updates. This is to either a template issue (unclosed HTML tags) or if it happens only in particular items, it means that there are unclosed HTML tags in these items."
Try go to administrator, System -> Global Configuration -> Server -> Error Reporting: select "None"
Как сделать список ul->li в CSS русскими буквами и с продолжением в новых строках
К примеру мы имеем такой список ul li
<ol> <li>Москва</li> <li>Вильнюс</li> <li>Хьюстон</li> <li>Буратино</li> <li>Гротеск</li> </ol> <ol> <li>Америка</li> <li>Китай</li> <li>Индия</li> <li>Таиланд</li> <li>Украина</li> </ol>
Javascript
// прописываем необходимые буквы в переменную var letters = "абвгдежзиклмнопрстуфхцчшщэюя"; $.each($('ol'), function() { var item = $(this).find('li'); item.each(function(i){ $(this).attr("russ", letters[i] + ")"); }); });
Прописываем стиль
ol { list-style-type: none; } ol > li::before { display: inline-block; content: attr(russ); width: 1.2rem; margin-left: -2rem; }
How get sef parameter from joomla configuration
$mainframe = JFactory::getApplication(); echo $mainframe->getCfg('sef');
Html code PayPal with overlay
<div style="height: 100%; bottom: 0px; background-color: white; border: 1px none; opacity: 1; position: absolute; width: 620px; z-index: 8000; overflow: scroll; margin-left: 410px;" class="newFeaturesPopup"><span id="newFeaturesPopupClose" style="color: black; font-size: 22px; float: right; margin-right: 40px; margin-top: 40px;" aria-hidden="true" class="icon icon-close-small"></span><div style="padding-left: 140px; padding-right: 140px; padding-top: 100px;" id="existingUserText"><h1 style="font-size:30px">New-look PayPal</h1><h1 style="font-size:30px">Invoicing features</h1><br><br><span style="font-size:13px;line-height:1.5em;display:block">We've added a few things to make getting paid and managing your payments a little easier.</span><br><br><br><span style="font-size:13px"><ul style="padding-left:20px;list-style-type: disc;"><li>Choose from 3 new templates</li><li>Accept partial payments and deposits.</li><li>Record cash and check payments.</li><li>Send a copy of the invoice to one or more people.</li><li>Share an invoice link with your customer.</li><li>Save a PDF of the invoice.</li><li>See a more detailed invoice history</li></ul></span><br><br><span style="font-size:13px">To learn more about these and other features,</span> <a target="_blank" href="/invoice/features-help" style="color:#009cde;font-size:13px">visit our Features page.</a><div align="center" style="margin-top:50px"><img src="/invoice/images/pp_m_rgb.png" style="display: block; width: 18px; position: static; bottom: 40px; left: 50%;"></div></div><div style="padding-top: 80px; padding-left: 120px; padding-right: 120px; display: none;" id="newUserText"><h1 style="font-size:30px;margin-bottom:20px">PayPal Invoicing features</h1><br><span style="font-size:12px;line-height:1.5em;display:block">We know you have a lot on your plate so we're keeping the payments part simple by helping you send customized invoices that work for your business.</span><br><br><h1 style="font-size:18px">Create and customize</h1><br><span style="font-size:12px"><ul style="padding-left:20px;list-style-type: disc;"><li>Customize your invoice layout.</li><li>Choose from 3 templates or create your own</li><li>Request and accept payments in multiple currencies.</li><li>Attach images and PDF files.</li></ul></span><br><h1 style="font-size:18px">Get it to your customer</h1><br><span style="font-size:12px"><ul style="padding-left:20px;list-style-type: disc;"><li>Send the invoice and we'll email it to your customer</li><li>Or share a link to the invoice instead.</li><li>Send a copy of the invoice to one or more people.</li><li>Send an invoice for free. You only pay when your customer pays it.<br><a target="_blank" href="https://www.paypal.com/us/webapps/mpp/merchant-fees#invoicing" style="color:#009cde;font-size:13px">See Invoicing fees</a></li></ul></span><br><h1 style="font-size:18px">Get paid</h1><br><span style="font-size:12px"><ul style="padding-left:20px;list-style-type: disc;"><li>Customers can pay with their PayPal account, or their credit or debit card.</li><li>Receive an email when your customer has paid</li><li>Accept partial payments and deposits.</li><li>Record cash and check payments.</li></ul></span><br><h1 style="font-size:18px">Manage your invoices</h1><br><span style="font-size:12px"><ul style="padding-left:20px;list-style-type: disc;"><li>Quickly view unpaid invoices and send reminders.</li><li>See your invoice history, including payments and reminders.</li><li>Export your invoice summary or details.</li><li>Save a PDF of the invoice.</li></ul></span><br><span style="font-size:13px">To learn more about these and other features,</span> <a target="_blank" href="/invoice/features-help" style="color:#009cde;font-size:13px">visit our Features page.</a><img src="/invoice/images/pp_m_rgb.png" style="display: block; margin: 70px auto 30px; width: 18px; position: static;"></div><br><br><span style="clear:both"></span></div>
If you're having a problem converting a query string to an array in joomla
If you're having a problem converting a query string to an array because of encoded ampersands &
// Input string // $input = 'pg_id=2&parent_id=2&document&video'; // Parse // parse_str(html_entity_decode($input), $out); // Output of $out // array( 'pg_id' => 2, 'parent_id' => 2, 'document' => , 'video' => )
How to change the component parameters in Joomla 3 in code?
<?php // получаем параметры компонента com_users $params = JComponentHelper::getParams('com_users'); // устанавливаем требуемое значение $params->set('guest_usergroup', '1'); // записываем измененные параметры в БД $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->update($db->quoteName('#__extensions')); $query->set($db->quoteName('params') . '= ' . $db->quote((string)$params)); $query->where($db->quoteName('element') . ' = ' . $db->quote('com_users')); $query->where($db->quoteName('type') . ' = ' . $db->quote('component')); $db->setQuery($query); $db->execute(); ?>
In this example, it is important to pay attention to the reduction of the variable $params to string. As a result of this reduction JRegistry object it will be converted into JSON format and you want to record in the field params #__extensions table.