Skip to content

Instantly share code, notes, and snippets.

eMarket Design emarket-design

View GitHub Profile
@emarket-design
emarket-design / one column aniversary
Created Feb 1, 2019
create a one-column anniversary view
View one column aniversary
<style>
#onecolumn .row{
flex-direction: column !important;
}
</style>
<div id="onecolumn" style="padding:40px 0">
[std_anniversary filter="tax::departments::is::executive;"]
</div>
View gist:88d5c49ecc2b1fdc7b4fd178ecd59725
!#datagrid['tablerel2174','!#title#;!#featured_img#;!#ent_employee_email#;!#ent_employee_phone#;!#ent_employee_extension#;!#ent_employee_mobile#;!#tax_jobtitles#;!#entrelcon_from_manager#;!#entrelcon_from_executive_assistant#;!#entrelcon_employees_locations#;!#entrelcon_employees_departments#','Employee;Photo;Email;Phone;Extension;Mobile;Job Title;Manager;Assistant;Location;Department','R','emd_employee','!#entrelcon_to_manager#','connected','',1]#
@emarket-design
emarket-design / gist:2a5b50cd0c957e218b12599a7aa78568
Last active Aug 23, 2018
Datagrid tag function can be used to create advanced tabular displays without introducing complexity in entity or widget views
View gist:2a5b50cd0c957e218b12599a7aa78568
!#datagrid['Unique Name','Default Attr List seperated by semicolon','Default Attr Labels seperated by semicolon','Grid Type','Entity Name','Relationship Name','Relationship Type','Create New Entity with Relationship Form Name',Create Relationship]#
View gist:7d070139a36062d6068a71e8fda0ae37
.row.display-flex {
display: flex;
flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
display: flex;
flex-direction: column;
}
View Knowledge Center Enterprise WordPress Plugin rating css
div.emd-ratings img{
width: 30%;
padding: 3px;
height: 30px;
}
div.emd-container .section-rating div.row > div.col-sm-6{
width:100%;
}
div.emd-container .section-rating div.row > div.col-sm-6 > div[class$="-rating"] > div{
View Knowledge Center Enterprise WordPress Plugin rating text
<div class="text-center emd-rating-block">
<div class="small text-bold">Was this information helpful?</div>
{my_rating}
</div>
View Alphabetical searches for Employee Directory Pro
<p class="lead">You can create multiple alphabetical searches on the same page. Below we search employees by their names, departments and job titles alphabetically.</p>
<h2>Search by Departments</h2>
<div class="row" style="margin:20px 0">
[alpha_employees set="glob::glb_alpha_all_text::is::All Departments;glob::glb_alpha_search_by::is::.elist-group-item .tax-departments;"]</div>
<h2>Search by Employee Names</h2>
<div class="row" style="margin:20px 0">
[alpha_employees set="glob::glb_alpha_all_text::is::All Employees;glob::glb_alpha_search_by::is::.elist-group-item .person-name;"]</div>
<h2>Search by Job Titles</h2>
View allow or disallow file types
function uploadable_file_types( $mimes ) {
// New allowed mime types.
$mimes['svg'] = 'image/svg+xml';
$mimes['svgz'] = 'image/svg+xml';
$mimes['doc'] = 'application/msword';
// Optional. Remove a mime type.
unset( $mimes['exe'] );
@emarket-design
emarket-design / gist:8ad67ef0a864e892417046cc721b302a
Created Apr 27, 2017
How to turn on debugging in WordPress
View gist:8ad67ef0a864e892417046cc721b302a
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
@emarket-design
emarket-design / gist:89d5a5b3ce5e27fc5457bc2198deead2
Created Mar 14, 2017
How to display in the circle grid view in random order in Employee Spotlight Pro WordPress plugin
View gist:89d5a5b3ce5e27fc5457bc2198deead2
[employee_circle_grid filter="misc::orderby::is::rand;"]
You can’t perform that action at this time.