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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Display Advert API", | |
"description": "Get and display adverts from Find an apprenticeship. \n**Note.** It is not recommended to use The Display Advert API directly from a browser and as such we have not enabled CORS for this API. Instead, we recommend you call the API intermittently to retrieve the latest vacancies, store those vacancies in your own data store, and then change your website to read those vacancies from your own data store.", | |
"version": "2" | |
}, | |
"servers": [ | |
{ | |
"url": "https://api.apprenticeships.education.gov.uk/vacancies" |
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "PICS API", | |
"description": "This is the documentation endpoint for the PICS REST Service. Further documentation available at <a href=\"https://pellcomp.atlassian.net/wiki/spaces/POH/pages/3384082435\" target=\"_blank\">PICS Online Help</a>", | |
"version": "1.0" | |
}, | |
"paths": { | |
"/api/v1/applicants": { | |
"get": { |
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 | |
/** Display PHP serialized values as table in edit. Using Jakub Vrana and Martin Zeman's JSON Adminer plugin (https://raw.githubusercontent.com/vrana/adminer/master/plugins/json-column.php) as a skeleton for this plugin. | |
* @link https://www.adminer.org/plugins/#use | |
* @author Don Wilson, https://pyxol.com/ | |
* @author Jakub Vrana, https://www.vrana.cz/ | |
* @author Martin Zeman (Zemistr), http://www.zemistr.eu/ | |
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) | |
*/ | |
class AdminerPHPSerializedColumn { |
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 | |
// 1. Modify the generated permalink | |
function custom_post_type_permalink($post_link, $post) { | |
if ('download' == $post->post_type) { | |
$post_link = home_url( | |
user_trailingslashit("downloads/{$post->ID}/{$post->post_name}") | |
); | |
} |
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
<!-- search for special one post type --> | |
<div class="search-form"> | |
<form role="search" method="get" class="search-form mc-form bottom" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<input type="search" class="search-field" placeholder="<?php esc_html_e( 'Enter your keyword', 'text-domain' ) ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" /> | |
<input type="hidden" name="post_type" value="product"> | |
<button type="submit" class="search-submit"><span class="ti ti-search"></span></button> | |
</form> | |
</div> | |
<!-- search for special two or more post type --> |
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 | |
namespace ElementorControls; | |
if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
class Elementor_Custom_Controls { | |
public function includes() { | |
require_once(plugin_dir_path(__FILE__).'inc/elementor/image-selector-control.php'); | |
} |
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
{ | |
"basics": { | |
"name": "Rihards Mantejs", | |
"label": "Web Developer", | |
"email": "dexit@dyc.lv", | |
"phone": "07471617269", | |
"url": "https://www.linkedin.com/in/rihards-mantejs", | |
"summary": "Highly experienced and results-oriented IT professional with over 15 years of progressive experience in diverse IT environments, seeking to leverage a comprehensive skill set as a Systems Development Officer. Proven ability to support the full lifecycle of system development, from initial analysis and design through to implementation, deployment, and ongoing maintenance. Expertise spans full-stack development, robust systems management, seamless API integration, database management, and task automation using scripting languages such as Bash, PoSH, and PHP. Adept at translating complex business requirements into effective technical specifications, providing critical technical support, and facilitating the integration of new systems with existing infrastructure. Possesses strong analytical, problem-solving, |
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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/master/schema.json", | |
"basics": { | |
"email": "glennmartinjohnson@gmail.com", | |
"label": "Microsoft 365 Implementation Specialist", | |
"location": { | |
"city": "Boston", | |
"countryCode": "UK", | |
"region": "Lincolnshire" | |
}, |
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 "jsr:@supabase/functions-js/edge-runtime.d.ts"; | |
import { createHmac } from "node:crypto"; | |
import { createClient } from "jsr:@supabase/supabase-js"; | |
Deno.serve(async (req: Request) => { | |
const secret = Deno.env.get("HUBSPOT_SECRET")!; | |
const signature = req.headers.get("x-hub-signature")!; | |
const body = await req.text(); | |
const hmac = createHmac("sha256", secret).update(body).digest("hex"); |
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 | |
add_filter( 'elementor/dynamic_tags/tag_value', function( $value, $tag ) { | |
// بررسی اینکه آیا تگ مورد نظر "custom field" هست | |
if ( $tag->get_name() === 'post-custom-field' ) { | |
// گرفتن post ID فعلی | |
$post_id = get_the_ID(); |
NewerOlder