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
/* =WordPress Core | |
-------------------------------------------------------------- */ | |
.alignnone { | |
margin: 5px 20px 20px 0; | |
} | |
.aligncenter, | |
div.aligncenter { | |
display: block; | |
margin: 5px auto 5px auto; |
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: WPSE Search Data Feed | |
Plugin URI: http://wordpress.stackexchange.com | |
Description: Provides interface to search and get result in JSON data | |
Author: Sisir | |
Version: 1.0 | |
Author URI: http://developerpage.net | |
*/ |
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
/** | |
* 7.Sort data function | |
* Allows you to sort the data by the variables set in the $_GET | |
* @return Mixed | |
*/ | |
private function sort_data( $a, $b ) { | |
// Set defaults | |
$orderby = 'ID'; | |
$order = 'asc'; |
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
* calendar widget */ | |
.widget_calendar {float: left;} | |
#wp-calendar {width: 100%; } | |
#wp-calendar caption { text-align: right; color: #333; font-size: 12px; margin-top: 10px; margin-bottom: 15px; } | |
#wp-calendar thead { font-size: 10px; } | |
#wp-calendar thead th { padding-bottom: 10px; } | |
#wp-calendar tbody { color: #aaa; } | |
#wp-calendar tbody td { background: #f5f5f5; border: 1px solid #fff; text-align: center; padding:8px;} | |
#wp-calendar tbody td:hover { background: #fff; } | |
#wp-calendar tbody .pad { background: none; } |
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 Numstock\Models; | |
use Sunra\PhpSimple\HtmlDomParser; | |
class Dse_News{ | |
protected $url = 'http://dsebd.org/display_news.php'; | |
public function __construct(){ |
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
/* =WordPress Core | |
-------------------------------------------------------------- */ | |
.alignnone { | |
margin: 5px 20px 20px 0; | |
} | |
.aligncenter, | |
div.aligncenter { | |
display: block; | |
margin: 5px auto 5px auto; |
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
[{"id":"230864","company_id":"10","date":"2015-01-28","open":"17.1","close":"17.2","high":"17.4","low":"17.1","volume":"4907"},{"id":"238988","company_id":"10","date":"2015-01-27","open":"17.2","close":"17.4","high":"17.5","low":"17.2","volume":"20992"},{"id":"249298","company_id":"10","date":"2015-01-26","open":"17.6","close":"17.4","high":"17.6","low":"17.2","volume":"17030"},{"id":"253925","company_id":"10","date":"2015-01-25","open":"17.5","close":"17.6","high":"17.8","low":"17.5","volume":"11873"},{"id":"153495","company_id":"10","date":"2015-01-22","open":"18","close":"17.8","high":"18.5","low":"17.5","volume":"41292"},{"id":"161899","company_id":"10","date":"2015-01-21","open":"17.2","close":"17.4","high":"17.5","low":"17.2","volume":"12924"},{"id":"169636","company_id":"10","date":"2015-01-20","open":"17.5","close":"17.3","high":"18","low":"17.3","volume":"23267"},{"id":"178827","company_id":"10","date":"2015-01-19","open":"18.3","close":"17.5","high":"18.3","low":"17.4","volume":"213588"},{"id":"1888 |
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 Numstock\Controllers; | |
use Numstock\Models\Company_Query; | |
class Company_Validator extends General_Validator{ | |
public function __construct(Company_Query $query){ | |
$this->query = $query; |
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
// rewrites | |
add_action( 'wp_loaded', 'kcs_internal_rewrites' ); | |
function kcs_internal_rewrites(){ | |
$tokens = kcs_get_tokens(); // array('foo', 'bar') etc | |
foreach($tokens as $token){ | |
add_rewrite_rule("$token", "index.php?$token=1", 'top'); |
OlderNewer