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
// get all attachments from a post, except the featured image | |
function get_attached_images ( $post_ID, $featured_image = false ) { | |
$args = array( | |
'post_type' => 'attachment', | |
'posts_per_page' => -1, | |
'post_parent' => $post_ID | |
); | |
// do we want the featured image? |
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 style="display: table; width: 100%; height: 100%;"> | |
<div style="display: table-cell; vertical-align: middle;"> | |
<!-- Content --> | |
</div> | |
</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
# ------------------------------------------ | |
# GITIGNORE FOR WORDPRESS | |
# Really simple .gitignore for new Wordpress intallations. | |
# User created plugins or themes have to be manually included in it. | |
# ------------------------------------------ | |
# Ignore everything except the wp-content folder (because it contains the themes | |
# and plugins), and the gitignore file itself | |
/* | |
!.gitignore |
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 | |
class ExampleStrip extends Strip | |
{ | |
//-------------------------------------------- DB model | |
/** | |
* @var array | |
*/ | |
private static $db = [ |
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
$fieldName = new TextField('FieldName', 'Field name', null, 255); |
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
let ApiCalls = { | |
businessId: '', | |
moduleId: '', | |
formId: '', | |
type: '', | |
parentId: '', | |
baseUrl: '//admin:[email protected]/', | |
apiUrl: '', | |
/** |
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
export default function (namespace) { | |
return { | |
update: namespace + '.UPDATE', | |
ready: namespace + '.READY' | |
} | |
} |
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
import ConstantsWrapper from './constantsWrapper' | |
export default { | |
items: [], | |
/** | |
* We define a set of namespaced constants to avoid collision of EventEmitter | |
* between modules | |
* | |
* @return {Object} Dictionary of namespaced actions |
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
import ApiWrapper from './apiwrapper' | |
import JeevesAbstract from './JeevesAbstract' | |
import {EventEmitter} from 'events' | |
let Jeeves = Object.assign({}, JeevesAbstract, EventEmitter, { | |
items: { | |
businessSegments: [] | |
}, | |
namespace: 'BUSINESS_SEGMENTS', |
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 Vue (options) { | |
this._init(options) | |
} | |
// install internals | |
initMixin(Vue) | |
stateMixin(Vue) | |
eventsMixin(Vue) | |
lifecycleMixin(Vue) | |
miscMixin(Vue) |
OlderNewer