<< toelichting wat wil ik bereiken met dashboard hier toevoegen>>
<< toelichting designkeuzes hier toevoegen>>
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Solarized - Paul (dark)</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
<?php | |
$query = new EntityFieldQuery(); | |
$entities = $query->entityCondition('entity_type', 'node') | |
->entityCondition('bundle', array('column','blog')) | |
->propertyCondition('uid', $user->uid) | |
->propertyCondition('status', 1) | |
->propertyOrderBy('created', 'DESC') | |
->range(0, 3) | |
->execute(); |
<?php | |
function partners_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) { | |
if ($entity_type != 'field_collection_item' || $entity->field_name != 'field_partner_products') { | |
return; | |
} | |
$form['#after_build'][] = 'partners_products_after_build'; | |
$id = drupal_html_id('partners_field'); | |
$form['#prefix'] = '<div id="'. $id .'">'; |
<?php | |
function acf_field_group_testing($content) { | |
global $pagenow, $current_screen; | |
if ($pagenow == 'post-new.php' || $pagenow == 'post.php' && isset($current_screen->post_type)) { | |
$content = change_order_for_field_group($content, $current_screen->post_type); | |
} | |
return $content; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Moo test</title> | |
</head> | |
<body> | |
<h1>Moo</h1> | |
<p>Lorem ipsum..</p> | |
</body> | |
</html> |
<div class="block_content"> | |
<?php $c = 0; foreach ($dossiers as $k => $dossier): | |
if ($c % 4 == 0) print '<div class="clearfix">';?> | |
<div class="dossier <?php if ($k % 4 == 3) print 'last'; ?>"> | |
<?php if (!empty($dossier->article_image_filepath)): ?> | |
<a href="<?php print url('node/'.$dossier->nid); ?>"><?php print theme('imagecache', 'op_list', $dossier->article_image_filepath, '', '', array('class' => 'dossier_img')); ?></a> | |
<?php endif; ?> | |
<h4><a href="<?php print url('node/'.$dossier->nid); ?>"><?php print $dossier->title; ?></a></h4> | |
</div> | |
<?php if ($c % 4 == 3 || $count == (count($dossiers))) print '</div>'; |
<?php | |
function save($category) { | |
$packageguide = JRequest::get( 'POST' ); | |
$files = JRequest::get( 'FILES' ); | |
if (isset($files['image_upload']) && !$files['image_upload']['error']) { | |
$dir = JPATH_ROOT.DS.'media'.DS.'packageguide'.DS.$category; | |
if(!file_exists($dir)) { | |
mkdir($dir, 0777, true); | |
} | |
move_uploaded_file($files['image_upload']['tmp_name'], $dir.DS.$files['image_upload']['name']); |
// get list of all indexes | |
curl 127.0.0.1:9200/_aliases?pretty=1 | |
// get count of all items in index | |
curl 127.0.0.1:9200/_search?search_type=count |