Plugin Directory

Changeset 2693062


Ignore:
Timestamp:
03/12/2022 10:22:59 PM (4 years ago)
Author:
4wpbari
Message:

add extra settings core block gutenberg + patterns

Location:
visual-editor
Files:
116 added
5 edited

Legend:

Unmodified
Added
Removed
  • visual-editor/trunk/includes/class-visual-editor-blocks.php

    r2689419 r2693062  
    4141            $this->version = VISUAL_EDITOR_BLOCKS_VER;
    4242        } else {
    43             $this->version = '1.0.2';
     43            $this->version = '1.0.3';
    4444        }
    4545        $this->plugin_name = 'visual-editor-blocks';
  • visual-editor/trunk/includes/patterns/sections/visualedit-about-section.php

    r2689419 r2693062  
    88    array(
    99        'type'       => 'section',
    10         'key'        => 'visualedit-abouta-cb-section',
     10        'key'        => 'visualedit-about-01-cb-section',
    1111        'collection' => array(
    1212            'slug'      => 'visualedit-about-section',
     
    4646        'keywords'   => array(
    4747            esc_html__( 'About', 'visual-editor-blocks' ),
    48             esc_html__( 'About 1', 'visual-editor-blocks' ),
     48            esc_html__( 'About 01', 'visual-editor-blocks' ),
    4949            esc_html__( 'Business', 'visual-editor-blocks' ),
    5050        ),
     
    5353    array(
    5454        'type'       => 'section',
    55         'key'        => 'visualedit-aboutb-cb-section',
     55        'key'        => 'visualedit-about-02-cb-section',
    5656        'collection' => array(
    5757            'slug'      => 'visualedit-about-section',
     
    102102<!-- /wp:group -->
    103103',
    104         'name'       => esc_html__( 'About 2', 'visual-editor-blocks' ),
    105         'category'   => array(
    106             esc_html__( 'About', 'visual-editor-blocks' ),
    107         ),
    108         'keywords'   => array(
    109             esc_html__( 'About', 'visual-editor-blocks' ),
    110             esc_html__( 'About 2', 'visual-editor-blocks' ),
     104        'name'       => esc_html__( 'About 02', 'visual-editor-blocks' ),
     105        'category'   => array(
     106            esc_html__( 'About', 'visual-editor-blocks' ),
     107        ),
     108        'keywords'   => array(
     109            esc_html__( 'About', 'visual-editor-blocks' ),
     110            esc_html__( 'About 02', 'visual-editor-blocks' ),
    111111            esc_html__( 'Business', 'visual-editor-blocks' ),
    112112        ),
    113113        'image'      => 'http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/About-2.jpg',
    114114    ),
     115    array(
     116        'type'       => 'section',
     117        'key'        => 'visualedit-about-03-cb-section',
     118        'collection' => array(
     119            'slug'      => 'visualedit-about-section',
     120            'label'     => __( 'About', 'visual-editor-blocks' ),
     121        ),
     122        'content'    => '<!-- wp:cover {"url":"http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/background-blue.jpg","id":83,"dimRatio":0,"align":"full","className":"is-light h-screen"} -->
     123<div class="wp-block-cover alignfull is-light h-screen"><img class="wp-block-cover__image-background wp-image-83" alt="" src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/background-blue.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"color":{"background":"#fffffe"}},"className":"is-style-circle-mask ek-rounded-lg"} -->
     124<div class="wp-block-group is-style-circle-mask ek-rounded-lg has-background" style="background-color:#fffffe"><div class="wp-block-group__inner-container"><!-- wp:image {"align":"center","id":84,"sizeSlug":"large","linkDestination":"none","className":"is-style-circle-mask"} -->
     125<div class="wp-block-image is-style-circle-mask"><figure class="aligncenter size-large"><img src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/testimonial_1_free.png" alt="" class="wp-image-84"/></figure></div>
     126<!-- /wp:image -->
     127
     128<!-- wp:heading {"textAlign":"center","style":{"color":{"text":"#111111"}}} -->
     129<h2 class="has-text-align-center has-text-color" style="color:#111111">My Bio</h2>
     130<!-- /wp:heading -->
     131
     132<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#111111"}}} -->
     133<p class="has-text-align-center has-text-color" style="color:#111111">Here you can add some text, that explains what you’re all about. Services offered, interests and such.&nbsp;<em><strong>Have fun with it!</strong></em></p>
     134<!-- /wp:paragraph -->
     135
     136<!-- wp:button {"style":{"color":{"background":"#0f3caa"}},"className":"ek-w-full"} -->
     137<div class="wp-block-button ek-w-full"><a class="wp-block-button__link has-background" style="background-color:#0f3caa">Read the latest from my blog?</a></div>
     138<!-- /wp:button -->
     139
     140<!-- wp:button {"style":{"color":{"background":"#0f3caa"}},"className":"ek-w-full"} -->
     141<div class="wp-block-button ek-w-full"><a class="wp-block-button__link has-background" style="background-color:#0f3caa">Follow me on Twitter?</a></div>
     142<!-- /wp:button -->
     143
     144<!-- wp:button {"style":{"color":{"background":"#0f3caa"}},"className":"ek-w-full"} -->
     145<div class="wp-block-button ek-w-full"><a class="wp-block-button__link has-background" style="background-color:#0f3caa">Watch me on YouTube?</a></div>
     146<!-- /wp:button -->
     147
     148<!-- wp:button {"style":{"color":{"background":"#0f3caa"}},"className":"ek-w-full"} -->
     149<div class="wp-block-button ek-w-full"><a class="wp-block-button__link has-background" style="background-color:#0f3caa">Like my Facebook page?</a></div>
     150<!-- /wp:button -->
     151
     152<!-- wp:button {"style":{"color":{"background":"#0f3caa"}},"className":"ek-w-full"} -->
     153<div class="wp-block-button ek-w-full"><a class="wp-block-button__link has-background" style="background-color:#0f3caa">Subscribe to our newsletter?</a></div>
     154<!-- /wp:button --></div></div>
     155<!-- /wp:group --></div></div>
     156<!-- /wp:cover -->',
     157        'name'       => esc_html__( 'About 03', 'visual-editor-blocks' ),
     158        'category'   => array(
     159            esc_html__( 'About', 'visual-editor-blocks' ),
     160        ),
     161        'keywords'   => array(
     162            esc_html__( 'About', 'visual-editor-blocks' ),
     163            esc_html__( 'About 03', 'visual-editor-blocks' ),
     164            esc_html__( 'Business', 'visual-editor-blocks' ),
     165        ),
     166        'image'      => 'http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/About-3.jpg',
     167    ),//About4
     168   
     169    array(
     170        'type'       => 'section',
     171        'key'        => 'visualedit-about-04-cb-section',
     172        'collection' => array(
     173            'slug'      => 'visualedit-about-section',
     174            'label'     => __( 'About', 'visual-editor-blocks' ),
     175        ),
     176        'content'    => '<!-- wp:cover {"url":"http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/unsplash-photo-1491382825904-a4c6dca98e8c.jpg","id":92,"dimRatio":10,"customOverlayColor":"#dcd7cb","align":"full","className":""} -->
     177<div class="wp-block-cover alignfull has-background-dim-10 has-background-dim h-screen" style="background-color:#dcd7cb"><img class="wp-block-cover__image-background wp-image-92" alt="" src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/unsplash-photo-1491382825904-a4c6dca98e8c.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"color":{"background":"#ffffff"}},"className":"is-style-editorskit-shadow ek-padding\u002d\u002dlg ek-rounded-xl ek-align-slim"} -->
     178<div class="wp-block-group is-style-editorskit-shadow ek-padding--lg ek-rounded-xl ek-align-slim has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:image {"align":"center","id":84,"sizeSlug":"large","linkDestination":"none","className":"is-style-circle-mask"} -->
     179<div class="wp-block-image is-style-circle-mask"><figure class="aligncenter size-large"><img src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/testimonial_1_free.png" alt="" class="wp-image-84"/></figure></div>
     180<!-- /wp:image -->
     181
     182<!-- wp:heading {"textAlign":"center","level":3,"style":{"color":{"text":"#111111"}},"className":"mt-0 mb-0"} -->
     183<h3 class="has-text-align-center mt-0 mb-0 has-text-color" style="color:#111111">Roberto Bottalico</h3>
     184<!-- /wp:heading -->
     185
     186<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#222222"}}} -->
     187<p class="has-text-align-center has-text-color" style="color:#222222">PHP and JavaScript Developer</p>
     188<!-- /wp:paragraph -->
     189
     190<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#6e6e6e"}}} -->
     191<p class="has-text-align-center has-text-color" style="color:#6e6e6e">I love creating unique, clean, usable code for the web and other digital sources and my utmost priority is my customer’s satisfaction.</p>
     192<!-- /wp:paragraph -->
     193
     194<!-- wp:button {"borderRadius":50,"style":{"color":{"text":"#ffffff","background":"#111111"}},"align":"center"} -->
     195<div class="wp-block-button aligncenter"><a class="wp-block-button__link has-text-color has-background" style="border-radius:50px;background-color:#111111;color:#ffffff">Get in Touch</a></div>
     196<!-- /wp:button -->
     197
     198<!-- wp:paragraph {"align":"center","textColor":"primary"} -->
     199<p class="has-text-align-center has-primary-color has-text-color"><a href="https://twitter.com/#" class="ek-link">Twitter</a>  <a href="https://www.facebook.com/groups/#" class="ek-link">Facebook</a>  <a href="https://github.com/#" class="ek-link">Github</a></p>
     200<!-- /wp:paragraph --></div></div>
     201<!-- /wp:group --></div></div>
     202<!-- /wp:cover -->',
     203        'name'       => esc_html__( 'About 04', 'visual-editor-blocks' ),
     204        'category'   => array(
     205            esc_html__( 'About', 'visual-editor-blocks' ),
     206        ),
     207        'keywords'   => array(
     208            esc_html__( 'About', 'visual-editor-blocks' ),
     209            esc_html__( 'About 04', 'visual-editor-blocks' ),
     210            esc_html__( 'Business', 'visual-editor-blocks' ),
     211        ),
     212        'image'      => 'http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/About-4.jpg',
     213    ),//About 5
     214   
     215array(
     216        'type'       => 'section',
     217        'key'        => 'visualedit-about-05-cb-section',
     218        'collection' => array(
     219            'slug'      => 'visualedit-about-section',
     220            'label'     => __( 'About', 'visual-editor-blocks' ),
     221        ),
     222        'content'    => '<!-- wp:cover {"url":"https://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg","id":103,"dimRatio":90,"customOverlayColor":"#002117","align":"full","className":"ek-padding\u002d\u002dsm"} -->
     223<div class="wp-block-cover alignfull has-background-dim-90 has-background-dim ek-padding--sm" style="background-color:#002117"><img class="wp-block-cover__image-background wp-image-103" alt="" src="https://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:spacer -->
     224<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
     225<!-- /wp:spacer -->
     226
     227<!-- wp:media-text {"mediaPosition":"right","mediaId":103,"mediaLink":"https://demowebsite.4wp.it/about-pattern/mohamed-nohassi-odxb5oig_ia-unsplash/","mediaType":"image","imageFill":false} -->
     228<div class="wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg" alt="" class="wp-image-103 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"style":{"color":{"text":"#f4c133"},"typography":{"fontSize":16}},"className":"mb-0"} -->
     229<p class="mb-0 has-text-color" style="color:#f4c133;font-size:16px"><span class="uppercase">Featured Case Study</span></p>
     230<!-- /wp:paragraph -->
     231
     232<!-- wp:heading {"style":{"color":{"text":"#fffffe"}},"className":"mt-0"} -->
     233<h2 class="mt-0 has-text-color" style="color:#fffffe">Website Branding and Marketing</h2>
     234<!-- /wp:heading -->
     235
     236<!-- wp:paragraph {"style":{"color":{"text":"#fffffe"}}} -->
     237<p class="has-text-color" style="color:#fffffe">Lorem ipsum odor amet, consectetuer adipiscing elit. Metus quis odio sodales; suscipit tempus vivamus magnis sed viverra. Bibendum mattis vel malesuada ornare mi ut vitae. Facilisi fringilla nullam a felis, vivamus et vehicula dignissim. </p>
     238<!-- /wp:paragraph -->
     239
     240<!-- wp:list {"className":"is-style-checked","customTextColor":"#fffffe","bulletColor":"#f4c133"} -->
     241<ul class="is-style-checked has-list-bullet-color" style="color:#fffffe;--ek-bullet-color:#f4c133"><li>Metus quis odio sodales</li><li>Bibendum mattis</li><li>Facilisi fringilla</li></ul>
     242<!-- /wp:list -->
     243
     244<!-- wp:button {"style":{"color":{"text":"#002117","background":"#f4c133"}}} -->
     245<div class="wp-block-button"><a class="wp-block-button__link has-text-color has-background" style="background-color:#f4c133;color:#002117">View Case Studies</a></div>
     246<!-- /wp:button --></div></div>
     247<!-- /wp:media-text -->
     248
     249<!-- wp:spacer {"height":20} -->
     250<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
     251<!-- /wp:spacer -->
     252
     253<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#f4c133"}}} -->
     254<p class="has-text-align-center has-text-color" style="color:#f4c133">★★★★★</p>
     255<!-- /wp:paragraph -->
     256
     257<!-- wp:paragraph {"align":"center"} -->
     258<p class="has-text-align-center">Lorem ipsum odor amet, consectetuer adipiscing elit. Metus quis odio sodales; suscipit tempus vivamus magnis sed viverra.</p>
     259<!-- /wp:paragraph -->
     260
     261<!-- wp:image {"align":"center","id":84,"sizeSlug":"large","linkDestination":"none","className":"is-style-circle-mask mb-0"} -->
     262<div class="wp-block-image is-style-circle-mask mb-0"><figure class="aligncenter size-large"><img src="http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/testimonial_1_free.png" alt="" class="wp-image-84"/></figure></div>
     263<!-- /wp:image -->
     264
     265<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#fffffe"}}} -->
     266<p class="has-text-align-center has-text-color" style="color:#fffffe">Roberto Bottalico<br><strong>Client</strong></p>
     267<!-- /wp:paragraph --></div></div>
     268<!-- /wp:cover -->',
     269        'name'       => esc_html__( 'About 05', 'visual-editor-blocks' ),
     270        'category'   => array(
     271            esc_html__( 'About', 'visual-editor-blocks' ),
     272        ),
     273        'keywords'   => array(
     274            esc_html__( 'About', 'visual-editor-blocks' ),
     275            esc_html__( 'About 05', 'visual-editor-blocks' ),
     276            esc_html__( 'Business', 'visual-editor-blocks' ),
     277        ),
     278        'image'      => 'http://demowebsite.4wp.it/wp-content/uploads/sites/32/2022/03/About-5.jpg',
     279    ),
    115280
    116281);
  • visual-editor/trunk/readme.txt

    r2689419 r2693062  
    44Requires at least: 5.0
    55Tested up to: 5.9.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    4343== Changelog ==
    4444
     45= 1.0.3 =
     46
     47-   Add extra settings core blocks gutenberg
     48-   Add patterns (in progress every day)
     49
    4550= 1.0.2 =
    4651
  • visual-editor/trunk/toolbar/duplicate-block.js

    r2689419 r2693062  
    8181      icon: "welcome-add-page",
    8282      label: __('Clone', 'visual-editor-blocks'),
    83      // isActive: paragraphAttribute === 'custom',
     83     //isActive: paragraphAttribute === 'custom',
    8484      onClick: () => {
    8585        if (paragraphAttribute === 'custom') {
  • visual-editor/trunk/visual-editor.php

    r2689419 r2693062  
    33Plugin Name: Visual Editor
    44Description: Improves the use of the gutenberg editor
    5 Version: 1.0.2
     5Version: 1.0.3
    66Author: Roberto Bottalico
    77Author URI: https://4wp.it
    88License: GPLv2 or later
    9 Text Domain: visual-editor
     9Text Domain: visual-editor-blocks
    1010*/
    1111
     
    1717define( 'VISUAL_EDITOR_BLOCKS_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
    1818define( 'VISUAL_EDITOR_BLOCKS_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
    19 define( 'VISUAL_EDITOR_BLOCKS_VER', '1.0.2' );
     19define( 'VISUAL_EDITOR_BLOCKS_VER', '1.0.3' );
    2020define( 'VISUAL_EDITOR_BLOCKS_BASENAME', plugin_basename( __FILE__ ) );
    2121
     22
     23add_action(
     24    'plugins_loaded',
     25    function () {
     26        // call this only if Gutenberg is active.
     27        if ( function_exists( 'register_block_type' ) ) {
     28            require_once dirname( __FILE__ ) . '/class-common-core-blocks-animation.php';
     29
     30            if ( class_exists( '\VISUALEDIT\Animations\Visual_Editor_Blocks_Animation' ) ) {
     31                \VISUALEDIT\Animations\Visual_Editor_Blocks_Animation::instance();
     32            }
     33        }
     34    }
     35);
     36
    2237require plugin_dir_path( __FILE__ ) . 'class-visual-editor-sidebar.php';
     38
     39require_once plugin_dir_path( __FILE__ ) . 'class-common-core-blocks-extra.php';
     40
     41if ( class_exists( 'VISUALEDIT\Extra\Visual_Editor_Blocks_Extra' ) ) {
     42    new \VISUALEDIT\Extra\Visual_Editor_Blocks_Extra();
     43};
    2344
    2445require plugin_dir_path( __FILE__ ) . 'includes/class-visual-editor-blocks.php';
Note: See TracChangeset for help on using the changeset viewer.