Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Typo #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions core/QUBELY.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function create_preview_css() {

if ( ! file_exists( $dir . $filename ) ) {
if ( ! $wp_filesystem->put_contents( $dir . $filename, '' ) ) {
throw new Exception( __( 'Prevriew CSS can not be saved due to permission!!!', 'qubely' ) );
throw new Exception( __( 'Preview CSS can not be saved due to permission!!!', 'qubely' ) );
}
}
if ( ! file_exists( $dir . $jsonfilename ) ) {
Expand Down Expand Up @@ -506,7 +506,7 @@ public function qubely_admin_assets() {
wp_enqueue_script( 'qubely_local_script' );

#START_REPLACE
wp_enqueue_style( 'qubley-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animation', QUBELY_DIR_URL . 'assets/css/animation.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-magnific-popup-style', QUBELY_DIR_URL . 'assets/css/magnific-popup.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-style-min', QUBELY_DIR_URL . 'assets/css/style.min.css', false, QUBELY_VERSION );
Expand Down Expand Up @@ -655,7 +655,7 @@ public function qubely_enqueue_style() {
*/

#START_REPLACE
wp_enqueue_style( 'qubley-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animation', QUBELY_DIR_URL . 'assets/css/animation.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-magnific-popup-style', QUBELY_DIR_URL . 'assets/css/magnific-popup.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-style-min', QUBELY_DIR_URL . 'assets/css/style.min.css', false, QUBELY_VERSION );
Expand Down Expand Up @@ -714,7 +714,7 @@ public function qubely_enqueue_scripts() {
/**
* register scripts
*/
wp_register_script( 'qubley-animated-headline-script', QUBELY_DIR_URL . 'assets/js/jquery.animatedheadline.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_register_script( 'qubely-animated-headline-script', QUBELY_DIR_URL . 'assets/js/jquery.animatedheadline.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_register_script( 'qubely-block-map', QUBELY_DIR_URL . 'assets/js/blocks/map.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_register_script( 'qubely-magnific-popup-script', QUBELY_DIR_URL . 'assets/js/qubely.magnific-popup.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_register_script( 'qubely-block-contactform', QUBELY_DIR_URL . 'assets/js/blocks/contactform.js', array( 'jquery' ), QUBELY_VERSION, true );
Expand All @@ -730,7 +730,7 @@ public function qubely_enqueue_scripts() {
$has_parallax = $blocks_meta_data['parallax'];

if ( has_block( 'qubely/animatedheadline' ) || $this->has_block_in_reusable( 'qubely/animatedheadline' ) ) {
wp_enqueue_script( 'qubley-animated-headline-script' );
wp_enqueue_script( 'qubely-animated-headline-script' );
}
if ( has_block( 'qubely/map' ) ) {
wp_enqueue_script( 'qubely-block-map' );
Expand Down Expand Up @@ -778,7 +778,7 @@ public function qubely_enqueue_scripts() {
}

if ( false !== strpos( $post, '<!-- wp:' . 'qubely/animatedheadline' . ' ' ) ) {
wp_enqueue_script( 'qubley-animated-headline-script' );
wp_enqueue_script( 'qubely-animated-headline-script' );
}

if ( false !== strpos( $post, '<!-- wp:' . 'qubely/map' . ' ' ) ) {
Expand Down Expand Up @@ -1441,7 +1441,7 @@ public function enqueue_block_css_file() {
$json_path = $upload_css_dir . "qubely/qubely-preview.json";

/**
* equeue static CSS
* enqueue static CSS
* and Scripts
*/
$this->add_static_css();
Expand Down Expand Up @@ -1519,7 +1519,7 @@ public function add_static_css(){
//CSS

#START_REPLACE
wp_enqueue_style( 'qubley-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animated-headline-style', QUBELY_DIR_URL . 'assets/css/qubely.animatedheadline.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-animation', QUBELY_DIR_URL . 'assets/css/animation.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-magnific-popup-style', QUBELY_DIR_URL . 'assets/css/magnific-popup.css', false, QUBELY_VERSION );
wp_enqueue_style( 'qubely-style-min', QUBELY_DIR_URL . 'assets/css/style.min.css', false, QUBELY_VERSION );
Expand All @@ -1529,7 +1529,7 @@ public function add_static_css(){

//Scripts
wp_enqueue_script( 'qubely-magnific-popup-script', QUBELY_DIR_URL . 'assets/js/qubely.magnific-popup.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_enqueue_script( 'qubley-animated-headline-script', QUBELY_DIR_URL . 'assets/js/jquery.animatedheadline.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_enqueue_script( 'qubely-animated-headline-script', QUBELY_DIR_URL . 'assets/js/jquery.animatedheadline.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_enqueue_script( 'qubely-block-map', QUBELY_DIR_URL . 'assets/js/blocks/map.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_enqueue_script( 'qubely-block-image-comparison', QUBELY_DIR_URL . 'assets/js/blocks/image-comparison.js', array( 'jquery' ), QUBELY_VERSION, true );
wp_enqueue_script( 'qubely-block-contactform', QUBELY_DIR_URL . 'assets/js/blocks/contactform.js', array( 'jquery' ), QUBELY_VERSION, true );
Expand Down Expand Up @@ -1607,7 +1607,7 @@ public function before_delete_post() {
}

/**
* Delete post releated data
* Delete post related data
*
* @delete post css file
*/
Expand Down
2 changes: 1 addition & 1 deletion core/admin-views/Getting_Started.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct() {

public function mini_cards() {

// @TODO: Fetech data dynamically with one request if possible
// @TODO: Fetch data dynamically with one request if possible
$block = 39;
$sections = 160;
$layouts = 44;
Expand Down
4 changes: 2 additions & 2 deletions qubely.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ function qubely_get_excerpt( $object ) {
/**
* Order by
*/
function qubely_resigter_rest_order_by_fields() {
function qubely_register_rest_order_by_fields() {
$post_types = QUBELY_MAIN::get_post_types();

foreach ( $post_types as $key => $type ) {
add_filter( "rest_{$type['value']}_collection_params", 'qubely_blocks_add_orderby', 10, 1 );
}
}
add_action( 'init', 'qubely_resigter_rest_order_by_fields' );
add_action( 'init', 'qubely_register_rest_order_by_fields' );

function qubely_blog_posts_image_sizes()
{
Expand Down