🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-16 10:51:02 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
ramailobhela.com
/
wp-content
/
plugins
/
ova-framework
📍 /home/therahul/ramailobhela.com/wp-content/plugins/ova-framework
🔄 Refresh
✏️
Editing: ova-framework.php
Writable
<?php /** Plugin Name: OvaTheme Framework Plugin URI: https://themeforest.net/user/ovatheme/portfolio Description: A plugin to create custom Post Type, Shortcode, Elementor Version: 1.0.0 Author: Ovatheme Author URI: https://themeforest.net/user/ovatheme License: GPL2 Text Domain: ova-framework Domain Path: /languages */ if (!function_exists('OvaFramework')) { class OvaFramework { function __construct() { if (!defined('OVA_PLUGIN_PATH')) { define( 'OVA_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); } if (!defined('OVA_PLUGIN_URI')) { define( 'OVA_PLUGIN_URI', plugin_dir_url( __FILE__ ) ); } load_plugin_textdomain( 'ova-framework', false, basename( dirname( __FILE__ ) ) .'/languages' ); /* Custom Post Type */ include OVA_PLUGIN_PATH.'inc/class-hf-builder.php'; // Metabox include OVA_PLUGIN_PATH.'inc/class-metaboxes.php'; // Shortcode include OVA_PLUGIN_PATH.'inc/class-shortcode.php'; add_action( 'admin_enqueue_scripts', array( $this, 'ova_admin_scripts' ) ); // Share Social in Single Post add_filter( 'ova_share_social', array( $this, 'nighty_content_social' ), 2, 10 ); add_filter( 'upload_mimes', array( $this, 'ova_upload_mimes' ), 1, 10); add_filter( 'widget_text', 'do_shortcode' ); } function ova_admin_scripts() { wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_script( 'script', OVA_PLUGIN_URI. 'assets/js/admin/script.js', array('jquery'), null, true ); wp_enqueue_style( 'style', OVA_PLUGIN_URI. 'assets/css/admin/style.css', array(), null ); } public function nighty_content_social( $link, $title ) { $html = '<ul class="share-social-icons clearfix"> <li> <a class="share-ico ico-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u='.$link.'" title="'.$title.'"> <i class="fab fa-facebook-f"></i> </a> </li> <li> <a class="share-ico ico-twitter" target="_blank" href="https://twitter.com/share?url='.$link.'&text='.urlencode($title).'&hashtags=simplesharebuttons" title="'.$title.'"> <i class="fab fa-twitter"></i> </a> </li> <li> <a class="share-ico ico-pinterest" target="_blank" href="https://pinterest.com/pin/create/button/?url='.$link.'" title="'.$title.'"> <i class="fab fa-pinterest-p"></i> </a> </li> </ul>'; echo apply_filters( 'ova_share_social_html', $html, $link, $title ); } public function ova_upload_mimes($mimes){ $mimes['svg'] = 'image/svg+xml'; return $mimes; } } } return new OvaFramework();
💾 Save Changes
❌ Cancel