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 | |
class GlobalSuppressions extends ASMSuppressions{ | |
public function __construct($client, $options=NULL){ | |
parent::__construct($client, $options); | |
$this->base_endpoint = "/v3/asm/suppressions"; | |
$this->endpoint = "/v3/asm/suppressions"; | |
} |
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
$args = array( | |
'offset' => $offset, | |
'posts_per_page'=> $display_count, | |
'paged' => $paged, | |
'post_type' => 'resume', | |
'meta_key' => 'ratings_average', | |
'orderby' => 'meta_value_num', | |
'order' => 'DESC', | |
'meta_query' => array( | |
'relation'=> 'AND', |
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 | |
if(!function_exists('el_crypto_hmacSHA1')){ | |
/** | |
* Calculate the HMAC SHA1 hash of a string. | |
* | |
* @param string $key The key to hash against | |
* @param string $data The data to hash | |
* @param int $blocksize Optional blocksize | |
* @return string HMAC SHA1 |
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
<form action="kallzu-integration.php" method="post"> | |
<p><input type="text" name="name" placeholder="your name here" required="required"></p> | |
<p><input type="email" name="email" placeholder="your email here" required="required"></p> | |
<p><input type="text" name="phone" placeholder="your phone number here" required="required"></p> | |
<p><textarea name="message" placeholder="your message"></textarea></p> | |
<p><button type="submit" name="submit_to_kallzu">Submit</button></p> | |
<!-- You must use captcha to protect spam --> | |
</form> |
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'); |
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
<?php | |
namespace Numstock\Models; | |
use Sunra\PhpSimple\HtmlDomParser; | |
class Dse_Company_Data{ | |
private $endpoint = 'http://dsebd.org/displayCompany.php'; | |
protected $parser, $company = false; |
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
/* =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 | |
namespace Numstock\Models; | |
use Sunra\PhpSimple\HtmlDomParser; | |
class Dse_News{ | |
protected $url = 'http://dsebd.org/display_news.php'; | |
public function __construct(){ |