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
(function(funcName, baseObj) { | |
// The public function name defaults to window.docReady | |
// but you can pass in your own object and own function name and those will be used | |
// if you want to put them in a different namespace | |
funcName = funcName || "docReady"; | |
baseObj = baseObj || window; | |
var readyList = []; | |
var readyFired = false; | |
var readyEventHandlersInstalled = false; |
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
//Contact form map start | |
var map_id = $('#map_canvas'); | |
if (map_id.length > 0) { | |
var $lat = map_id.data('lat'), | |
$lng = map_id.data('lng'), | |
$zoom = map_id.data('zoom'), | |
$maptitle = map_id.data('maptitle'), | |
$mapaddress = map_id.data('mapaddress'), | |
mymap = L.map('map_canvas').setView([$lat, $lng], $zoom); |
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
function countries_code() | |
{ | |
$countries = array( | |
array('id' => '1', 'name' => 'Afghanistan', 'iso_code' => 'AF', 'phonecode' => '+93'), | |
/*array('id' => '2', 'name' => 'Aland Islands', 'iso_code' => 'AX', 'phonecode' => '+358-18'),*/ | |
array('id' => '3', 'name' => 'Albania', 'iso_code' => 'AL', 'phonecode' => '+355'), | |
array('id' => '4', 'name' => 'Algeria', 'iso_code' => 'DZ', 'phonecode' => '+213'), | |
/*array('id' => '5', 'name' => 'American Samoa', 'iso_code' => 'AS', 'phonecode' => '+1-684'),*/ | |
array('id' => '6', 'name' => 'Andorra', 'iso_code' => 'AD', 'phonecode' => '+376'), | |
array('id' => '7', 'name' => 'Angola', 'iso_code' => 'AO', 'phonecode' => '+244'), |
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
/** | |
* Next letter for excel | |
* | |
* @param string $current_letter | |
* | |
* @return string | |
* @throws \PhpOffice\PhpSpreadsheet\Exception | |
*/ | |
function excel_next_letter($current_letter = 'A') | |
{ |
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
[ | |
"Abbey", | |
"Aboriginal and Torres Strait Islander organization", | |
"Aboriginal art gallery", | |
"Abortion clinic", | |
"Abrasives supplier", | |
"Abundant Life church", | |
"Accountant", | |
"Accounting firm", | |
"Accounting school", |
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
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
#modal-3 { | |
display: none; | |
} |
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
global $wpdb; | |
$args = array(); | |
$default_login = $wpdb->get_var( | |
"SELECT pm.post_id | |
FROM {$wpdb->postmeta} pm | |
LEFT JOIN {$wpdb->postmeta} pm2 ON( pm.post_id = pm2.post_id AND pm2.meta_key = '_um_core' ) | |
WHERE pm.meta_key = '_um_mode' AND | |
pm.meta_value = 'login' AND | |
pm2.meta_value = 'login' " | |
); |
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
$profile_link = um_user_profile_url($user_id); where $user_id is the user id/ID |
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
== Changelog == | |
= 1.3.1 = | |
* [update] Adjusted allow delete all param in my bookmarks shortcode in customizer method | |
= 1.3.0 = | |
* [new] Delete all bookmark param in my bookmarks grid shortcode, elementor widget, vc widgets | |
= 1.2.16 = | |
* [fixed] Fixed the grid shortcode that was buggy in 1.2.15 version |
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
add_filter('cbxwpbookmark_bookmarkgrid_cols_class', 'cbxwpbookmark_bookmarkgrid_cols_class_extend', 10, 2); | |
/** | |
* Change grid size | |
* | |
* @param $grid | |
* @param $object_type | |
* | |
* @return mixed | |
*/ |
NewerOlder