Plugin Directory

Changeset 2361089


Ignore:
Timestamp:
08/14/2020 12:48:04 PM (5 years ago)
Author:
tschutter
Message:

release 1.0.1

Location:
column-shortcodes
Files:
41 added
3 edited

Legend:

Unmodified
Added
Removed
  • column-shortcodes/trunk/assets/js/admin.js

    r1679769 r2361089  
    3333     */
    3434    function codepressShortcodes() {
    35         $( '#cpsh .insert-shortcode' ).live( 'click', function( e ) {
     35        $( '#cpsh .insert-shortcode' ).on( 'click', function( e ) {
    3636
    3737            var shortcode = $( this ).attr( 'rel' );
  • column-shortcodes/trunk/column-shortcodes.php

    r2288298 r2361089  
    304304    public function add_shortcode_button( $page = null, $target = null ) {
    305305        ?>
    306         <a href="#TB_inline?width=753&amp;height=573&amp;inlineId=cpsh-wrap" class="thickbox button" title="<?php _e( 'Select shortcode', 'column-shortcodes' ); ?>" data-page="<?php echo $page; ?>" data-target="<?php echo $target; ?>">
    307             <img src="<?php echo $this->get_url() . "/assets/images/shortcode.png"; ?>" alt=""/>
    308         </a>
     306        <a href="#TB_inline?width=753&amp;height=573&amp;inlineId=cpsh-wrap" class="thickbox button" title="<?php _e( 'Select shortcode', 'column-shortcodes' ); ?>" data-page="<?php echo $page; ?>" data-target="<?php echo $target; ?>">
     307            <img src="<?php echo $this->get_url() . "/assets/images/shortcode.png"; ?>" alt=""/>
     308        </a>
    309309        <?php
    310310    }
     
    319319
    320320            ?>
    321             <a href='javascript:;' rel='<?php echo esc_attr( $open_tag . $close_tag ); ?>' data-tag='<?php echo esc_attr( $open_tag . $close_tag ); ?>' class='cp-<?php echo esc_attr( $button['class'] ); ?> columns insert-shortcode'>
     321            <a href='javascript:;' rel='<?php echo esc_attr( $open_tag . $close_tag ); ?>' data-tag='<?php echo esc_attr( $open_tag . $close_tag ); ?>' class='cp-<?php echo esc_attr( $button['class'] ); ?> columns insert-shortcode'>
    322322                <?php echo esc_html( $button['options']['display_name'] ); ?>
    323             </a>
     323            </a>
    324324            <?php
    325325        }
     
    333333    public function popup() {
    334334        ?>
    335         <div id="cpsh-wrap" style="display:none">
    336             <div id="cpsh">
    337                 <div id="cpsh-generator-shell">
    338 
    339                     <div id="cpsh-generator-header">
    340 
    341                         <div class="cpsh-shortcodes">
    342                             <h2 class="cpsh-title"><?php _e( "Column shortcodes", 'column-shortcodes' ); ?></h2>
     335        <div id="cpsh-wrap" style="display:none">
     336            <div id="cpsh">
     337                <div id="cpsh-generator-shell">
     338
     339                    <div id="cpsh-generator-header">
     340
     341                        <div class="cpsh-shortcodes">
     342                            <h2 class="cpsh-title"><?php _e( "Column shortcodes", 'column-shortcodes' ); ?></h2>
    343343                            <?php $this->display_shortcode_buttons(); ?>
    344                         </div>
     344                        </div>
    345345
    346346                        <?php if ( ! apply_filters( 'cpsh_hide_padding_settings', false ) ) : ?>
    347347
    348                             <div class="cpsh-settings">
    349                                 <h2 class="cpsh-title"><?php _e( "Column padding ( optional )", 'column-shortcodes' ); ?></h2>
    350                                 <p class="description">
     348                            <div class="cpsh-settings">
     349                                <h2 class="cpsh-title"><?php _e( "Column padding ( optional )", 'column-shortcodes' ); ?></h2>
     350                                <p class="description">
    351351                                    <?php _e( "Use the input fields below to customize the padding of your column shortcode.", 'column-shortcodes' ); ?>
    352352                                    <?php _e( "Enter padding first, then select your column shortcode.", 'column-shortcodes' ); ?>
    353                                 </p>
    354 
    355                                 <div id="preview-padding">
    356                                     <div class="column-container">
    357                                         <div class="column-inner">
    358                                         </div>
    359                                         <div class="padding-fields">
    360                                             <input id="padding-top" placeholder="0" value=""/>
    361                                             <input id="padding-right" placeholder="0" value=""/>
    362                                             <input id="padding-bottom" placeholder="0" value=""/>
    363                                             <input id="padding-left" placeholder="0" value=""/>
    364                                         </div>
    365                                     </div>
    366 
    367                                     <a class="padding-reset" href="javascript:;"><?php _e( "reset", 'column-shortcodes' ); ?></a>
    368                                 </div>
    369                             </div><!--.cpsh-settings-->
     353                                </p>
     354
     355                                <div id="preview-padding">
     356                                    <div class="column-container">
     357                                        <div class="column-inner">
     358                                        </div>
     359                                        <div class="padding-fields">
     360                                            <input id="padding-top" placeholder="0" value=""/>
     361                                            <input id="padding-right" placeholder="0" value=""/>
     362                                            <input id="padding-bottom" placeholder="0" value=""/>
     363                                            <input id="padding-left" placeholder="0" value=""/>
     364                                        </div>
     365                                    </div>
     366
     367                                    <a class="padding-reset" href="javascript:;"><?php _e( "reset", 'column-shortcodes' ); ?></a>
     368                                </div>
     369                            </div><!--.cpsh-settings-->
    370370
    371371                        <?php endif; ?>
    372372
    373                     </div><!--cpsh-generator-header-->
    374 
    375                     <div id="cpsh-generator-sidebar">
    376                         <div class="sidebox" id="cpsh-sidebox-feedback">
    377                             <div id="feedback-choice">
    378                                 <h3><?php _e( 'Are you happy with Columns Shortcodes?', 'column-shortcodes' ); ?></h3>
    379 
    380                                 <div class="inside">
    381                                     <a href="#" class="yes"><?php _e( 'Yes' ); ?></a>
    382                                     <a href="#" class="no"><?php _e( 'No' ); ?></a>
    383                                 </div>
    384                             </div>
    385                             <div id="feedback-support">
    386                                 <div class="inside">
    387                                     <p>
     373                    </div><!--cpsh-generator-header-->
     374
     375                    <div id="cpsh-generator-sidebar">
     376                        <div class="sidebox" id="cpsh-sidebox-feedback">
     377                            <div id="feedback-choice">
     378                                <h3><?php _e( 'Are you happy with Columns Shortcodes?', 'column-shortcodes' ); ?></h3>
     379
     380                                <div class="inside">
     381                                    <a href="#" class="yes"><?php _e( 'Yes' ); ?></a>
     382                                    <a href="#" class="no"><?php _e( 'No' ); ?></a>
     383                                </div>
     384                            </div>
     385                            <div id="feedback-support">
     386                                <div class="inside">
     387                                    <p>
    388388                                        <?php _e( "What's wrong? Need help? Let us know: please open a support topic on WordPress.org!", 'column-shortcodes' ); ?>
    389                                     </p>
    390                                     <ul class="share">
    391                                         <li>
    392                                             <a href="https://wordpress.org/support/plugin/column-shortcodes#new-post" target="_blank">
    393                                                 <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Support Forums', 'column-shortcodes' ); ?>
    394                                             </a>
    395                                         </li>
    396                                     </ul>
    397                                     <div class="clear"></div>
    398                                 </div>
    399                             </div>
    400                             <div id="feedback-rate">
    401                                 <div class="inside">
    402                                     <p>
     389                                    </p>
     390                                    <ul class="share">
     391                                        <li>
     392                                            <a href="https://wordpress.org/support/plugin/column-shortcodes#new-post" target="_blank">
     393                                                <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Support Forums', 'column-shortcodes' ); ?>
     394                                            </a>
     395                                        </li>
     396                                    </ul>
     397                                    <div class="clear"></div>
     398                                </div>
     399                            </div>
     400                            <div id="feedback-rate">
     401                                <div class="inside">
     402                                    <p>
    403403                                        <?php _e( "Woohoo! We're glad to hear that!", 'column-shortcodes' ); ?>
    404                                     </p>
    405                                     <p>
     404                                    </p>
     405                                    <p>
    406406                                        <?php _e( 'We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Column Shortcodes!', 'column-shortcodes' ); ?>
    407                                     </p>
    408                                     <ul class="share">
    409                                         <li>
    410                                             <a href="http://wordpress.org/support/view/plugin-reviews/column-shortcodes#new-post" target="_blank">
    411                                                 <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'column-shortcodes' ); ?>
    412                                             </a>
    413                                         </li>
    414 
    415                                         <li>
    416                                             <a href="<?php echo esc_url( add_query_arg( array( 'hashtags' => 'columnshortcodes', 'text' => urlencode( __( "I'm using Column Shortcodes for WordPress!", 'column-shortcodes' ) ), 'url' => urlencode( 'https://wordpress.org/plugins/column-shortcodes' ) ), 'https://twitter.com/intent/tweet' ) ); ?>" target="_blank">
    417                                                 <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'column-shortcodes' ); ?>
    418                                             </a>
    419                                         </li>
    420                                     </ul>
    421                                     <div class="clear"></div>
    422                                 </div>
    423                             </div>
    424                         </div><!--cpsh-sidebox-feedback-->
     407                                    </p>
     408                                    <ul class="share">
     409                                        <li>
     410                                            <a href="http://wordpress.org/support/view/plugin-reviews/column-shortcodes#new-post" target="_blank">
     411                                                <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'column-shortcodes' ); ?>
     412                                            </a>
     413                                        </li>
     414
     415                                        <li>
     416                                            <a href="<?php echo esc_url( add_query_arg( array( 'hashtags' => 'columnshortcodes', 'text' => urlencode( __( "I'm using Column Shortcodes for WordPress!", 'column-shortcodes' ) ), 'url' => urlencode( 'https://wordpress.org/plugins/column-shortcodes' ) ), 'https://twitter.com/intent/tweet' ) ); ?>" target="_blank">
     417                                                <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'column-shortcodes' ); ?>
     418                                            </a>
     419                                        </li>
     420                                    </ul>
     421                                    <div class="clear"></div>
     422                                </div>
     423                            </div>
     424                        </div><!--cpsh-sidebox-feedback-->
    425425
    426426                        <?php if ( $this->show_banner() ) : ?>
    427427
    428                             <div class="cs-acsidebox">
    429                                 <div class="cs-acsidebox__wrapper">
    430                                     <p class="cs-acsidebox__intro">
     428                            <div class="cs-acsidebox">
     429                                <div class="cs-acsidebox__wrapper">
     430                                    <p class="cs-acsidebox__intro">
    431431                                        <?php printf( __( 'Be sure to check out other plugins by Codepress, such as %s. It adds custom columns to your posts, users, comments and media overview in your admin. Get more insight in your content now!', 'column-shortcodes' ), '<a target="_blank" href="https://wordpress.org/plugins/codepress-admin-columns/" class="cs-acsidebox__link">Admin Columns</a>' ); ?>
    432                                     </p>
    433                                     <a href="<?php echo esc_url( add_query_arg( array( 's' => 'Admin Columns', 'tab' => 'search', 'type' => 'term' ), admin_url( 'plugin-install.php' ) ) ); ?>#install_admin_columns" target="_blank" class="cs-acsidebox__button">
    434                                         <img src="<?php echo $this->get_url() . "/assets/images/ac_vignet_grey.svg"; ?>" alt="" class="cs-acsidebox__button__logo"/>
     432                                    </p>
     433                                    <a href="<?php echo esc_url( add_query_arg( array( 's' => 'Admin Columns', 'tab' => 'search', 'type' => 'term' ), admin_url( 'plugin-install.php' ) ) ); ?>#install_admin_columns" target="_blank" class="cs-acsidebox__button">
     434                                        <img src="<?php echo $this->get_url() . "/assets/images/ac_vignet_grey.svg"; ?>" alt="" class="cs-acsidebox__button__logo"/>
    435435                                        <?php _e( 'Download for Free', 'column-shortcodes' ); ?>
    436                                     </a>
    437                                     <div class="cs-acsidebox__stars">
     436                                    </a>
     437                                    <div class="cs-acsidebox__stars">
    438438                                        <?php for ( $i = 1; $i <= 5; $i++ ) : ?>
    439                                             <span class="dashicons dashicons-star-filled"></span>
     439                                            <span class="dashicons dashicons-star-filled"></span>
    440440                                        <?php endfor; ?>
    441                                         <span class="cs-acsidebox__stars__count">(<?php echo $this->get_num_ratings(); ?>)</span>
    442                                     </div>
    443                                     <p class="cs-acsidebox__footer">
     441                                        <span class="cs-acsidebox__stars__count">(<?php echo $this->get_num_ratings(); ?>)</span>
     442                                    </div>
     443                                    <p class="cs-acsidebox__footer">
    444444                                        <?php printf( __( "%s Active Installs", 'column-shortcodes' ), '<em>' . $this->get_active_installs() . '+</em>' ); ?>
    445                                     </p>
    446                                 </div>
    447                             </div><!--cpsh-sidebox-admin-columns-->
     445                                    </p>
     446                                </div>
     447                            </div><!--cpsh-sidebox-admin-columns-->
    448448                        <?php endif; ?>
    449                     </div><!--cpsh-generator-sidebar-->
    450 
    451                 </div><!--cpsh-generator-shell-->
    452             </div>
    453         </div>
     449                    </div><!--cpsh-generator-sidebar-->
     450
     451                </div><!--cpsh-generator-shell-->
     452            </div>
     453        </div>
    454454
    455455        <?php
     
    619619
    620620        ?>
    621         <script type='text/javascript'>
     621        <script type='text/javascript'>
    622622            <?php echo implode( $script_buttons ); ?>
    623         </script>
     623        </script>
    624624        <?php
    625625    }
  • column-shortcodes/trunk/readme.txt

    r2288298 r2361089  
    55Requires at least: 4.8
    66Tested up to: 5.4
    7 Stable tag: 1.0
     7Stable tag: 1.0.1
    88
    99Adds shortcodes to easily create columns in your posts or pages.
     
    260260== Changelog ==
    261261
     262= 1.0.1 =
     263* [Fixed] Hotfix for WordPress 5.5
     264
    262265= 1.0 =
    263266* [Fixed] Compatible with WordPress 4.8 and up
Note: See TracChangeset for help on using the changeset viewer.