This file contains hidden or 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
| { | |
| "name": "select2", | |
| "title": "Select2", | |
| "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", | |
| "keywords": [ | |
| "select", | |
| "autocomplete", | |
| "typeahead", | |
| "dropdown", | |
| "multiselect", |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>How to check password strength using jQuery</title> | |
| <!--jQuery Library--> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="style.css" /> | |
| <script src="script.js"></script> | |
| </head> |
This file contains hidden or 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 | |
| // **************************************************************************** | |
| // ******** Отключаем админ панель для всех, кроме администраторов. | |
| // **************************************************************************** | |
| if (!current_user_can('administrator')): | |
| show_admin_bar(false); | |
| endif; | |
| // **************************************************************************** | |
| // ******** Отключаем админ-панель для всех пользователей. |
This file contains hidden or 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 | |
| $ip = $_SERVER['REMOTE_ADDR']; | |
| $browser = $_SERVER['HTTP_USER_AGENT']; | |
| $referrer = $_SERVER['HTTP_REFERER']; | |
| if ($referred == "") { | |
| $referrer = "This page was accessed directly"; | |
| } | |
| echo "<b>Visitor IP address:</b><br/>" . $ip . "<br/>"; | |
| echo "<b>Browser (User Agent) Info:</b><br/>" . $browser . "<br/>"; | |
| echo "<b>Referrer:</b><br/>" . $referrer . "<br/>"; |
This file contains hidden or 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 id="scrollUp"><img src="http://s014.radikal.ru/i328/1512/c1/1c1585b88ebc.png" alt="Up" title="Scroll window up"></div> |
This file contains hidden or 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 | |
| /* | |
| Template Name: Login/Logout Page | |
| */ | |
| //* Remove our default page content | |
| remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
| //* Add custom login form to our page content | |
| add_action( 'genesis_entry_content', 'ck_do_login_form' ); |
This file contains hidden or 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
| # Source: https://wordpress.org/support/topic/success-mapping-multiple-domains-to-different-folders-with-htaccess | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| # --------------------------------------- | |
| # BEGIN Domain to folder mapping | |
| # pointing domain_1.com to folder_1 |
This file contains hidden or 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 | |
| function custom_search_template($template) { | |
| global $wp_query; | |
| $post_type = get_query_var('post_type'); | |
| if (!$wp_query->is_admin | |
| && $wp_query->is_search | |
| && isset($post_type) | |
| && $post_type === 'faq') { |
This file contains hidden or 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
| mailto:{email_address}?subject={subject}&body=<?php echo urlencode(get_the_title()); ?>%0A<?php the_permalink(); ?> | |
| # Google+ | |
| https://plus.google.com/share?url=<?php the_permalink(); ?> | |
| https://twitter.com/intent/tweet?url=<?php the_permalink(); ?>&via={username}&text=<?php echo urlencode(get_the_title()); ?>&in_reply_to={username}&hashtags={hash,tags}&related={usernames,usernames} | |