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 | |
$image_width = 1980; | |
$image_height = 1080; | |
//Calculation: | |
$DPI = 180; // From admin | |
$MinimumPrintSize = 5; // From admin | |
$MaxPrintSize = Floor($image_width/$DPI); |
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
$selected_package |
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 | |
/** | |
* Created by CODEJA. | |
* User: kirillrocks | |
* Date: 27-Aug-17 | |
* Time: 15:12 | |
*/ | |
/** CONSTANTS FOR NORMAL PAPER **/ | |
$selected_width = 5; // taken from selection by the user |
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 | |
/** | |
* Created by CODEJA. | |
* User: kirillrocks | |
* Date: 27-Aug-17 | |
* Time: 15:12 | |
*/ | |
/** CONSTANTS NORMAL **/ | |
$selected_width = 5; // taken from selection by the user |
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 | |
/** | |
* Created by CODEJA. | |
* User: kirillrocks | |
* Date: 27-Aug-17 | |
* Time: 15:12 | |
*/ | |
/** CONSTANTS NORMAL **/ | |
$selected_width = 5; // taken from selection by the user |
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
add_action( 'wp_ajax_nopriv_cj_generate_reset_link', 'cj_generate_reset_link' ); | |
function cj_generate_reset_link(){ | |
if ( wp_verify_nonce( $_POST['nonce'], 'ajax-forgot-nonce' ) ) { | |
echo cj_retrieve_password($_POST['email']); | |
} | |
exit(); | |
} | |
function cj_retrieve_password($user_login) { | |
global $wpdb, $wp_hasher; |
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
#### Links #### | |
* wp-json/cjra/v1/posts | |
* wp-json/cjra/v1/videos | |
#### Arguments #### | |
* offset | |
* per_page (default 10) | |
* category (ID of categories for posts) |
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
#### Links #### | |
* wp-json/cjra/v1/posts | |
* wp-json/cjra/v1/videos | |
#### Header #### | |
Authorization: DEVICE_ID |
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
/** | |
* Adds Foo_Widget widget. | |
*/ | |
class Brand_Data extends WP_Widget { | |
/** | |
* Register widget with WordPress. | |
*/ | |
function __construct() { | |
parent::__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
<?php | |
// define( 'WP_DEBUG', true ); | |
// define( 'WP_DEBUG_DISPLAY', true ); | |
// @ini_set( 'display_errors', 'On' ); | |
// @error_reporting('E_ALL'); | |
/** | |
* Created by PhpStorm. | |
* User: KirillROCKS | |
* Date: 28-Sep-16 |