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
/** | |
* Nice select component | |
* */ | |
Vue.component('mx_nice_select', { | |
props: { | |
options: { | |
type: Array, | |
required: true | |
// [ | |
// { |
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
C:\Windows\System32\drivers\etc\hosts | |
127.0.0.1 localhost demo-domain-test.local | |
D:\xampp\apache\conf\httpd.conf | |
<VirtualHost demo-domain-test.local:80> | |
ServerName demo-domain-test.local | |
ServerAlias demo-domain-test.local | |
DocumentRoot "D:/xampp/htdocs/demo-domain-test.local/" | |
<Directory "D:/xampp/htdocs/demo-domain-test.local/"> | |
Order allow,deny |
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
sendCommand(SecurityInterstitialCommandId.CMD_PROCEED) |
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 | |
// create CPT | |
register_post_type( 'appeal', array( | |
'labels' => array( | |
'name' => 'Обращения', | |
'singular_name' => 'Обращение', | |
'add_new' => 'Добавить обращение', | |
'add_new_item' => 'Добавить обращение', |
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 | |
$posts_table = $wpdb->prefix . 'posts'; | |
$term_relationships_table = $wpdb->prefix . 'term_relationships'; | |
$sql_str = "SELECT ID, post_title, post_date, post_title, post_content | |
FROM $posts_table | |
INNER JOIN $term_relationships_table ON $posts_table.ID = $term_relationships_table.object_id | |
WHERE $term_relationships_table.term_taxonomy_id = $tax_id |
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
function detectMouseWheelDirection( e ) | |
{ | |
var delta = null, | |
direction = false | |
; | |
if ( !e ) { // if the event is not provided, we get it from the window object | |
e = window.event; | |
} | |
if ( e.wheelDelta ) { // will work in most cases | |
delta = e.wheelDelta / 60; |
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 | |
// Exit if accessed directly | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// add common content page | |
add_action( 'admin_menu', 'mx_common_content_page' ); | |
function mx_common_content_page() { |
NewerOlder