View functions.php
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
/** | |
* Force first page of results in archives to an odd number, later pages to an even number | |
*/ | |
add_action( 'pre_get_posts', 'elodin_change_posts_number_home_page_to_odd' ); | |
function elodin_change_posts_number_home_page_to_odd( $query ) { | |
// only modify the query if it's the main query | |
if ( !is_admin() && $query->is_main_query() ) { | |
View functions.php
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
<?php | |
function elodin_section_block_get_the_colors_formatted_for_acf_from_theme_support() { | |
// get the colors | |
$color_palette = current( (array) get_theme_support( 'editor-color-palette' ) ); | |
// bail if there aren't any colors found | |
if ( !$color_palette ) | |
return; |
View gist:b7802d145c34000063ce36cbd7bfcbbb
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
// get the palette from the theme defaults, as defined in theme.json | |
$color_palette = []; | |
if ( class_exists( 'WP_Theme_JSON_Resolver' ) ) { | |
$settings = WP_Theme_JSON_Resolver::get_theme_data()->get_settings(); | |
if ( isset( $settings['color']['palette']['theme'] ) ) { | |
$color_palette = $settings['color']['palette']['theme']; | |
} | |
} | |
// do stuff with $color_palette |
View apartment-sync.php
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
// This constant should be defined in the main file for the plugin, even if the rest of this code is loaded elsewhere | |
define( 'APARTMENTSYNC_DIR', plugin_dir_path( __FILE__ ) ); | |
use AC\ListScreenRepository\Storage\ListScreenRepositoryFactory; | |
use AC\ListScreenRepository\Rules; | |
use AC\ListScreenRepository\Rule; | |
add_filter( 'acp/storage/repositories', function( array $repositories, ListScreenRepositoryFactory $factory ) { | |
//! Change $writable to true to allow changes to columns for the content types below | |
$writable = false; |
View staff-plugin.php
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
// This constant should be defined in the main file for the plugin, even if the rest of this code is loaded elsewhere | |
define( 'ELODIN_STAFF_DIR', plugin_dir_path( __FILE__ ) ); | |
use AC\ListScreenRepository\Storage\ListScreenRepositoryFactory; | |
use AC\ListScreenRepository\Rules; | |
use AC\ListScreenRepository\Rule; | |
add_filter( 'acp/storage/repositories', function( array $repositories, ListScreenRepositoryFactory $factory ) { | |
//! Change $writable to true to allow changes to columns for the content types below | |
$writable = false; |
View error-codes-for-properties.txt
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
2021-03-29 07:50:03 Yardi returned error code 1050 for property 1010Linc. | |
2021-03-29 07:50:04 Yardi returned error code 1070 for property 101914. | |
2021-03-29 07:50:04 Yardi returned error code 1070 for property 102714. | |
2021-03-29 07:50:04 Yardi returned error code 1050 for property 1031Port. | |
2021-03-29 07:50:04 Yardi returned error code 1050 for property 103314th. | |
2021-03-29 07:50:04 Yardi returned error code 1050 for property 1041gr. | |
2021-03-29 07:50:05 Yardi returned error code 1070 for property 106813. | |
2021-03-29 07:50:05 Yardi returned error code 1050 for property 108013th. | |
2021-03-29 07:50:05 Yardi returned error code 1070 for property 1085-3. | |
2021-03-29 07:50:06 Yardi returned error code 1050 for property 1085b5. |
View comma-list-of-floorplans.txt
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
100011th,1002univ,100615th,101012th,1010Linc,10119th,101210th,101214th,101215th,1014penn,101511th,1015penn,1018col,101914,102010th,1025-102,102714,10309th,1030smon,1031Port,103314th,103712th,104113th,1041gr,104511th,104512th,104514th,1050sir,105914th,106511th,1065-112,1065-116,1065-122,1065-204,1065-203,1065-219,1065-102,1065-120,1065-110,1065-118,1065-218,1065-220,106813,1075sir,107511th,10779th,108010th,108011th,108013th,1085-11,1085-13,1085-19,1085-3,1085b5,1100Clar,1101penn,1101-110,1111linc,1111Maxw,111412th,1115penn,112510th,1125Linc,112712th,1131UNIV,113111th,113510th,113710th,1137colu,1138-40,113912th,114010th,1150Coll,1150lin,115110th,1151Gran,1156Linc,1163linc,1189Monr,1200-224,1200-118,1200-125,1200-201,1200203,1200-210,1200-213,1200-219,1200-220,1200-205,1200108,1200-101,1200-106,1200-109,1200-110,1200-112,1200-113,1200-124,1200207,1200208,1200-211,1200-214,1200215,1200-216,1200-218,1201Bren,1215resi,1215E14t,1215comm,1217east,122126th,1235resi,1235comm,1238was,1242was,1302mil,1308gra,1328coff,135 |
View connections.php
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
<?php | |
add_action( 'mb_relationships_init', function () { | |
MB_Relationships_API::register( array( | |
'id' => 'programs_to_updates', | |
'to' => 'projects', | |
'from' => 'updates', | |
) ); |
View style.css
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
@media( max-width: 600px ) { | |
p[text-align:"center"], | |
p.align-center { | |
text-align: left; | |
} | |
} |
View gist:3de11664fc4925514d434cbd5a26865f
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
jQuery(document).ready(function( $ ) { | |
$( window ).on( 'load', staffpageload ); | |
$( '.stafftermlink' ).on( 'click', stafftermclick ); | |
function stafftermclick( e ) { | |
e.preventDefault(); | |
//* set the clicked link to active | |
$( '.stafftermlink' ).attr( 'data-status', 'inactive' ); |
NewerOlder