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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* Japanese translated by hissy | |
* | |
* CODEX: http://wpdocs.sourceforge.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/WP_Query#.E3.83.91.E3.83.A9.E3.83.A1.E3.83.BC.E3.82.BF | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
* Original: https://gist.github.com/luetkemj/2023628/9e911982440141a13cb1dd8ba1ad6b35cd7bbdd7 | |
*/ |
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 | |
// CPIユーザーID(契約情報で確認してください) | |
$user_id = 'abc123defg'; | |
// リポジトリ名(Backlogで確認してください) | |
$repo_name = 'repository_name'; | |
// Gitレポジトリの位置の指定 | |
$git_dir = '/usr/home/' . $user_id . '/' . $repo_name . '.git'; | |
// 展開先ディレクトリの指定 | |
$work_tree = '/usr/home/' . $user_id . '/html'; | |
// logファイルの指定 |
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 | |
/* | |
Plugin Name: Really Simple CSV Importer Action add-on | |
Description: Run the additional action after importing the post data | |
Author: Takuro Hishikawa | |
Version: 0.1 | |
*/ | |
class rscsvimporter_action { | |
// singleton instance |
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 | |
/* | |
Plugin Name: Get Remote Image to Custom Field | |
*/ | |
add_filter('really_simple_csv_importer_post_saved', function($post) | |
{ | |
if (is_object($post)) { | |
// Get the meta data of which key is "image" | |
$image = $post->image; |
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 | |
namespace Application\Job; | |
use Concrete\Core\Job\QueueableJob; | |
use Concrete\Core\Page\Page; | |
use Concrete\Core\Page\PageList; | |
use ZendQueue\Message as ZendQueueMessage; | |
use ZendQueue\Queue as ZendQueue; | |
class BulkMovePages extends QueueableJob |
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 | |
namespace Application\Job; | |
use Job as AbstractJob; | |
use Concrete\Core\Workflow\Progress\PageProgress; | |
use Concrete\Core\Workflow\EmptyWorkflow; | |
class ClearEmptyWorkflowProgress extends AbstractJob | |
{ |
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 | |
$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication(); | |
/** @var \Doctrine\ORM\EntityManagerInterface $em */ | |
$em = $app->make(\Doctrine\ORM\EntityManagerInterface::class); | |
/** @var \Concrete\Core\Entity\Command\ProcessRepository $repository */ | |
$repository = $em->getRepository(\Concrete\Core\Entity\Command\Process::class); | |
$processes = $repository->findRunning(); | |
/** @var \Concrete\Core\Command\Process\ProcessUpdater $updater */ | |
$updater = $app->make(\Concrete\Core\Command\Process\ProcessUpdater::class); |
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 | |
// application/src/Backup/ContentImporter/ValueInspector/Item/FileItem.php | |
namespace Application\Backup\ContentImporter\ValueInspector\Item; | |
use Concrete\Core\File\File; | |
class FileItem extends \Concrete\Core\Backup\ContentImporter\ValueInspector\Item\FileItem | |
{ |
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 | |
// application/config/site.php | |
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dtd.html | |
$dtd = <<<END | |
CKEDITOR.dtd['a']['div'] = 1; | |
END; | |
return [ | |
'sites' => [ |
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(){ | |
jQuery("#map").each(function(){ | |
SpotSearchMap = new SpotSearchMapObj(36.5626,136.362305, 8); | |
}); | |
}); | |
var Marker; | |
var SpotSearchMap; | |
var SpotSearchMapObj = Class.create(); | |
SpotSearchMapObj.prototype = { |