Changeset 3301501
- Timestamp:
- 05/27/2025 12:45:35 PM (10 months ago)
- Location:
- display-medium-stories/trunk
- Files:
-
- 4 edited
-
includes/enqueue.php (modified) (3 diffs)
-
includes/settings.php (modified) (10 diffs)
-
medium-post.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
display-medium-stories/trunk/includes/enqueue.php
r2832393 r3301501 7 7 function mp_enqueue_styles() 8 8 { 9 wp_enqueue_style('style', MP_PLUGIN_DIR_URL . "assets/css/style.css"); 10 wp_enqueue_script('jquery', MP_PLUGIN_DIR_URL . "assets/js/jquery.min.js"); 11 wp_enqueue_script('client-script', MP_PLUGIN_DIR_URL . 'assets/js/client-script.js', array(), '1.0.0', true); 9 $file_css = MP_PLUGIN_DIR_PATH . 'assets/css/style.css'; 10 $file_js = MP_PLUGIN_DIR_PATH . 'assets/js/client-script.js'; 11 if (file_exists($file_css)) { 12 wp_enqueue_style('mp-style', MP_PLUGIN_DIR_URL . 'assets/css/style.css', array(), filemtime($file_css)); 13 } 14 15 wp_enqueue_script('jquery'); 16 17 if (file_exists($file_js)) { 18 wp_enqueue_script('mp-client-script', MP_PLUGIN_DIR_URL . 'assets/js/client-script.js', array('jquery'), filemtime($file_js), true); 19 } 12 20 } 13 21 add_action('wp_enqueue_scripts', 'mp_enqueue_styles'); … … 35 43 { 36 44 global $md_slider_design; 37 if ($md_slider_design == 'Simple Design') {45 if ($md_slider_design === 'Simple Design') { 38 46 wp_enqueue_style('slider-css', MP_PLUGIN_DIR_URL . "assets/css/slider.css"); 39 47 } 40 if ($md_slider_design == 'Vertical Slider') {48 if ($md_slider_design === 'Vertical Slider') { 41 49 wp_enqueue_style('vertical-slider', MP_PLUGIN_DIR_URL . "assets/css/vertical-slider.css"); 42 50 } 43 if ($md_slider_design == 'Partial View Design') {51 if ($md_slider_design === 'Partial View Design') { 44 52 wp_enqueue_style('md-pr-slider-css', MP_PLUGIN_DIR_URL . "assets/css/md-pr-slider.css"); 45 53 } … … 54 62 { 55 63 global $mpost_post_design; 56 if ($mpost_post_design == 'Full Width Layout') {64 if ($mpost_post_design === 'Full Width Layout') { 57 65 wp_enqueue_style('Bootstrap-css', MP_PLUGIN_DIR_URL . "assets/bootstrap/css/bootstrap.min.css"); 58 66 wp_enqueue_style('md-simple', MP_PLUGIN_DIR_URL . "assets/css/md-simple.css"); 59 67 wp_enqueue_script('Bootstrap-js', MP_PLUGIN_DIR_URL . "assets/bootstrap/js/bootstrap.min.js", array('jquery')); 60 68 wp_enqueue_script('popper-js', MP_PLUGIN_DIR_URL . "assets/bootstrap/js/popper.min.js", array('jquery')); 61 } else if ($mpost_post_design == 'Grid Layout') {69 } else if ($mpost_post_design === 'Grid Layout') { 62 70 wp_enqueue_style('Bootstrap-css', MP_PLUGIN_DIR_URL . "assets/bootstrap/css/bootstrap.min.css"); 63 71 wp_enqueue_style('md-grid', MP_PLUGIN_DIR_URL . "assets/css/md-grid.css"); 64 72 wp_enqueue_script('Bootstrap-js', MP_PLUGIN_DIR_URL . "assets/bootstrap/js/bootstrap.min.js", array('jquery')); 65 73 wp_enqueue_script('popper-js', MP_PLUGIN_DIR_URL . "assets/bootstrap/js/popper.min.js", array('jquery')); 66 } else if ($mpost_post_design == 'Masonry Layout') {74 } else if ($mpost_post_design === 'Masonry Layout') { 67 75 wp_enqueue_style('Bootstrap-css', MP_PLUGIN_DIR_URL . "assets/bootstrap/css/bootstrap.min.css"); 68 76 wp_enqueue_style('Masonry-style', MP_PLUGIN_DIR_URL . "assets/css/masonry.css"); -
display-medium-stories/trunk/includes/settings.php
r2871683 r3301501 264 264 <h2>Simple Design</h2> 265 265 <div class="grid_radio_Innerbox"> 266 <input type="radio" id="mpost_slider_design" name="mpost_slider_design" value="Simple Design" <?php if ($slider_opt == 'Simple Design') {266 <input type="radio" id="mpost_slider_design" name="mpost_slider_design" value="Simple Design" <?php if ($slider_opt === 'Simple Design') { 267 267 echo 'checked'; 268 268 } ?> /> … … 284 284 <h2>Vertical Slider</h2> 285 285 <div class="grid_radio_Innerbox"> 286 <input type="radio" id="mpost_slider_design_1" name="mpost_slider_design" value="Vertical Slider" <?php if ($slider_opt == 'Vertical Slider') {286 <input type="radio" id="mpost_slider_design_1" name="mpost_slider_design" value="Vertical Slider" <?php if ($slider_opt === 'Vertical Slider') { 287 287 echo 'checked'; 288 288 } ?> /> … … 304 304 <h2>Partial View Design</h2> 305 305 <div class="grid_radio_Innerbox"> 306 <input type="radio" id="mpost_slider_design_2" name="mpost_slider_design" value="Partial View Design" <?php if ($slider_opt == 'Partial View Design') {306 <input type="radio" id="mpost_slider_design_2" name="mpost_slider_design" value="Partial View Design" <?php if ($slider_opt === 'Partial View Design') { 307 307 echo 'checked'; 308 308 } ?> /> … … 417 417 <span> 418 418 <div class="input-color-container"> 419 <input id=" input-color" name="mpost_background_color" value="<?php echo esc_attr(get_option('mpost_background_color')); ?>" class="input-color" type="color">419 <input id="mpost_background_color" name="mpost_background_color" value="<?php echo esc_attr(get_option('mpost_background_color')); ?>" class="input-color" type="color"> 420 420 </div> 421 421 <label class="input-color-label" for="mpost_background_color"> … … 425 425 <span> 426 426 <div class="input-color-container"> 427 <input id=" input-color" name="mpost_title_color" value="<?php echo esc_attr(get_option('mpost_title_color')); ?>" class="input-color" type="color">427 <input id="mpost_title_color" name="mpost_title_color" value="<?php echo esc_attr(get_option('mpost_title_color')); ?>" class="input-color" type="color"> 428 428 </div> 429 429 <label class="input-color-label" for="mpost_title_color"> … … 433 433 <span> 434 434 <div class="input-color-container"> 435 <input id=" input-color" name="mpost_desc_color" value="<?php echo esc_attr(get_option('mpost_desc_color')); ?>" class="input-color" type="color">435 <input id="mpost_desc_color" name="mpost_desc_color" value="<?php echo esc_attr(get_option('mpost_desc_color')); ?>" class="input-color" type="color"> 436 436 </div> 437 437 <label class="input-color-label" for="mpost_desc_color"> … … 441 441 <span> 442 442 <div class="input-color-container"> 443 <input id=" input-color" name="mpost_btnbg_color" value="<?php echo esc_attr(get_option('mpost_btnbg_color')); ?>" class="input-color" type="color">443 <input id="mpost_btnbg_color" name="mpost_btnbg_color" value="<?php echo esc_attr(get_option('mpost_btnbg_color')); ?>" class="input-color" type="color"> 444 444 </div> 445 445 <label class="input-color-label" for="mpost_btnbg_color"> … … 449 449 <span> 450 450 <div class="input-color-container"> 451 <input id=" input-color" name="mpost_btn_color" value="<?php echo esc_attr(get_option('mpost_btn_color')); ?>" class="input-color" type="color">451 <input id="mpost_btn_color" name="mpost_btn_color" value="<?php echo esc_attr(get_option('mpost_btn_color')); ?>" class="input-color" type="color"> 452 452 </div> 453 453 <label class="input-color-label" for="mpost_btn_color"> … … 457 457 <span> 458 458 <div class="input-color-container"> 459 <input id=" input-color" name="mpost_arrows_bgcolor" value="<?php echo esc_attr(get_option('mpost_arrows_bgcolor')); ?>" class="input-color" type="color">459 <input id="mpost_arrows_bgcolor" name="mpost_arrows_bgcolor" value="<?php echo esc_attr(get_option('mpost_arrows_bgcolor')); ?>" class="input-color" type="color"> 460 460 </div> 461 461 <label class="input-color-label" for="mpost_arrows_bgcolor"> … … 465 465 <span> 466 466 <div class="input-color-container"> 467 <input id=" input-color" name="mpost_arrows_color" value="<?php echo esc_attr(get_option('mpost_arrows_color')); ?>" class="input-color" type="color">467 <input id="mpost_arrows_color" name="mpost_arrows_color" value="<?php echo esc_attr(get_option('mpost_arrows_color')); ?>" class="input-color" type="color"> 468 468 </div> 469 469 <label class="input-color-label" for="mpost_arrows_color"> -
display-medium-stories/trunk/medium-post.php
r2871683 r3301501 1 1 <?php 2 2 /** 3 * Plugin Name: Display Medium Stories 4 * Plugin URI: https://devmontdigital.io/products/medium-plugin 5 * Description: This is custom made plugin use to get medium post on wordpress website 6 * Version: 7.4.1 7 * Requires at least: 6.0 8 * Requires PHP: 7.4 9 * Author: Devmont Digital 10 * Author URI: https://devmontdigital.io 11 * License: GPL v2 or later 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Text Domain: display-medium-stories 3 * Plugin Name: Display Medium Stories 4 * Plugin URI: https://devmontdigital.io/products/medium-plugin 5 * Description: Fetch and display Medium articles directly on your WordPress website with a lightweight, performance-optimized solution. 6 * Version: 7.5.1 7 * Requires at least: 6.0 8 * Tested up to: 6.8 9 * Requires PHP: 7.4 10 * Author: Devmont Digital 11 * Author URI: https://devmontdigital.io 12 * License: GPL v2 or later 13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 14 * Text Domain: display-medium-stories 14 15 */ 16 17 15 18 namespace MediumPostWorpdress; 16 19 if(!defined('ABSPATH')){ 17 echo "You Cant access";18 20 exit; 19 21 } 20 22 21 23 #DEFINE CONSTANT 22 // define('PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));23 24 define('MP_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__)); 24 define('MP_PLUGIN_VERSION',' 1.1.1');25 define('MP_PLUGIN_VERSION','7.5.1'); 25 26 define('MP_PLUGIN_DIR_URL',plugin_dir_url(__FILE__)); 26 27 27 28 /** Side Menu **/ 28 29 include( MP_PLUGIN_DIR_PATH. 'includes/side-menu.php'); 29 30 /** Callback Functions **/31 include( MP_PLUGIN_DIR_PATH. 'includes/callback-functions.php');32 30 33 31 /** Add Settings **/ -
display-medium-stories/trunk/readme.txt
r2871683 r3301501 1 1 === Display Medium Stories - Medium Articles in a WordPress Site === 2 2 Contributors: devmontdigital 3 Tags: medium, devmont, posts, ajax posts, stories, Articles3 Tags: medium, devmont, posts, ajax posts, stories, articles, medium stories, medium articles, show medium in wordpress, ajax posts, wordpress blog 4 4 Requires at least: 6.0 5 5 Requires PHP: 7.4 6 Tested up to: 6. 17 Stable tag: 7. 4.16 Tested up to: 6.8 7 Stable tag: 7.5.1 8 8 License: GPLv2 or later 9 9 10 This plugin is a powerful, professionally developed tool to show the medium stories in WordPress websites.10 Display Medium Stories is a powerful, professionally developed tool to show Medium stories in WordPress websites. 11 11 12 12 == Description == 13 13 14 **Display Medium Stories is a powerful, professional, and lightweight tool to show medium story in WordPress websites.** 14 **Display Medium Stories** is a lightweight, fast, and easy-to-use plugin that allows you to fetch and display articles from Medium directly on your WordPress site. Ideal for bloggers, publishers, and content creators who want to showcase their Medium stories natively within WordPress. 15 16 17 == Installation == 18 19 1. Upload the plugin folder to the `/wp-content/plugins/` directory. 20 2. Activate the plugin through the ‘Plugins’ menu in WordPress. 21 3. Use the shortcode `[display-medium-article handle="@mustafafazal"]` to display stories on any post or page. 22 23 24 == Changelog == 25 26 = 7.5.1 = 27 * Tested with WordPress 6.8 28 * Minor improvements and cleanup
Note: See TracChangeset
for help on using the changeset viewer.