Plugin Directory

Changeset 2628043


Ignore:
Timestamp:
11/11/2021 11:13:39 AM (4 years ago)
Author:
frenify
Message:

updated

Location:
categorify/trunk
Files:
28 added
5 edited

Legend:

Unmodified
Added
Removed
  • categorify/trunk/assets/css/core.css

    r2612362 r2628043  
    11821182    display: none !important;
    11831183}
    1184 .media-modal-content .media-frame select.attachment-filters{
     1184/*.media-modal-content .media-frame select.attachment-filters{
    11851185    width: calc(30% - 12px);
    1186 }
     1186}*/
    11871187
    11881188#categorify-dragger{
  • categorify/trunk/categorify.php

    r2615420 r2628043  
    55 * Plugin URI:  https://frenify.com/project/categorify/
    66 * Description: Organize your WordPress media files in categories via drag and drop.
    7  * Version:     1.0.3
     7 * Version:     1.0.4
    88 * Author:      Frenify
    99 * Author URI:  https://frenify.com/
     
    6464   
    6565    // ... Plugin's main file logic ...
    66     define( 'CATEGORIFY_VERSION', '1.0.3' );
    6766    define( 'CATEGORIFY__FILE__', __FILE__ );
    6867    define( 'CATEGORIFY_TAXONOMY', 'categorify_category' );
     
    7372    define( 'CATEGORIFY_PLUGIN_BASE', plugin_basename( CATEGORIFY__FILE__ ) );
    7473    define( 'CATEGORIFY_PLUGIN_NAME', 'Categorify' );
     74    define( 'CATEGORIFY_PLUGIN_URL', plugin_dir_url( CATEGORIFY__FILE__ ) );
     75    define( 'CATEGORIFY_PLUGIN_VERSION', '1.0.4' );
    7576    function categorify_plugins_loaded()
    7677    {
  • categorify/trunk/inc/settings/settings.php

    r2614999 r2628043  
    77    public function __construct()
    88    {
    9         add_action('admin_menu', array($this, 'admin_menu'), 10000);
     9        add_action('admin_menu', array($this, 'admin_menu'), 5);
    1010    }
    1111   
     
    1313    {
    1414         // Add menu item for settings page
    15         $page_title     = esc_html__('Categorify', 'folders');
    16         $menu_title     = esc_html__('Categorify', 'folders');
     15        $page_title     = esc_html__('Categorify', CATEGORIFY_TEXT_DOMAIN);
     16        $menu_title     = esc_html__('Categorify', CATEGORIFY_TEXT_DOMAIN);
    1717        $capability     = 'manage_options';
    1818        $menu_slug      = 'categorify';
    19         $callback       = [$this, "categorify_welcome_page"];
    20         $icon_url       = 'dashicons-category';
     19        $callback       = [$this, "welcome_page"];
     20        $icon_url       = 'dashicons-info';
    2121        $position       = 90;
    22         add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $position);
     22        $menu           = add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $position);
     23       
     24        add_action( 'admin_print_styles-' . $menu, array($this,'admin_css') );
     25        add_action( 'admin_print_scripts-' . $menu, array($this,'admin_js') );
    2326    }
    2427   
    25     public static function categorify_welcome_page(){
    26         //include_once dirname(dirname(__FILE__)) . "/inc/admin/welcome.php";
    27         include_once ( CATEGORIFY_PATH . 'inc/settings/welcome.php');
     28    public static function welcome_page(){
     29        include_once ( plugin_dir_path( __FILE__ ) . '/welcome.php');
     30    }
     31    public function admin_css() {
     32        wp_enqueue_style('magnific-popup', CATEGORIFY_PLUGIN_URL . 'inc/settings/assets/css/magnific-popup.css', array(), CATEGORIFY_PLUGIN_VERSION, 'all');
     33        wp_enqueue_style('frenify-welcome-css', CATEGORIFY_PLUGIN_URL . 'inc/settings/assets/css/style.css', array(), CATEGORIFY_PLUGIN_VERSION, 'all');
     34    }
     35    public function admin_js() {
     36        wp_enqueue_script('magnific-popup', CATEGORIFY_PLUGIN_URL . 'inc/settings/assets/js/magnific-popup.js', array('jquery'), CATEGORIFY_PLUGIN_VERSION, FALSE);
     37        wp_enqueue_script('frenify-welcome-js', CATEGORIFY_PLUGIN_URL . 'inc/settings/assets/js/init.js', array('jquery'), CATEGORIFY_PLUGIN_VERSION, FALSE);
    2838    }
    2939   
  • categorify/trunk/inc/settings/welcome.php

    r2615420 r2628043  
    1 <?php if (!defined('ABSPATH')) { exit; } ?>
    2 
    3 <div class="categorify_welcome_window">
    4     <h1>Thank you for using <strong>Categorify</strong>!</h1>
    5     <p>Categorify has been made by <a href="https://frenify.com" target="_blank">Frenify.com</a> Team.  Frenify is one of the elite authors at  <a href="https://themeforest.net/user/frenify/portfolio" target="_blank">themeforest.net</a></p> <br />
    6    
    7     <ol>
    8         <li>Premium Version: <a href="https://frenify.com/project/categorify/" target="_blank">Categorify Premium</a></li>
    9         <li>Free Version: <a href="https://wordpress.org/plugins/categorify/" target="_blank">Categorify Free</a></li>
    10     </ol>
     1<?php
     2
     3if (!defined('ABSPATH')) { exit; }
     4
     5// Variables
     6$active = 'categorify';
     7$max    = 6;
     8$URL    = CATEGORIFY_PLUGIN_URL;
     9$ver    = CATEGORIFY_PLUGIN_VERSION;
     10$site   = 'https://frenify.com/';
     11$ttext  = CATEGORIFY_TEXT_DOMAIN;
     12$previewText = esc_html__('Preview', $ttext);
     13$smile  = $URL.'inc/settings/assets/img/smile.svg';
     14$logo   = $URL.'inc/settings/assets/img/frenify-logo.svg';
     15$about  = '<p><b>Frenify</b> was founded in 2017. The company began working with the first customers, giving them the opportunity to purchase high-quality HTML templates.</p><p>The company’s products began to grow in terms of complexity and aesthetics. Frenify currently has a wide range of HTML templates, WordPress themes, WordPress plugins, Photoshop projects; paid and absolutely free products.</p><p>Design projects are unique and aesthetically pleasing based on customer requirements. Visit our website to get acquainted with our products. Thank you so much for being with us.</p>';
     16
     17// Functions
     18
     19if( !function_exists('frenify__shuffle_assoc') ){
     20    function frenify__shuffle_assoc($list) {
     21        if (!is_array($list)){ return $list; }
     22        $keys = array_keys($list);
     23        shuffle($keys);
     24        $random = array();
     25        foreach ($keys as $key) {
     26            $random[$key] = $list[$key];
     27        }
     28        return $random;
     29    }
     30}
     31
     32// List
     33$list   = [
     34    'vivaco' => [
     35        'title' => 'Vivaco',
     36        'name'  => 'Multipurpose Creative WordPress Theme',
     37        'url'   => 'https://themeforest.net/item/vivaco-multipurpose-creative-wordpress-theme/31688792',
     38        'image' => $URL.'inc/settings/assets/img//item-vivaco.jpg'
     39    ],
     40    'becipe' => [
     41        'title' => 'Becipe',
     42        'name'  => 'Recipe Blogging WordPress Theme',
     43        'url'   => 'https://themeforest.net/item/becipe-recipe-blogging-wordpress-theme/29029917',
     44        'image' => $URL.'inc/settings/assets/img/item-becipe.jpg'
     45    ],
     46    'artemiz' => [
     47        'title' => 'Artemiz',
     48        'name'  => 'Blog & Podcast WordPress Theme',
     49        'url'   => 'https://themeforest.net/item/artemiz-blog-podcast-wordpress-theme/28455063',
     50        'image' => $URL.'inc/settings/assets/img/item-artemiz.jpg'
     51    ],
     52    'arlo' => [
     53        'title' => 'Arlo',
     54        'name'  => 'Portfolio WordPress Theme',
     55        'url'   => 'https://themeforest.net/item/arlo-portfolio-wordpress-theme/25172061',
     56        'image' => $URL.'inc/settings/assets/img/item-arlo.jpg'
     57    ],
     58    'mobixo' => [
     59        'title' => 'Mobixo',
     60        'name'  => 'Industry WordPress Theme',
     61        'url'   => 'https://themeforest.net/item/mobixo-industry-wordpress-theme/24942315',
     62        'image' => $URL.'inc/settings/assets/img/item-mobixo.jpg'
     63    ],
     64    'cron' => [
     65        'title' => 'Cron',
     66        'name'  => 'Industry WordPress Theme',
     67        'url'   => 'https://themeforest.net/item/cron-industry-wordpress-theme/24533803',
     68        'image' => $URL.'inc/settings/assets/img/item-cron.jpg'
     69    ],
     70    'industify' => [
     71        'title' => 'Industify',
     72        'name'  => 'Industry WordPress Theme',
     73        'url'   => 'https://themeforest.net/item/industify-industry-wordpress-theme/22729865',
     74        'image' => $URL.'inc/settings/assets/img/item-industify.jpg'
     75    ],
     76    'glax' => [
     77        'title' => 'Glax',
     78        'name'  => 'Industry WordPress Theme',
     79        'url'   => 'https://themeforest.net/item/glax-industry-wordpress-theme/22459403',
     80        'image' => $URL.'inc/settings/assets/img/item-glax.jpg'
     81    ],
     82    'constructify' => [
     83        'title' => 'Constructify',
     84        'name'  => 'Construction WordPress Theme',
     85        'url'   => 'https://themeforest.net/item/constructify-construction-building-wordpress-theme/22328771',
     86        'image' => $URL.'inc/settings/assets/img/item-constructify.jpg'
     87    ],
     88    'buildify' => [
     89        'title' => 'Buildify',
     90        'name'  => 'Construction WordPress Theme',
     91        'url'   => 'https://themeforest.net/item/buildify-construction-building-wordpress-theme/21742481',
     92        'image' => $URL.'inc/settings/assets/img/item-buildify.jpg'
     93    ],
     94    'fotofly' => [
     95        'title' => 'Fotofly',
     96        'name'  => 'Photography WordPress Theme',
     97        'url'   => 'https://themeforest.net/item/fotofly-photography-wordpress-theme/21190239',
     98        'image' => $URL.'inc/settings/assets/img/item-fotofly.jpg'
     99    ],
     100    'photobuddy' => [
     101        'title' => 'Photobuddy',
     102        'name'  => 'Photography WordPress Theme',
     103        'url'   => 'https://themeforest.net/item/photobuddy-photography-wordpress-theme/20432690',
     104        'image' => $URL.'inc/settings/assets/img/item-photobuddy.jpg'
     105    ],
     106    'bookmify' => [
     107        'title' => 'Bookmify',
     108        'name'  => 'Appointment Booking WordPress Plugin',
     109        'url'   => 'https://codecanyon.net/item/bookmify-appointment-booking-wordpress-plugin/23837899',
     110        'image' => $URL.'inc/settings/assets/img/item-bookmify.jpg'
     111    ],
     112    'modulify' => [
     113        'title' => 'Modulify',
     114        'name'  => 'Modules Addon for Elementor Page Builder',
     115        'url'   => 'https://codecanyon.net/item/modulify-modules-addon-for-elementor-page-builder/22595533',
     116        'image' => $URL.'inc/settings/assets/img/item-modulify.jpg'
     117    ],
     118    'magazinify' => [
     119        'title' => 'Magazinify',
     120        'name'  => 'News Addon for Elementor Page Builder',
     121        'url'   => 'https://codecanyon.net/item/magazinify-news-addon-for-elementor-page-builder/22194326',
     122        'image' => $URL.'inc/settings/assets/img/item-magazinify.jpg'
     123    ],
     124    'projectify' => [
     125        'title' => 'Projectify',
     126        'name'  => 'Project Addon for Elementor Page Builder',
     127        'url'   => 'https://codecanyon.net/item/projectify-project-addon-for-elementor-page-builder/21537292',
     128        'image' => $URL.'inc/settings/assets/img/item-projectify.jpg'
     129    ],
     130    'categorify' => [
     131        'title' => 'Categorify',
     132        'name'  => 'WordPress Media Library Category & File Manager',
     133        'url'   => 'https://frenify.com/project/categorify/',
     134        'image' => $URL.'inc/settings/assets/img/item-categorify.jpg'
     135    ],
     136];
     137?>
     138
     139<div class="frenify__welcome">
     140
     141    <div class="frenify__welcome_header">
     142        <div class="fn__container">
     143            <div class="header_v"><span><?php echo esc_html($ver);?></span></div>
     144            <div class="info_box">
     145                <div class="info_left">
     146                    <h5 class="fn__subtitle">Thank you for choosing</h5>
     147                    <h3 class="fn__title"><?php echo esc_html($active);?></h3>
     148                    <a href="<?php echo esc_url($list[$active]['url']); ?>" class="fn__more" target="_blank">More Info</a>
     149                </div>
     150                <div class="info_right">
     151                    <div class="smile_icon">
     152                        <img class="fn__svg" src="<?php echo esc_url($smile);?>" alt="">
     153                    </div>
     154                    <div class="img_box">
     155                        <a href="<?php echo esc_url($site);?>" target="_blank"></a>
     156                        <img class="fn__svg" src="<?php echo esc_url($logo);?>" alt="">
     157                        <div class="fn__tooltip">
     158                            <?php echo wp_kses($about,'post');?>
     159                        </div>
     160                    </div>
     161                    <div class="fn__desc">
     162                        <p>This item has been developed by <a href="<?php echo esc_url($site);?>" target="_blank">Frenify</a></p>
     163                    </div>
     164                </div>
     165            </div>
     166            <h5 class="bottom_title">Our Other Works</h5>
     167        </div>
     168    </div>
     169   
     170    <?php if($active != 'categorify'){ ?>
     171    <div class="frenify__welcome__categorify">
     172        <div class="fn__container">
     173            <div class="title_holder">
     174                <h3 class="fn__title">Categorify</h3>
     175                <p class="fn__desc">Categorify is a WordPress plugin that enables users to quickly organize all of their Media files into categories.</p>
     176                <a href="<?php echo esc_attr($list['categorify']['url']);?>" class="fn__more" target="_blank">More Info</a>
     177            </div>
     178            <div class="video_holder">
     179                <img src="<?php echo esc_attr($list['categorify']['image']);?>" alt="">
     180                <a href="https://www.youtube.com/watch?v=pmNkbjC3xkU" class="popup-youtube"></a>
     181            </div>
     182        </div>
     183    </div>
     184    <?php } ?>
     185   
     186    <div class="frenify__welcome_list">
     187        <ul>
     188            <?php
     189                // remove active element
     190                unset($list[$active]);
     191                // remove categorify too
     192                unset($list['categorify']);
     193                // shuffle array
     194                $list       = frenify__shuffle_assoc($list);
     195                // leave only $max elements of the array
     196                $list       = array_slice($list, 0, $max);
     197               
     198                $html       = '';
     199                foreach($list as $key => $item){
     200                    $image  = $item['image'];
     201                    $url    = $item['url'];
     202                    $title  = $item['title'];
     203                    $name   = $item['name'];
     204                   
     205                    $html  .= '<li>';
     206                        $html  .= '<div class="item">';
     207                   
     208                            $html  .= '<div class="img_holder">';
     209                                $html  .= '<a href="'.$url.'" target="_blank">';
     210                                    $html  .= '<img class="fn__img" src="'.$image.'" alt="" />';
     211                                    $html  .= '<div class="overlay">';
     212                                        $html  .= '<img class="fn__svg" src="'.$URL.'inc/settings/assets/img/arrow.svg" alt="">';
     213                                        $html  .= '<span>'.$previewText.'</span>';
     214                                    $html  .= '</div>';
     215                                $html  .= '</a>';
     216                            $html  .= '</div>';
     217                   
     218                            $html  .= '<div class="title_holder">';
     219                                $html  .= '<h3 class="fn__title"><a href="'.$url.'" target="_blank">'.$title.'</a></h3>';
     220                                $html  .= '<p class="fn__desc">'.$name.'</p>';
     221                            $html  .= '</div>';
     222                   
     223                        $html  .= '</div>';
     224                    $html  .= '</li>';
     225                }
     226                echo wp_kses($html,'post');
     227            ?>
     228        </ul>
     229        <a href="<?php echo esc_url($site); ?>" class="fn__more" target="_blank">See All Items</a>
     230    </div>
     231   
    11232   
    12233</div>
    13 <style>
    14     .categorify_welcome_window {
    15         width: 600px;
    16         padding: 70px 40px;
    17         box-shadow: 0px 20px 25px rgb(0 0 0 / 10%), 0px 10px 10px rgb(0 0 0 / 4%);
    18         margin: 100px auto 0;
    19         background: #ffffff;
    20     }
    21     .categorify_welcome_window h1{
    22         font-weight: 400;
    23         margin-bottom: 30px;
    24     }
    25    
    26 </style>
  • categorify/trunk/readme.txt

    r2615420 r2628043  
    77Requires at least: 4.0.0
    88Tested up to: 5.8
    9 Stable tag: 1.0.3
     9Stable tag: 1.0.4
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5959== Changelog ==
    6060
     61= Version 1.0.4 - November 11, 2021 =
     62- Updated: Categorify Admin page is changed
     63
    6164= Version 1.0.0 - October 08, 2021 =
    6265- Plugin Released.
Note: See TracChangeset for help on using the changeset viewer.