Changeset 298664
- Timestamp:
- 11/17/2025 06:12:54 AM (7 days ago)
- Location:
- lms-education-study/0.2.6
- Files:
-
- 7 added
- 18 edited
- 1 copied
-
. (copied) (copied from lms-education-study/0.2.5)
-
archive.php (modified) (1 diff)
-
assets/css/customizer-layout.css (modified) (1 diff)
-
assets/img/1column.png (added)
-
assets/img/3column.png (added)
-
assets/img/4column.png (added)
-
assets/img/grid.png (added)
-
assets/img/left-sidebar.png (added)
-
assets/img/right-sidebar.png (added)
-
functions.php (modified) (5 diffs)
-
inc/customizer.php (modified) (1 diff)
-
inc/theme-installation/assets/css/theme-installation.css (modified) (1 diff)
-
inc/theme-installation/assets/js/theme-installation.js (modified) (1 diff)
-
inc/theme-installation/theme-installation.php (modified) (4 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
search.php (modified) (1 diff)
-
sidebar.php (modified) (1 diff)
-
style.css (modified) (2 diffs)
-
template-parts/content-audio.php (modified) (1 diff)
-
template-parts/content-gallery.php (modified) (1 diff)
-
template-parts/content-image.php (modified) (1 diff)
-
template-parts/content-search.php (modified) (1 diff)
-
template-parts/content-video.php (modified) (1 diff)
-
template-parts/content.php (modified) (1 diff)
-
template-parts/patterns.php (added)
Legend:
- Unmodified
- Added
- Removed
-
lms-education-study/0.2.6/archive.php
r268727 r298664 11 11 12 12 <div id="skip-content" class="container"> 13 <div class="row"> 14 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Left Side'){?> 15 <?php get_sidebar(); ?> 16 <?php }?> 17 <div id="primary" class="content-area col-lg-9 col-lg-8"> 18 <main id="main" class="site-main module-border-wrap"> 19 <?php if (have_posts()) { ?> 13 <div id="primary" class="content-area"> 14 <main id="main" class="site-main"> 15 16 <?php if (have_posts()) { 17 if (is_home() && !is_front_page()) : ?> 18 <header> 19 <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> 20 </header> 21 <?php endif; ?> 20 22 21 <header class="page-header"> 22 <?php 23 the_archive_title('<h2 class="page-title">', '</h2>'); 24 the_archive_description('<div class="archive-description">', '</div>'); 25 ?> 26 </header> 23 <div class="row"> 24 <?php 25 get_template_part( 'template-parts/patterns'); 27 26 28 <div class="row"> 29 <?php /* Start the Loop */ 30 while (have_posts()) : 31 the_post(); 32 33 get_template_part( 'template-parts/content',get_post_format()); 34 35 endwhile; ?> 36 </div> 37 38 <?php if( get_theme_mod('lms_education_study_post_page_pagination',1) == 1){ 39 lms_education_study_blog_posts_pagination(); 40 } 41 42 }else { 27 } else { 43 28 44 29 get_template_part('template-parts/content', 'none'); 45 30 46 31 } ?> 47 48 </main> 49 </div> 50 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Right Side'){?> 51 <?php get_sidebar(); ?> 52 <?php }?> 32 </div> 33 34 </main> 53 35 </div> 54 36 </div> -
lms-education-study/0.2.6/assets/css/customizer-layout.css
r277165 r298664 185 185 padding: 8px !important; 186 186 } 187 188 ul#lms-education-study-img-container { 189 display: grid; 190 grid-template-columns: auto auto; 191 gap: 10px; 192 row-gap: 4px; 193 } 194 ul#lms-education-study-img-container img { 195 width: 100%; 196 height: 60px; 197 } -
lms-education-study/0.2.6/functions.php
r294747 r298664 94 94 95 95 register_sidebar( array( 96 'name' => esc_html__( 'Sidebar 1', 'lms-education-study' ), 97 'id' => 'sidebar1', 98 'description' => esc_html__( 'Add widgets here.', 'lms-education-study' ), 99 'before_widget' => '<section id="%1$s" class="widget %2$s">', 100 'after_widget' => '</section>', 101 'before_title' => '<h5 class="widget-title">', 102 'after_title' => '</h5>', 103 ) ); 104 105 register_sidebar( array( 106 'name' => esc_html__( 'Sidebar 2', 'lms-education-study' ), 107 'id' => 'sidebar2', 108 'description' => esc_html__( 'Add widgets here.', 'lms-education-study' ), 109 'before_widget' => '<section id="%1$s" class="widget %2$s">', 110 'after_widget' => '</section>', 111 'before_title' => '<h5 class="widget-title">', 112 'after_title' => '</h5>', 113 ) ); 114 115 register_sidebar( array( 96 116 'name' => esc_html__( 'Footer Column 1', 'lms-education-study' ), 97 117 'id' => 'lms-education-study-footer1', … … 349 369 add_action( 'wp_enqueue_scripts', 'lms_education_study_preloader' ); 350 370 371 if ( class_exists( 'WP_Customize_Control' ) ) { 372 // Image Toggle Radio Buttpon 373 class LMS_Education_Study_Image_Radio_Control extends WP_Customize_Control { 374 375 public function render_content() { 376 377 if (empty($this->choices)) 378 return; 379 380 $name = '_customize-radio-' . $this->id; 381 ?> 382 <span class="customize-control-title"><?php echo esc_html($this->label); ?></span> 383 <ul class="controls" id='lms-education-study-img-container'> 384 <?php 385 foreach ($this->choices as $value => $label) : 386 $class = ($this->value() == $value) ? 'lms-education-study-radio-img-selected lms-education-study-radio-img-img' : 'lms-education-study-radio-img-img'; 387 ?> 388 <li style="display: inline;"> 389 <label> 390 <input <?php $this->link(); ?>style = 'display:none' type="radio" value="<?php echo esc_attr($value); ?>" name="<?php echo esc_attr($name); ?>" <?php 391 $this->link(); 392 checked($this->value(), $value); 393 ?> /> 394 <img src='<?php echo esc_url($label); ?>' class='<?php echo esc_attr($class); ?>' /> 395 </label> 396 </li> 397 <?php 398 endforeach; 399 ?> 400 </ul> 401 <?php 402 } 403 } 404 } 405 406 /** 407 * Custom template tags for this theme. 408 */ 409 require get_template_directory() . '/inc/template-tags.php'; 410 411 /** 412 * Implement the Custom Header feature. 413 */ 414 require get_template_directory() . '/inc/custom-header.php'; 415 416 /** 417 * Functions which enhance the theme by hooking into WordPress. 418 */ 419 require get_template_directory() . '/inc/template-functions.php'; 420 421 /** 422 * Menu 423 */ 424 425 require get_template_directory() . '/inc/class-navigation-menu.php'; 426 427 /* TGM. */ 428 require get_parent_theme_file_path( '/inc/tgm.php' ); 429 351 430 function lms_education_study_files_setup() { 352 431 353 /** 354 * Custom template tags for this theme. 355 */ 356 require get_template_directory() . '/inc/template-tags.php'; 357 358 /** 359 * Implement the Custom Header feature. 360 */ 361 require get_template_directory() . '/inc/custom-header.php'; 362 363 /** 364 * Functions which enhance the theme by hooking into WordPress. 365 */ 366 require get_template_directory() . '/inc/template-functions.php'; 367 368 /** 369 * Menu 370 */ 371 372 require get_template_directory() . '/inc/class-navigation-menu.php'; 432 define( 'FREE_MNSSP_API_URL', 'https://license.themagnifico.net/api/general/' ); 373 433 374 434 /** … … 377 437 require get_template_directory() . '/inc/customizer.php'; 378 438 379 /* TGM. */380 require get_parent_theme_file_path( '/inc/tgm.php' );381 382 439 if ( ! defined( 'LMS_EDUCATION_STUDY_CONTACT_SUPPORT' ) ) { 383 440 define('LMS_EDUCATION_STUDY_CONTACT_SUPPORT',__('https://wordpress.org/support/theme/lms-education-study/','lms-education-study')); … … 405 462 406 463 add_action( 'after_setup_theme', 'lms_education_study_files_setup' ); 407 408 409 464 410 465 function lms_education_study_sanitize_select( $input, $setting ){ … … 1003 1058 ]); 1004 1059 } 1060 1061 // Getstart Function 1062 1063 1064 function free_mnssp_get_filtered_products($cursor = '', $search = '', $collection = 'pro') { 1065 $endpoint_url = FREE_MNSSP_API_URL . 'getFilteredProducts'; 1066 1067 $remote_post_data = array( 1068 'collectionHandle' => $collection, 1069 'productHandle' => $search, 1070 'paginationParams' => array( 1071 "first" => 12, 1072 "afterCursor" => $cursor, 1073 "beforeCursor" => "", 1074 "reverse" => true 1075 ) 1076 ); 1077 1078 $body = wp_json_encode($remote_post_data); 1079 1080 $options = [ 1081 'body' => $body, 1082 'headers' => [ 1083 'Content-Type' => 'application/json' 1084 ] 1085 ]; 1086 $response = wp_remote_post($endpoint_url, $options); 1087 1088 if (!is_wp_error($response)) { 1089 $response_body = wp_remote_retrieve_body($response); 1090 $response_body = json_decode($response_body); 1091 1092 if (isset($response_body->data) && !empty($response_body->data)) { 1093 if (isset($response_body->data->products) && !empty($response_body->data->products)) { 1094 return array( 1095 'products' => $response_body->data->products, 1096 'pagination' => $response_body->data->pageInfo 1097 ); 1098 } 1099 } 1100 return []; 1101 } 1102 1103 return []; 1104 } 1105 1106 function free_mnssp_get_filtered_products_ajax() { 1107 $cursor = isset($_POST['cursor']) ? sanitize_text_field(wp_unslash($_POST['cursor'])) : ''; 1108 $search = isset($_POST['search']) ? sanitize_text_field(wp_unslash($_POST['search'])) : ''; 1109 $collection = isset($_POST['collection']) ? sanitize_text_field(wp_unslash($_POST['collection'])) : 'pro'; 1110 1111 check_ajax_referer('free_mnssp_create_pagination_nonce_action', 'mnssp_pagination_nonce'); 1112 1113 $get_filtered_products = free_mnssp_get_filtered_products($cursor, $search, $collection); 1114 ob_start(); 1115 if (isset($get_filtered_products['products']) && !empty($get_filtered_products['products'])) { 1116 foreach ( $get_filtered_products['products'] as $product ) { 1117 1118 $product_obj = $product->node; 1119 1120 if (isset($product_obj->inCollection) && !$product_obj->inCollection) { 1121 continue; 1122 } 1123 1124 $product_obj = $product->node; 1125 1126 $demo_url = isset($product->node->metafield->value) ? $product->node->metafield->value : ''; 1127 $product_url = isset($product->node->onlineStoreUrl) ? $product->node->onlineStoreUrl : ''; 1128 $image_src = isset($product->node->images->edges[0]->node->src) ? $product->node->images->edges[0]->node->src : ''; 1129 $price = isset($product->node->variants->edges[0]->node->price) ? '$' . $product->node->variants->edges[0]->node->price : ''; ?> 1130 1131 <div class="mnssp-grid-item"> 1132 <div class="mnssp-image-wrap"> 1133 <img src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr($product_obj->title); ?>"> 1134 <div class="mnssp-image-overlay"> 1135 <a class="mnssp-demo-url mnssp-btn" href="<?php echo esc_attr($demo_url); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html('Demo'); ?></a> 1136 <a class="mnssp-buy-now mnssp-btn" href="<?php echo esc_attr($product_url); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html('Buy Now'); ?></a> 1137 </div> 1138 </div> 1139 <footer> 1140 <h3><?php echo esc_html($product_obj->title); ?></h3> 1141 </footer> 1142 <div class="mnssp-grid-item-price">Price: <?php echo esc_html($price); ?></div> 1143 </div> 1144 <?php } 1145 } 1146 $output = ob_get_clean(); 1147 1148 $pagination = isset($get_filtered_products['pagination']) ? $get_filtered_products['pagination'] : []; 1149 wp_send_json(array( 1150 'content' => $output, 1151 'pagination' => $pagination 1152 )); 1153 } 1154 1155 add_action('wp_ajax_free_mnssp_get_filtered_products', 'free_mnssp_get_filtered_products_ajax'); 1156 add_action('wp_ajax_nopriv_free_mnssp_get_filtered_products', 'free_mnssp_get_filtered_products_ajax'); 1157 1158 function free_mnssp_get_collections() { 1159 1160 $endpoint_url = FREE_MNSSP_API_URL . 'getCollections'; 1161 1162 $options = [ 1163 'body' => [], 1164 'headers' => [ 1165 'Content-Type' => 'application/json' 1166 ] 1167 ]; 1168 $response = wp_remote_post($endpoint_url, $options); 1169 1170 if (!is_wp_error($response)) { 1171 $response_body = wp_remote_retrieve_body($response); 1172 $response_body = json_decode($response_body); 1173 1174 if (isset($response_body->data) && !empty($response_body->data)) { 1175 return $response_body->data; 1176 } 1177 return []; 1178 } 1179 1180 return []; 1181 } -
lms-education-study/0.2.6/inc/customizer.php
r288755 r298664 152 152 ) 153 153 ); 154 155 // Post Layouts Settings 156 $wp_customize->add_section('lms_education_study_post_layouts_settings',array( 157 'title' => esc_html__('Post Layouts Settings','lms-education-study'), 158 'priority' => 30, 159 )); 160 161 $wp_customize->add_setting('lms_education_study_post_layout',array( 162 'default' => 'pattern_two_column_right', 163 'sanitize_callback' => 'lms_education_study_sanitize_choices' 164 )); 165 $wp_customize->add_control(new LMS_Education_Study_Image_Radio_Control($wp_customize, 'lms_education_study_post_layout', array( 166 'type' => 'select', 167 'label' => __('Blog Post Layouts','lms-education-study'), 168 'section' => 'lms_education_study_post_layouts_settings', 169 'choices' => array( 170 'pattern_one_column' => esc_url(get_template_directory_uri()).'/assets/img/1column.png', 171 'pattern_two_column_right' => esc_url(get_template_directory_uri()).'/assets/img/right-sidebar.png', 172 'pattern_two_column_left' => esc_url(get_template_directory_uri()).'/assets/img/left-sidebar.png', 173 'pattern_three_column' => esc_url(get_template_directory_uri()).'/assets/img/3column.png', 174 'pattern_four_column' => esc_url(get_template_directory_uri()).'/assets/img/4column.png', 175 'pattern_grid_post' => esc_url(get_template_directory_uri()).'/assets/img/grid.png', 176 )) 177 )); 154 178 155 179 // General Settings -
lms-education-study/0.2.6/inc/theme-installation/assets/css/theme-installation.css
r294747 r298664 516 516 } 517 517 } 518 519 520 521 /*Pro Templates*/ 522 523 .mnssp-templates-grid.mnssp-main-grid.getstart-free { 524 display: -ms-grid; 525 display: grid; 526 -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; 527 grid-template-columns: repeat(4, 1fr); 528 grid-column-gap: 30px; 529 grid-row-gap: 30px; 530 padding: 0px; 531 } 532 .mnssp-grid-item { 533 position: relative; 534 overflow: hidden; 535 border: 1px solid #e8e8e8; 536 -webkit-box-shadow: 0 0 3px 0 rgba(0,0,0,0.1); 537 box-shadow: 0 0 3px 0 rgba(0,0,0,0.1); 538 background: #fff; 539 } 540 .mnssp-templates-grid.mnssp-main-grid.getstart-free .mnssp-image-wrap { 541 position: relative; 542 border-bottom: 1px solid #e8e8e8; 543 height: 285px; 544 } 545 .mnssp-image-wrap img { 546 height: 100%; 547 display: block; 548 max-width: 100%; 549 width: 100%; 550 object-fit: cover; 551 object-position: top; 552 } 553 .mnssp-grid-item footer{ 554 display: -webkit-box; 555 display: -ms-flexbox; 556 display: flex; 557 padding: 15px; 558 -webkit-box-pack: justify; 559 -ms-flex-pack: justify; 560 justify-content: space-between; 561 } 562 .mnssp-main-grid .mnssp-grid-item footer h3 { 563 margin: 0; 564 font-size: 16px; 565 text-transform: capitalize; 566 } 567 .mnssp-templates-grid .mnssp-image-overlay { 568 opacity: 0; 569 display: -webkit-box; 570 display: -ms-flexbox; 571 display: flex; 572 -webkit-box-align: center; 573 -ms-flex-align: center; 574 align-items: center; 575 -webkit-box-pack: center; 576 -ms-flex-pack: center; 577 justify-content: center; 578 position: absolute; 579 top: 0; 580 left: 0; 581 width: 100%; 582 height: 100%; 583 background: rgba(0, 0, 0, 0.7); 584 cursor: pointer; 585 -webkit-transition: opacity 0.2s ease-in; 586 -o-transition: opacity 0.2s ease-in; 587 transition: opacity 0.2s ease-in; 588 } 589 .mnssp-templates-grid .mnssp-image-wrap:hover .mnssp-image-overlay { 590 opacity: 1; 591 } 592 .mnssp-grid-item .mnssp-btn { 593 padding: 10px 25px; 594 border: 0; 595 -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 596 box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 597 font-size: 18px; 598 text-decoration: none; 599 border-radius: 5px; 600 } 601 .mnssp-grid-item .mnssp-demo-url.mnssp-btn { 602 color: #fff; 603 background: #2673ff; 604 margin-right: 15px; 605 } 606 .mnssp-buy-now.mnssp-btn { 607 color: #fff; 608 background: #fcb03b; 609 } 610 .mnssp-loader-overlay { 611 display: none; 612 position: fixed; 613 width: 100%; 614 height: 100%; 615 background-color: rgb(255, 255, 255); 616 z-index: 9998; 617 } 618 .mnssp-loader { 619 display: none; 620 position: fixed; 621 top: 50%; 622 left: 50%; 623 transform: translate(-50%, -50%); 624 z-index: 9999; 625 width: fit-content; 626 font-size: 40px; 627 font-family: system-ui,sans-serif; 628 font-weight: bold; 629 text-transform: uppercase; 630 color: #0000; 631 -webkit-text-stroke: 1px #f15b26; 632 --g: conic-gradient(#fcb03b 0 0) no-repeat text; 633 background: var(--g) 0,var(--g) 100%,var(--g) 0 0,var(--g) 0 100%; 634 animation: l5 2s linear infinite; 635 } 636 .mnssp-loader:before { 637 content: "Loading"; 638 } 639 .mnsp-feat-img img { 640 width: 100%; 641 } 642 .mnssp-right-content .mnsp-feat { 643 flex-basis: 45%; 644 } 645 .mnssp-right-content .mnsp-feat-img { 646 flex-basis: 55%; 647 } 648 .mnsp-feat-img img { 649 width: 100%; 650 height: 360px; 651 object-fit: cover; 652 } 653 .mnsp-feat .mnsp-buy-btn { 654 color: #fff; 655 text-decoration: unset; 656 font-size: 17px; 657 padding: 12px 26px; 658 display: inline-block; 659 background-color: #f15b26; 660 border-radius: 5px; 661 margin-top: 10px; 662 font-weight: 500; 663 transition: 0.3s ease-in-out; 664 &:hover { 665 background-color: #f15b26; 666 } 667 } 668 .mnssp-grid-item-price { 669 padding: 0px 15px 15px 15px; 670 color: #000; 671 font-size: 16px; 672 } 673 674 .mnssp-search-box { 675 display: flex; 676 justify-content: space-between; 677 margin-bottom: 20px; 678 } 679 .mnssp-templates-collections-search input { 680 width: 100%; 681 height: 45px; 682 padding-left: 15px; 683 background-color: #FBFBFB; 684 border: none; 685 border: 1px solid #e8e8e8 !important; 686 -webkit-box-shadow: none !important; 687 box-shadow: none !important; 688 border-radius: 3px; 689 } 690 .mnssp-templates-collections-search .dashicons { 691 margin-left: -32px; 692 color: #f15b26; 693 vertical-align: text-bottom; 694 } 695 #mnssp-collections { 696 height: 45px; 697 border: 1px solid #e8e8e8; 698 padding: 0px 10px; 699 } 700 701 .mnssp-loader-overlay { 702 display: none; 703 position: fixed; 704 width: 100%; 705 height: 100%; 706 background-color: rgb(255, 255, 255); 707 z-index: 9998; 708 } 709 .mnssp-loader { 710 display: none; 711 position: fixed; 712 top: 50%; 713 left: 50%; 714 transform: translate(-50%, -50%); 715 z-index: 9999; 716 width: fit-content; 717 font-size: 40px; 718 font-family: system-ui,sans-serif; 719 font-weight: bold; 720 text-transform: uppercase; 721 color: #0000; 722 -webkit-text-stroke: 1px #f15b26; 723 --g: conic-gradient(#fcb03b 0 0) no-repeat text; 724 background: var(--g) 0,var(--g) 100%,var(--g) 0 0,var(--g) 0 100%; 725 animation: l5 2s linear infinite; 726 } 727 .mnssp-loader:before { 728 content: "Loading"; 729 } -
lms-education-study/0.2.6/inc/theme-installation/assets/js/theme-installation.js
r272409 r298664 38 38 39 39 }); 40 41 jQuery(document).ready(function($) { 42 var page = 1; 43 var isLoading = false; 44 45 $(window).scroll(function () { 46 if ($(window).scrollTop() + $(window).height() >= $(document).height() - 200 && !isLoading) { 47 loadMoreProducts(); 48 } 49 }); 50 51 function productsAjax( endCursor, templateSearch, collection, actionValue ) { 52 53 var progress = 0; 54 var progressInterval = setInterval(function() { 55 progress += 10; 56 if (progress >= 100) { 57 clearInterval(progressInterval); 58 } 59 }, 300); 60 61 $.ajax({ 62 url: tm_theme_info_box_object.ajaxurl, 63 type: 'POST', 64 data: { 65 action: 'free_mnssp_get_filtered_products', 66 cursor: endCursor, 67 search: templateSearch, 68 collection: collection, 69 mnssp_pagination_nonce: tm_theme_info_box_object.nonce 70 }, 71 success: function (response) { 72 73 clearInterval(progressInterval); 74 jQuery('.mnssp-loader').hide(); 75 jQuery('.mnssp-loader-overlay').hide(); 76 77 if (response.content) { 78 79 isLoading = false; 80 81 if ( actionValue != 'load' ) { 82 jQuery('.mnssp-templates-grid.mnssp-main-grid').empty(); 83 } 84 jQuery('.mnssp-templates-grid.mnssp-main-grid').append(response.content); 85 86 const hasNextPage = response?.pagination?.hasNextPage; 87 const endCursor = response?.pagination?.endCursor; 88 89 jQuery('[name="mnssp-end-cursor"]').val(endCursor); 90 if (!hasNextPage) { 91 jQuery('[name="mnssp-end-cursor"]').val(''); 92 isLoading = true 93 } 94 } 95 }, 96 error: function () { 97 98 clearInterval(progressInterval); 99 jQuery('.mnssp-loader').hide(); 100 jQuery('.mnssp-loader-overlay').hide(); 101 102 console.log('Error loading products'); 103 } 104 }); 105 } 106 107 function loadMoreProducts() { 108 isLoading = true; 109 page++; 110 111 const endCursor = jQuery('[name="mnssp-end-cursor"]').val(); 112 const templateSearch = jQuery('[name="mnssp-templates-search"]').val(); 113 const collection = jQuery('[name="mnssp-collections"]').val(); 114 115 productsAjax( endCursor, templateSearch, collection, 'load' ); 116 } 117 118 function debounce(func, delay) { 119 let timeoutId; 120 return function() { 121 const context = this; 122 const args = arguments; 123 clearTimeout(timeoutId); 124 timeoutId = setTimeout(() => { 125 func.apply(context, args); 126 }, delay); 127 }; 128 } 129 130 jQuery('#mnssp-collections').on('change', function() { 131 132 jQuery('.mnssp-loader').show(); 133 jQuery('.mnssp-loader-overlay').show(); 134 135 productsAjax( '', '', jQuery(this).val(), 'category' ); 136 }); 137 138 $('body').on("input", '[name="mnssp-templates-search"]', debounce(function (event) { 139 140 const templateSearch = $('[name="mnssp-templates-search"]').val(); 141 142 jQuery('.mnssp-loader').show(); 143 jQuery('.mnssp-loader-overlay').show(); 144 145 productsAjax( '', templateSearch, '', 'search' ); 146 147 }, 1000)); 148 }); -
lms-education-study/0.2.6/inc/theme-installation/theme-installation.php
r294747 r298664 304 304 305 305 /** 306 * Getting started tab 307 */ 308 public function lms_education_study_pro_templates() { 309 echo '<div class="feature-section demo-impoter-tab ">'; ?> 310 <div class="pro-search-main"> 311 <div class="mnssp-search-box"> 312 <div class="mnssp-templates-collections-search"> 313 <input type="text" name="mnssp-templates-search" autocomplete="off" placeholder="Search Templates..."> 314 <span class="dashicons dashicons-search"></span> 315 </div> 316 <div class="mnssp-templates-collections-filter"> 317 <?php $collections_arr = free_mnssp_get_collections(); ?> 318 <select name="mnssp-collections" id="mnssp-collections"> 319 <?php foreach ( $collections_arr as $collection ) { ?> 320 <option value="<?php echo esc_attr($collection->handle); ?>"><?php echo esc_html($collection->title); ?></option> 321 <?php } ?> 322 </select> 323 </div> 324 </div> 325 <div class="mnssp-templates-grid mnssp-main-grid getstart-free "> 326 <?php $get_filtered_products = free_mnssp_get_filtered_products(); 327 if (isset($get_filtered_products['products']) && !empty($get_filtered_products['products'])) { 328 foreach ( $get_filtered_products['products'] as $product ) { 329 330 $product_obj = $product->node; 331 332 if (isset($product_obj->inCollection) && !$product_obj->inCollection) { 333 continue; 334 } 335 336 $demo_url = isset($product->node->metafield->value) ? $product->node->metafield->value : ''; 337 $product_url = isset($product->node->onlineStoreUrl) ? $product->node->onlineStoreUrl : ''; 338 $image_src = isset($product->node->images->edges[0]->node->src) ? $product->node->images->edges[0]->node->src : ''; 339 $price = isset($product->node->variants->edges[0]->node->price) ? '$' . $product->node->variants->edges[0]->node->price : ''; ?> 340 341 <div class="mnssp-grid-item"> 342 <div class="mnssp-image-wrap"> 343 <img src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr($product_obj->title); ?>"> 344 <div class="mnssp-image-overlay"> 345 <a class="mnssp-demo-url mnssp-btn" href="<?php echo esc_attr($demo_url); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html('Demo'); ?></a> 346 <a class="mnssp-buy-now mnssp-btn" href="<?php echo esc_attr($product_url); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html('Buy Now'); ?></a> 347 </div> 348 </div> 349 <footer> 350 <h3><?php echo esc_html($product_obj->title); ?></h3> 351 </footer> 352 <div class="mnssp-grid-item-price">Price: <?php echo esc_html($price); ?></div> 353 </div> 354 <?php } 355 } 356 ?> 357 </div> 358 359 <?php if (isset($get_filtered_products['pagination']->hasNextPage) && $get_filtered_products['pagination']->hasNextPage) { ?> 360 <input type="hidden" name="mnssp-end-cursor" value="<?php echo esc_attr(isset($get_filtered_products['pagination']->endCursor) ? $get_filtered_products['pagination']->endCursor : '') ?>"> 361 <?php } ?> 362 </div> 363 <?php echo '</div><!-- .feature-section col-wrap -->'; 364 } 365 366 /** 306 367 * Recommended Actions tab 307 368 */ … … 745 806 'nr_actions_recommended' => $count, 746 807 'ajaxurl' => admin_url( 'admin-ajax.php' ), 747 'template_directory' => get_template_directory_uri() 808 'template_directory' => get_template_directory_uri(), 809 'nonce' => wp_create_nonce('free_mnssp_create_pagination_nonce_action') 748 810 ) ); 749 811 … … 785 847 'tabs' => array( 786 848 'lms_education_study_demo_impoter' => esc_html__( 'Demo Impoter', 'lms-education-study' ), 849 'lms_education_study_pro_templates' => esc_html__( 'Pro Templates', 'lms-education-study' ), 787 850 'lms_education_study_free_pro' => esc_html__( 'Compare Free Vs Pro', 'lms-education-study' ), 788 851 'lms_education_study_recommended_plugins' => esc_html__( 'Recommended Plugins', 'lms-education-study' ), … … 980 1043 'Classic Widgets' => array( 981 1044 'slug' => 'classic-widgets' 1045 ), 1046 'Currency Switcher for WooCommerce' => array( 1047 'slug' => 'currency-switcher-woocommerce' 1048 ), 1049 'GTranslate' => array( 1050 'slug' => 'gtranslate' 1051 ), 1052 'WooCommerce' => array( 1053 'slug' => 'woocommerce' 982 1054 ) 983 1055 ), -
lms-education-study/0.2.6/index.php
r268727 r298664 16 16 17 17 <div id="skip-content" class="container"> 18 <div class="row"> 19 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Left Side'){?> 20 <?php get_sidebar(); ?> 21 <?php }?> 22 <div id="primary" class="content-area col-lg-9 col-md-8"> 23 <main id="main" class="site-main"> 24 25 <?php if (have_posts()) { 26 if (is_home() && !is_front_page()) : ?> 27 <header> 28 <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> 29 </header> 30 <?php endif; ?> 18 <div id="primary" class="content-area"> 19 <main id="main" class="site-main"> 20 <?php if (have_posts()) { 21 if (is_home() && !is_front_page()) : ?> 22 <header> 23 <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> 24 </header> 25 <?php endif; ?> 31 26 32 <div class="row"> 33 <?php /* Start the Loop */ 34 while (have_posts()) : 35 the_post(); 27 <div class="row"> 28 <?php 29 get_template_part( 'template-parts/patterns'); 36 30 37 get_template_part( 'template-parts/content',get_post_format());31 } else { 38 32 39 endwhile;33 get_template_part('template-parts/content', 'none'); 40 34 41 if( get_theme_mod('lms_education_study_post_page_pagination',1) == 1){ 42 lms_education_study_blog_posts_pagination(); 43 } 35 } ?> 36 </div> 44 37 45 } else { 46 47 get_template_part('template-parts/content', 'none'); 48 49 } ?> 50 </div> 51 52 </main> 53 </div> 54 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Right Side'){?> 55 <?php get_sidebar(); ?> 56 <?php }?> 38 </main> 57 39 </div> 58 40 </div> -
lms-education-study/0.2.6/readme.txt
r296393 r298664 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.2 6 Stable tag: 0.2. 56 Stable tag: 0.2.6 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html 9 Tags: wide-blocks, block-styles, custom-logo, one-column, two-columns, grid-layout, sticky-post, custom-background, custom-colors, footer-widgets, custom-header, custom-menu, featured-images, flexible-header, threaded-comments, theme-options, left-sidebar, right-sidebar, full-width-template, editor-style, portfolio, education, blog, post-formats, translation-ready9 Tags: three-columns, four-columns, translation-ready, wide-blocks, block-styles, custom-logo, one-column, two-columns, grid-layout, sticky-post, custom-background, custom-colors, footer-widgets, custom-header, custom-menu, featured-images, flexible-header, threaded-comments, theme-options, left-sidebar, right-sidebar, full-width-template, editor-style, portfolio, education, blog, post-formats, translation-ready 10 10 11 11 == Description == … … 108 108 109 109 == Changelog == 110 111 = 0.2.6 112 113 * Added some tags. 114 * Added post layout option. 115 * Updated getstart. 110 116 111 117 = 0.2.5 -
lms-education-study/0.2.6/search.php
r268727 r298664 10 10 11 11 <div id="skip-content" class="container"> 12 <div class="row"> 13 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Left Side'){?> 14 <?php get_sidebar(); ?> 15 <?php }?> 16 <div id="primary" class="content-area col-lg-9 col-md-8"> 17 <main id="main" class="site-main module-border-wrap mb-4"> 18 <div class="row"> 19 <?php if (have_posts()) { ?> 20 <header class="page-header"> 21 <h4 class="page-title"> 22 <?php 23 /* translators: %s: search query. */ 24 printf(esc_html__('Search Results for: %s', 'lms-education-study'), '<span>' . get_search_query() . '</span>'); 25 ?> 26 </h4> 27 </header> 28 <?php 29 /* Start the Loop */ 30 while (have_posts()) : the_post(); 12 <div id="primary" class="content-area"> 13 <main id="main" class="site-main module-border-wrap mb-4"> 14 <div class="row"> 15 <?php if (have_posts()) { ?> 16 17 <?php 18 19 /** 20 * Run the loop for the search to output the results. 21 * If you want to overload this in a child theme then include a file 22 * called content-search.php and that will be used instead. 23 */ 24 get_template_part( 'template-parts/patterns'); 31 25 32 /** 33 * Run the loop for the search to output the results. 34 * If you want to overload this in a child theme then include a file 35 * called content-search.php and that will be used instead. 36 */ 37 get_template_part( 'template-parts/content',get_post_format()); 26 }else { 38 27 39 endwhile;28 get_template_part('template-parts/content', 'none'); 40 29 41 if( get_theme_mod('lms_education_study_post_page_pagination',1) == 1){ 42 lms_education_study_blog_posts_pagination(); 43 } 44 45 }else { 46 47 get_template_part('template-parts/content', 'none'); 48 49 } ?> 50 </div> 51 </main> 52 </div> 53 <?php if (get_theme_mod('lms_education_study_blog_sidebar_position','Right Side') == 'Right Side'){?> 54 <?php get_sidebar(); ?> 55 <?php }?> 30 } ?> 31 </div> 32 </main> 56 33 </div> 57 34 </div> -
lms-education-study/0.2.6/sidebar.php
r268727 r298664 9 9 10 10 ?> 11 <aside id="secondary" class="widget-area col-lg-3 col-md-4">11 <aside id="secondary" class="widget-area"> 12 12 <div class="sidebar"> 13 13 <?php if ( is_active_sidebar( 'sidebar' ) ) : ?> -
lms-education-study/0.2.6/style.css
r296393 r298664 6 6 Author URI: https://www.themagnifico.net/ 7 7 Description: LMS Education Study is a powerful and versatile WordPress theme designed specifically for educational institutions such as schools, colleges, universities, and online learning platforms. Built around a robust Learning Management System (LMS), it provides the perfect platform for creating and managing online courses, virtual classrooms, and student portals. This theme is ideal for educators, tutors, and academic organizations looking to offer a seamless and interactive learning experience. With its responsive design, the LMS Education Study WordPress Theme ensures that your site looks great on any device, whether accessed on a desktop, tablet, or smartphone. It offers a range of customization options, allowing you to tailor the design to match your institution’s branding. The theme includes features like faculty profiles, course catalogs, and event management, making it easy to showcase academic programs, workshops, and certification programs. WooCommerce integration enables you to manage course enrollments and sell educational materials directly from your site. The theme also supports multimedia content, quizzes, exams, and online assessments, enhancing student engagement and learning outcomes. SEO optimization helps boost your site’s visibility, ensuring that potential students can easily find your courses. Its user-friendly interface and advanced features make it a top choice for any educational institution aiming to deliver a high-quality digital learning experience. 8 Version: 0.2. 58 Version: 0.2.6 9 9 Requires at least: 5.0 10 10 Tested up to: 6.8 … … 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html 14 14 Text Domain: lms-education-study 15 Tags: wide-blocks, block-styles, custom-logo, one-column, two-columns, grid-layout, sticky-post, custom-background, custom-colors, footer-widgets, custom-header, custom-menu, featured-images, flexible-header, threaded-comments, theme-options, left-sidebar, right-sidebar, full-width-template, editor-style, portfolio, education, blog, post-formats, translation-ready15 Tags: three-columns, four-columns, translation-ready, wide-blocks, block-styles, custom-logo, one-column, two-columns, grid-layout, sticky-post, custom-background, custom-colors, footer-widgets, custom-header, custom-menu, featured-images, flexible-header, threaded-comments, theme-options, left-sidebar, right-sidebar, full-width-template, editor-style, portfolio, education, blog, post-formats, translation-ready 16 16 17 17 LMS Education Study WordPress Theme has been created by TheMagnifico(themagnifico.net), 2024. -
lms-education-study/0.2.6/template-parts/content-audio.php
r261755 r298664 22 22 ?> 23 23 24 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 25 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 26 <?php 27 if ( ! is_single() ) { 28 // If not a single post, highlight the audio file. 29 if ( ! empty( $audio ) ) { 30 foreach ( $audio as $audio_html ) { 31 echo '<div class="entry-audio">'; 32 echo $audio_html; 33 echo '</div><!-- .entry-audio -->'; 34 } 35 }; 36 }; 37 ?> 38 <div class="serv-cont"> 39 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 40 <div class="meta-info-box my-2"> 41 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 42 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 43 </div> 44 <?php } ?> 45 <div class="post-summery"> 46 <?php if ($lms_education_study_post_page_title == 1 ) {?> 47 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 48 <?php }?> 49 <?php if ($lms_education_study_post_page_content == 1 ) {?> 50 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 51 <?php }?> 52 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 53 </div> 24 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 25 <?php 26 if ( ! is_single() ) { 27 // If not a single post, highlight the audio file. 28 if ( ! empty( $audio ) ) { 29 foreach ( $audio as $audio_html ) { 30 echo '<div class="entry-audio">'; 31 echo $audio_html; 32 echo '</div><!-- .entry-audio -->'; 33 } 34 }; 35 }; 36 ?> 37 <div class="serv-cont"> 38 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 39 <div class="meta-info-box my-2"> 40 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 41 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 54 42 </div> 55 </article> 43 <?php } ?> 44 <div class="post-summery"> 45 <?php if ($lms_education_study_post_page_title == 1 ) {?> 46 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 47 <?php }?> 48 <?php if ($lms_education_study_post_page_content == 1 ) {?> 49 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 50 <?php }?> 51 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 52 </div> 56 53 </div> 54 </article> -
lms-education-study/0.2.6/template-parts/content-gallery.php
r261755 r298664 11 11 $lms_education_study_post_page_content = get_theme_mod( 'lms_education_study_post_page_content', 1 ); 12 12 ?> 13 14 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 15 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 16 <?php 17 if ( ! is_single() ) { 18 // If not a single post, highlight the gallery. 19 if ( get_post_gallery() ) { 20 echo '<div class="entry-gallery">'; 21 echo ( get_post_gallery() ); 22 echo '</div>'; 23 }; 24 }; 25 ?> 26 <div class="serv-cont"> 27 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 28 <div class="meta-info-box my-2"> 29 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 30 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 31 </div> 32 <?php }?> 33 <div class="post-summery"> 34 <?php if ($lms_education_study_post_page_title == 1 ) {?> 35 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 36 <?php }?> 37 <?php if ($lms_education_study_post_page_content == 1 ) {?> 38 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 39 <?php }?> 40 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 41 </div> 13 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 14 <?php 15 if ( ! is_single() ) { 16 // If not a single post, highlight the gallery. 17 if ( get_post_gallery() ) { 18 echo '<div class="entry-gallery">'; 19 echo ( get_post_gallery() ); 20 echo '</div>'; 21 }; 22 }; 23 ?> 24 <div class="serv-cont"> 25 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 26 <div class="meta-info-box my-2"> 27 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 28 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 42 29 </div> 43 </article> 30 <?php }?> 31 <div class="post-summery"> 32 <?php if ($lms_education_study_post_page_title == 1 ) {?> 33 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 34 <?php }?> 35 <?php if ($lms_education_study_post_page_content == 1 ) {?> 36 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 37 <?php }?> 38 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 39 </div> 44 40 </div> 41 </article> -
lms-education-study/0.2.6/template-parts/content-image.php
r261755 r298664 13 13 ?> 14 14 15 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 16 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 17 <?php if ($lms_education_study_post_page_thumb == 1 ) {?> 18 <?php if ( has_post_thumbnail() ) { ?> 19 <?php lms_education_study_post_thumbnail(); ?> 20 <?php }?> 15 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 16 <?php if ($lms_education_study_post_page_thumb == 1 ) {?> 17 <?php if ( has_post_thumbnail() ) { ?> 18 <?php lms_education_study_post_thumbnail(); ?> 21 19 <?php }?> 22 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 23 <div class="meta-info-box my-2"> 24 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 25 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 26 </div> 20 <?php }?> 21 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 22 <div class="meta-info-box my-2"> 23 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 24 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 25 </div> 26 <?php }?> 27 <div class="post-summery"> 28 <?php if ($lms_education_study_post_page_title == 1 ) {?> 29 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 27 30 <?php }?> 28 <div class="post-summery"> 29 <?php if ($lms_education_study_post_page_title == 1 ) {?> 30 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 31 <?php }?> 32 <?php if ($lms_education_study_post_page_content == 1 ) {?> 33 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 34 <?php }?> 35 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 36 </div> 37 </article> 38 </div> 31 <?php if ($lms_education_study_post_page_content == 1 ) {?> 32 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 33 <?php }?> 34 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 35 </div> 36 </article> -
lms-education-study/0.2.6/template-parts/content-search.php
r261755 r298664 9 9 ?> 10 10 11 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 12 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 13 <?php if ( has_post_thumbnail() ) { ?><?php lms_education_study_post_thumbnail(); ?><?php }?> 14 <div class="meta-info-box my-2"> 15 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 16 <span class="ms-2"></i><?php echo esc_html(get_the_date()); ?></span> 17 </div> 18 <div class="post-summary m-0"> 19 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 20 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 21 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 22 </div> 23 </article> 24 </div> 11 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 12 <?php if ( has_post_thumbnail() ) { ?><?php lms_education_study_post_thumbnail(); ?><?php }?> 13 <div class="meta-info-box my-2"> 14 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 15 <span class="ms-2"></i><?php echo esc_html(get_the_date()); ?></span> 16 </div> 17 <div class="post-summary m-0"> 18 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 19 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 20 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 21 </div> 22 </article> -
lms-education-study/0.2.6/template-parts/content-video.php
r261755 r298664 21 21 } 22 22 ?> 23 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 24 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 25 <?php 26 if ( ! is_single() ) { 27 // If not a single post, highlight the video file. 28 if ( ! empty( $video ) ) { 29 foreach ( $video as $video_html ) { 30 echo '<div class="entry-video">'; 31 echo $video_html; 32 echo '</div>'; 33 } 34 }; 23 24 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 25 <?php 26 if ( ! is_single() ) { 27 // If not a single post, highlight the video file. 28 if ( ! empty( $video ) ) { 29 foreach ( $video as $video_html ) { 30 echo '<div class="entry-video">'; 31 echo $video_html; 32 echo '</div>'; 33 } 35 34 }; 36 ?> 37 <div class="serv-cont"> 38 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 39 <div class="meta-info-box my-2"> 40 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 41 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 42 </div> 35 }; 36 ?> 37 <div class="serv-cont"> 38 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 39 <div class="meta-info-box my-2"> 40 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 41 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 42 </div> 43 <?php }?> 44 <div class="post-summery"> 45 <?php if ($lms_education_study_post_page_title == 1 ) {?> 46 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 43 47 <?php }?> 44 <div class="post-summery"> 45 <?php if ($lms_education_study_post_page_title == 1 ) {?> 46 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 47 <?php }?> 48 <?php if ($lms_education_study_post_page_content == 1 ) {?> 49 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 50 <?php }?> 51 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 52 </div> 48 <?php if ($lms_education_study_post_page_content == 1 ) {?> 49 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 50 <?php }?> 51 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 53 52 </div> 54 </ article>55 </ div>53 </div> 54 </article> -
lms-education-study/0.2.6/template-parts/content.php
r261755 r298664 13 13 ?> 14 14 15 <div class="<?php if(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Two'){?>col-lg-6 col-md-6<?php } elseif(get_theme_mod('lms_education_study_blog_post_columns','Two') == 'Three'){?>col-lg-4 col-md-6<?php }?>"> 16 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 17 <?php if ($lms_education_study_post_page_thumb == 1 ) {?> 18 <?php if(has_post_thumbnail()){ 19 the_post_thumbnail(); 20 } else{?> 21 <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/slider.png" alt="" /> 22 <?php } ?> 15 <article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>> 16 <?php if ($lms_education_study_post_page_thumb == 1 ) {?> 17 <?php if(has_post_thumbnail()){ 18 the_post_thumbnail(); 19 } else{?> 20 <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/slider.png" alt="" /> 21 <?php } ?> 22 <?php }?> 23 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 24 <div class="meta-info-box my-2"> 25 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 26 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 27 </div> 28 <?php }?> 29 <div class="post-summery"> 30 <?php if ($lms_education_study_post_page_title == 1 ) {?> 31 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 23 32 <?php }?> 24 <?php if ($lms_education_study_post_page_meta == 1 ) {?> 25 <div class="meta-info-box my-2"> 26 <span class="entry-author"><?php esc_html_e('BY','lms-education-study'); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span> 27 <span class="ms-2"><?php echo esc_html(get_the_date()); ?></span> 28 </div> 33 <?php if ($lms_education_study_post_page_content == 1 ) {?> 34 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 29 35 <?php }?> 30 <div class="post-summery"> 31 <?php if ($lms_education_study_post_page_title == 1 ) {?> 32 <?php the_title('<h3 class="entry-title pb-3"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>');?> 33 <?php }?> 34 <?php if ($lms_education_study_post_page_content == 1 ) {?> 35 <p><?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('lms_education_study_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('lms_education_study_post_page_excerpt_suffix','[...]')); ?></p> 36 <?php }?> 37 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 38 </div> 39 </article> 40 </div> 36 <a href="<?php the_permalink(); ?>" class="btn-text"><?php esc_html_e('Read More','lms-education-study'); ?></a> 37 </div> 38 </article>
Note: See TracChangeset
for help on using the changeset viewer.