Plugin Directory

Changeset 3476248


Ignore:
Timestamp:
03/06/2026 10:12:42 AM (3 weeks ago)
Author:
awordpresslife
Message:

new theme added blog over

Location:
awp-companion
Files:
488 added
2 edited

Legend:

Unmodified
Added
Removed
  • awp-companion/trunk/awp-companion.php

    r3427260 r3476248  
    11<?php
    2 if ( ! defined( 'ABSPATH' ) ) {
     2if (!defined('ABSPATH')) {
    33    exit; // Exit if accessed directly.
    44}
    55
    66/**
    7 * Plugin Name:          A WP Life Themes Companion
    8 * Plugin URI:           https://wordpress.org/plugins/awp-companion
    9 * Description:          A WP Life Themes Companion plugin provides awordpresslife themes extra settings for front page.
    10 * Version:              1.5.2
    11 * Author:               A WP Life
    12 * Author URI:           https://awplife.com/
    13 * Tested up to:         6.8
    14 * Requires:             4.6 or higher
    15 * License:              GPLv3 or later
    16 * License URI:          http://www.gnu.org/licenses/gpl-3.0.html
    17 * Requires PHP:         5.6
    18 * Text Domain:          awp-companion
    19 * Domain Path:          /languages
    20 */
     7 * Plugin Name:          A WP Life Themes Companion
     8 * Plugin URI:           https://wordpress.org/plugins/awp-companion
     9 * Description:          A WP Life Themes Companion plugin provides awordpresslife themes extra settings for front page.
     10 * Version:              1.5.3
     11 * Author:               A WP Life
     12 * Author URI:           https://awplife.com/
     13 * Tested up to:         6.9
     14 * Requires:             4.6 or higher
     15 * License:              GPLv3 or later
     16 * License URI:          http://www.gnu.org/licenses/gpl-3.0.html
     17 * Requires PHP:         5.6
     18 * Text Domain:          awp-companion
     19 * Domain Path:          /languages
     20 */
    2121
    2222/*
     
    3535*/
    3636
    37 define( 'awp_companion_plugin_url', plugin_dir_url( __FILE__ ) );
    38 define( 'awp_companion_plugin_dir', plugin_dir_path( __FILE__ ) );
     37define('awp_companion_plugin_url', plugin_dir_url(__FILE__));
     38define('awp_companion_plugin_dir', plugin_dir_path(__FILE__));
    3939
    40 if ( ! function_exists( 'awp_companion_init' ) ) {
    41     function awp_companion_init() {
     40if (!function_exists('awp_companion_init')) {
     41    function awp_companion_init()
     42    {
    4243
    4344        $activate_theme_data = wp_get_theme(); // getting current theme data.
    44         $activate_theme      = $activate_theme_data->name;
     45        $activate_theme = $activate_theme_data->name;
    4546
    46         if ( 'AwpBusinessPress' == $activate_theme || 'Coin Market' == $activate_theme
    47         || 'Hospital Health Care' == $activate_theme || 'Home Interior' == $activate_theme
    48         || 'Business Campaign' == $activate_theme || 'Awp Marketing Agency' == $activate_theme ) {
     47        if (
     48            'AwpBusinessPress' == $activate_theme || 'Coin Market' == $activate_theme
     49            || 'Hospital Health Care' == $activate_theme || 'Home Interior' == $activate_theme
     50            || 'Business Campaign' == $activate_theme || 'Awp Marketing Agency' == $activate_theme
     51        ) {
    4952            require 'inc/awpbusinesspress/awpbusinesspress.php';
    5053        }
    51         if ( 'Formula' == $activate_theme || 'Formula Dark' == $activate_theme || 'Formula Light' == $activate_theme ||
    52         'Metaverse' == $activate_theme || 'Medical Formula' == $activate_theme || 'Education Formula' == $activate_theme ||
    53         'Nature Formula' == $activate_theme || 'Blog Formula' == $activate_theme ) {
     54        if (
     55            'Formula' == $activate_theme || 'Formula Dark' == $activate_theme || 'Formula Light' == $activate_theme ||
     56            'Metaverse' == $activate_theme || 'Medical Formula' == $activate_theme || 'Education Formula' == $activate_theme ||
     57            'Nature Formula' == $activate_theme || 'Blog Formula' == $activate_theme
     58        ) {
    5459            require 'inc/formula/formula.php';
    5560        }
    56         if ( 'Neom Blog' == $activate_theme || 'Neom City' == $activate_theme || 'Neom Blogger' == $activate_theme ||
    57         'Neom Business' == $activate_theme || 'Neom Dark' == $activate_theme ) {
     61        if (
     62            'Neom Blog' == $activate_theme || 'Neom City' == $activate_theme || 'Neom Blogger' == $activate_theme ||
     63            'Neom Business' == $activate_theme || 'Neom Dark' == $activate_theme
     64        ) {
    5865            require 'inc/neom/neom.php';
    5966        }
    6067
    6168    }
    62     add_action( 'init', 'awp_companion_init' );
     69    add_action('init', 'awp_companion_init');
     70}
     71
     72// Blog Over: load early on after_setup_theme (priority 5)
     73// so demo filters are registered before OCDI reads them at priority 10.
     74if (!function_exists('awp_companion_blog_over_init')) {
     75    function awp_companion_blog_over_init()
     76    {
     77        $activate_theme_data = wp_get_theme();
     78        $activate_theme = $activate_theme_data->name;
     79
     80        if ('Blog Over' == $activate_theme) {
     81            require 'inc/blog-over/blog-over.php';
     82        }
     83    }
     84    add_action('after_setup_theme', 'awp_companion_blog_over_init', 5);
    6385}
    6486
    6587// on plugin activation.
    66 function awp_companion_activate() {
     88function awp_companion_activate()
     89{
    6790    $activate_theme_data = wp_get_theme(); // getting current theme data.
    68     $activate_theme      = $activate_theme_data->name;
    69     if ( 'Nature Formula' == $activate_theme ) {
     91    $activate_theme = $activate_theme_data->name;
     92    if ('Nature Formula' == $activate_theme) {
    7093        // let it remain empty in order to show nothing when nature formula activated.
    7194    } else {
    72         require_once plugin_dir_path( __FILE__ ) . 'inc/awp-companion-activator.php';
     95        require_once plugin_dir_path(__FILE__) . 'inc/awp-companion-activator.php';
    7396        awp_companion_plugin_activator::activate();
    7497    }
    7598}
    76 register_activation_hook( __FILE__, 'awp_companion_activate' );
     99register_activation_hook(__FILE__, 'awp_companion_activate');
  • awp-companion/trunk/readme.txt

    r3427260 r3476248  
    44Tags: frontpage, companion, homepage, WordPress frontpage, template
    55Requires at least: 4.6
    6 Tested up to: 6.8
    7 Stable tag: 1.5.2
     6Tested up to: 6.9
     7Stable tag: 1.5.3
    88Requires PHP: 5.6
    99License: GPLv3 or later
Note: See TracChangeset for help on using the changeset viewer.