Plugin Directory

Changeset 1742095


Ignore:
Timestamp:
10/06/2017 09:55:14 AM (8 years ago)
Author:
Khoapq
Message:

UPDATE: Style

Location:
vc-templates-import-export/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vc-templates-import-export/trunk/assets/css/admin.css

    r1741701 r1742095  
    1 .tmu-row {
    2 }
    3 
    41.tmu-row:before,
    52.tmu-row:after {
     
    3229    padding: 15px;
    3330    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
     31    margin-bottom: 30px;
    3432}
    3533
     
    4240}
    4341
    44 .tmu-logo:hover{
     42.tmu-logo:hover {
    4543    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    4644}
     45
     46#tmu_dashboard_widget .tips-news-footer {
     47    margin-left: -13px;
     48    margin-right: -13px;
     49    padding: 13px;
     50    margin-top: 30px;
     51    border-top: 1px solid #eee;
     52    margin-bottom: -13px;
     53}
     54
     55.tmu-title-box {
     56    background: #e6e6e6;
     57    padding: 15px;
     58    margin-top: -15px;
     59    margin-left: -15px;
     60    margin-right: -15px;
     61}
     62
     63.tmu-box .tips-news-footer {
     64    border-top: 1px solid #eee;
     65    margin-left: -15px;
     66    margin-right: -15px;
     67    padding: 15px;
     68    margin-top: 30px;
     69    margin-bottom: -15px;
     70}
     71
     72.tmu-box a {
     73    text-decoration: none;
     74}
     75
     76.tmu-box ul {
     77    list-style: square;
     78    margin-left: 1.8em;
     79}
  • vc-templates-import-export/trunk/readme.txt

    r1741709 r1742095  
    11=== VC Templates Import & Export ===
    22Contributors: Khoapq
    3 Tags: export visual composer template, import visual composer template, visual composer, vc addons, visual composer addons, vc
     3Tags: export visual composer template, import visual composer template, visual composer, vc addon, visual composer addon, vc, templates, export, import
    44Donate link: https://www.paypal.me/th10028/10
    55Requires at least: 4.8.2
     
    1818== Features ==
    1919*   Export 1 or multi template.
    20 *   Import Templates
     20*   Import Templates.
    2121
    2222
  • vc-templates-import-export/trunk/vc-templates-import-export.php

    r1741701 r1742095  
    3232            add_action( 'admin_menu', array( $this, 'menu_page' ) );
    3333            add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_assets' ) );
     34//          add_action( 'tmu_sidebar_after', array( $this, 'sidebar_rss_news' ) );
     35//          add_action( 'wp_dashboard_setup', array( $this, 'add_dashboard_widgets' ) );
    3436            $this->vc_export_template();
    3537        }
     
    125127                    <div class="tmu-right tmu-col tmu-col-4">
    126128                        <div class="tmu-inner">
     129                            <?php do_action( 'tmu_sidebar_before' ); ?>
     130
    127131                            <div class="tmu-box">
    128132                                <a target="_blank" href="https://wordpress.org/plugins/vc-templates-import-export/" title="VC Templates Import & Export"><span class="tmu-logo"></span></a>
     
    145149                                </ul>
    146150                            </div>
     151
     152                            <?php do_action( 'tmu_sidebar_after' ); ?>
    147153                        </div>
    148154                    </div>
     
    263269                $output .= '<p><button class="button-bottom button-primary">' . esc_html__( 'Download Export File', 'vc-templates-import-export' ) . '</button></p>';
    264270                $output .= '</form>';
     271            } else {
     272                $output .= esc_html__( 'No Templates found!!', 'vc-templates-import-export' );
    265273            }
    266274            echo $output;
     
    289297            }
    290298        }
     299
     300
     301        public function rss_news_widget() {
     302            echo '<div class="rss-widget">';
     303            wp_widget_rss_output( array(
     304                'url'          => 'http://tomiup.com/feed/',
     305                'items'        => 5,
     306                'show_summary' => 0,
     307                'show_author'  => 0,
     308                'show_date'    => 0
     309            ) );
     310            echo '</div>';
     311            echo '<div class="tips-news-footer">
     312                    <a href="http://tomiup.com/" target="_blank">Tomiup <span class="screen-reader-text">(opens in a new window)</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>
     313                </div>';
     314        }
     315
     316        public function sidebar_rss_news() {
     317            echo '<div class="tmu-box">';
     318            echo '<h3 class="tmu-title-box">Best News & Tips</h3>';
     319            $this->rss_news_widget();
     320            echo '</div>';
     321        }
     322
     323        // Function used in the action hook
     324        public function add_dashboard_widgets() {
     325            add_meta_box( 'tmu_dashboard_widget', 'Best News & Tips', array(
     326                $this,
     327                'rss_news_widget'
     328            ), 'dashboard', 'side', 'high' );
     329        }
     330
     331
    291332    }
    292333
Note: See TracChangeset for help on using the changeset viewer.