Changeset 1742095
- Timestamp:
- 10/06/2017 09:55:14 AM (8 years ago)
- Location:
- vc-templates-import-export/trunk
- Files:
-
- 3 edited
-
assets/css/admin.css (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
vc-templates-import-export.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vc-templates-import-export/trunk/assets/css/admin.css
r1741701 r1742095 1 .tmu-row {2 }3 4 1 .tmu-row:before, 5 2 .tmu-row:after { … … 32 29 padding: 15px; 33 30 box-shadow: 0 1px 1px rgba(0, 0, 0, .04); 31 margin-bottom: 30px; 34 32 } 35 33 … … 42 40 } 43 41 44 .tmu-logo:hover {42 .tmu-logo:hover { 45 43 box-shadow: 0 1px 4px rgba(0, 0, 0, .3); 46 44 } 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 1 1 === VC Templates Import & Export === 2 2 Contributors: Khoapq 3 Tags: export visual composer template, import visual composer template, visual composer, vc addon s, visual composer addons, vc3 Tags: export visual composer template, import visual composer template, visual composer, vc addon, visual composer addon, vc, templates, export, import 4 4 Donate link: https://www.paypal.me/th10028/10 5 5 Requires at least: 4.8.2 … … 18 18 == Features == 19 19 * Export 1 or multi template. 20 * Import Templates 20 * Import Templates. 21 21 22 22 -
vc-templates-import-export/trunk/vc-templates-import-export.php
r1741701 r1742095 32 32 add_action( 'admin_menu', array( $this, 'menu_page' ) ); 33 33 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' ) ); 34 36 $this->vc_export_template(); 35 37 } … … 125 127 <div class="tmu-right tmu-col tmu-col-4"> 126 128 <div class="tmu-inner"> 129 <?php do_action( 'tmu_sidebar_before' ); ?> 130 127 131 <div class="tmu-box"> 128 132 <a target="_blank" href="https://wordpress.org/plugins/vc-templates-import-export/" title="VC Templates Import & Export"><span class="tmu-logo"></span></a> … … 145 149 </ul> 146 150 </div> 151 152 <?php do_action( 'tmu_sidebar_after' ); ?> 147 153 </div> 148 154 </div> … … 263 269 $output .= '<p><button class="button-bottom button-primary">' . esc_html__( 'Download Export File', 'vc-templates-import-export' ) . '</button></p>'; 264 270 $output .= '</form>'; 271 } else { 272 $output .= esc_html__( 'No Templates found!!', 'vc-templates-import-export' ); 265 273 } 266 274 echo $output; … … 289 297 } 290 298 } 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 291 332 } 292 333
Note: See TracChangeset
for help on using the changeset viewer.