HEX
Server: nginx/1.24.0
System: Linux ht2024073053593 5.14.0-480.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 12 20:45:27 UTC 2024 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/njmuedu.com/wp-content/themes/blogrank-pro/admin/admin-options.php
<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.

//
// Set a unique slug-like ID
//
$prefix = 'blogrank_option';

//
// Create options
//
CSF::createOptions( $prefix, array(
  'menu_title'          => 'Theme Options',
  'menu_slug'           => 'theme-options',
  'framework_title'     => 'BlogRank Pro Theme Options',
  'show_search'         => false,
  'show_bar_menu'           => false,
  // framework title
  'theme'                   => 'light',
  'show_in_customizer'      => true,
  'show_sub_menu'           => false,
  'show_all_options'        => true,
  'sticky_header'           => false,
  'enqueue_webfont'         => true,
  'show_reset_section'      => false,
  'footer_credit'           => '&nbsp;',

) );


//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'general',
  'title'  => 'General',
  'icon'   => 'fas fa-cog',
  'fields' => array(

    array(
      'id'      => 'site-layout',
      'type'    => 'radio',
      'title'   => 'Site Layout',
      'options' => array(
        'yes'   => 'Responsive Layout',
        'no'    => 'Fixed Layout',
      ),
      'default' => 'yes',
    ), 

    array(
      'id'    => 'admin-bar-on',
      'type'  => 'switcher',
      'title' => 'WordPress Admin Bar',
      'default' => true,
    ),       

    array(
      'id'    => 'header-search-on',
      'type'  => 'switcher',
      'title' => 'Header Search',
      'default' => true,
    ),
    array(
      'id'    => 'hide-sidebar-on',
      'type'  => 'switcher',
      'title' => 'Hide sidebar on mobile devices',
      'default' => false,
    ),

    array(
      'id'    => 'back-top-on',
      'type'  => 'switcher',
      'title' => 'Back To Top Button',
      'default' => true,
    ),

    array(
      'id'       => 'tag-cloud-num',
      'subtitle' => 'Max tags num',      
      'type'     => 'number',
      'title'    => 'Tag Cloud Widget',
      'default'  => '15',
    ),

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'color',
  'title'  => 'Colors',
  'icon'   => 'fas fa-paint-brush',
  'fields' => array(

    array(
      'id'      => 'primary-color',
      'type'    => 'color',
      'title'   => 'Primary Color',
      'default' => '#0099e5'
    ),

    array(
      'id'      => 'secondary-color',
      'type'    => 'color',
      'title'   => 'Secondary Color',
      'default' => '#ff9900'    
    ),    

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'typography',
  'title'  => 'Typography',
  'icon'   => 'fas fa-font',
  'fields' => array(

    array(
      'id'    => 'body-font',
      'type'  => 'typography',
      'title' => 'Body Font',
      'output'  => 'body,input,button,textarea',
      'text_align'     => false,
      'text_transform' => false,
      'letter_spacing' => false,
      'subset'         => false,
      'color'          => false,      
      'default'          => array(
        'font-family'    => 'Roboto',
        'font-weight'    => '400',
        'type'           => 'google',        
        'font-size'      => '16',
        'line-height'    => '27',
        'unit'           => 'px'
      ),
    ),

    array(
      'id'    => 'heading-font',
      'type'  => 'typography',
      'title' => 'Heading Font',
      'output'  => '.entry-title',
      'text_align'     => false,
      'text_transform' => false,
      'font_size'      => false,
      'line_height'    => false,
      'letter_spacing' => false,
      'color'          => false,
      'subset'         => false,
      'default'          => array(
        'font-family'    => 'Roboto',
        'font-weight'    => '700',
        'type'           => 'google',        
        
      ),
    ),     

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'home',
  'title'  => 'Homepage',
  'icon'   => 'fas fa-desktop',
  'fields' => array(

    array(
      'id'    => 'featured-content-on',
      'type'  => 'switcher',
      'title' => 'Featured Content',
      'subtitle' => 'Featured Slides + 2 Featured Posts',
      'label' => 'Featured content on homepage',
      'default' => true,
    ),

    array(
      'id'       => 'featured-slide-num',
      'type'     => 'number',
      'title'    => 'Featured Slides Num',
      'default'  => '3',
    ),

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'archives',
  'title'  => 'Archive Page',
  'icon'   => 'fas fa-bars',
  'fields' => array(

    array(
      'id'    => 'loop-description-on',
      'type'  => 'switcher',
      'title' => 'Category Description',
      'default' => true,
    ),

    array(
      'id'       => 'loop-featured-on',
      'type'     => 'number',
      'title'    => 'Featured Image',
      'type'  => 'switcher',
      'default' => true,
    ),

    array(
      'id'       => 'loop-featured-width',
      'type'     => 'number',
      'title'    => 'Featured Image Width',
      'default'  => '220',
      'unit'     => 'px',      
      'validate' => 'csf_validate_numeric',
    ),

    array(
      'id'    => 'loop-excerpt-on',
      'type'  => 'switcher',
      'title' => 'Post Excerpt',
      'default' => true,
    ),

    array(
      'id'    => 'loop-excerpt-length',
      'type'  => 'number',
      'title' => 'Post Excerpt Length',
      'default' => '30',
      'unit'  => 'words'
    ),

    array(
      'id'    => 'loop-more-on',
      'type'  => 'switcher',
      'title' => 'Read More Link',
      'default' => true,
    ),

    array(
      'id'    => 'loop-author-avatar-on',
      'type'  => 'switcher',
      'title' => 'Post Author Avatar',
      'default' => true,
    ),

    array(
      'id'    => 'loop-author-name-on',
      'type'  => 'switcher',
      'title' => 'Post Author Name',
      'default' => true,
    ),

    array(
      'id'    => 'loop-date-on',
      'type'  => 'switcher',
      'title' => 'Post Date',
      'default' => true,
    ),

    array(
      'id'    => 'loop-comment-on',
      'type'  => 'switcher',
      'title' => 'Post Comment',
      'default' => true,
    ),        

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'single',
  'title'  => 'Single Post',
  'icon'   => 'far fa-file-alt',
  'fields' => array(

    array(
      'id'    => 'single-breadcrumbs-on',
      'type'  => 'switcher',
      'title' => 'Single Breadcrumbs',
      'default' => true,
    ),

    array(
      'id'    => 'single-category-on',
      'type'  => 'switcher',
      'title' => 'Post Category',
      'default' => true,
    ),

    array(
      'id'    => 'single-author-on',
      'type'  => 'switcher',
      'title' => 'Post Author',
      'default' => true,
    ),

    array(
      'id'    => 'single-date-on',
      'type'  => 'switcher',
      'title' => 'Post Date',
      'default' => true,
    ),

    array(
      'id'    => 'single-comment-on',
      'type'  => 'switcher',
      'title' => 'Post Comment',
      'default' => true,
    ),   

    array(
      'id'    => 'single-share-on',
      'type'  => 'switcher',
      'title' => 'Social Share Icons',
      'default' => true,
    ),      

    array(
      'id'    => 'single-featured-on',
      'type'  => 'switcher',
      'title' => 'Featured Image Before Content',
      'default' => false,
    ),  
    
    array(
      'id'    => 'single-author-box-on',
      'type'  => 'switcher',
      'title' => 'Author Box',
      'subtitle' => '<a target="_blank" href="'. get_dashboard_url() .'profile.php">Set author profile</a>',
      'default' => true,
    ),       

    array(
      'id'    => 'single-related-on',
      'type'  => 'switcher',
      'title' => 'Related Posts',
      'subtitle' => 'Display on the bottom of post content',
      'default' => true,
    ),   

    array(
      'id'    => 'single-related-title',
      'type'  => 'text',
      'title' => 'Related Posts Heading',
      'default' => 'Related Posts',
    ),   

    array(
      'id'      => 'related-type',
      'type'    => 'radio',
      'title'   => 'Query Related Posts by',
      'options' => array(
        'category'   => 'Category',
        'tag'    => 'Tags',
      ),
      'default' => 'category',
    ), 

    array(
      'id'       => 'related-num',
      'type'     => 'number',
      'title'    => 'Number of Related Posts',
      'default'  => '10'
    ),

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'footer',
  'title'  => 'Site Bottom',
  'icon'   => 'far fa-copyright',
  'fields' => array(

    array(
      'id'       => 'footer-credit',
      'type'     => 'wp_editor',
      'title'    => 'Copyright Info',
      'media_buttons' => false,
      'default'  => '&copy; ' . date("o") . ' <a href="' . home_url() .'">' . get_bloginfo('name') . '</a> - Theme by <a href="http://wpenjoy.com" target="_blank">WPEnjoy</a>',
    ),

  )

) );

CSF::createSection( $prefix, array(
  'id'     => 'ad',
  'title'  => 'Advertisement',
  'icon'   => 'fas fa-ad',
  'fields' => array(

    array(
      'type'    => 'subheading',
      'content' => 'Post List Ad #1',
    ),

    array(
      'id'    => 'archive-ad-on-1',
      'type'  => 'switcher',
      'title' => 'Display Ad',
      'default' => true,
    ),        
    array(
      'id'       => 'archive-ad-pos-1',
      'type'     => 'number',
      'title'    => 'Ad Position',
      'subtitle' => 'Display after post',
      'default'  => '2',
    ),

    array(
      'id'       => 'archive-ad-1-code',
      'type'     => 'code_editor',
      'title'    => 'Ad Code',
      'sanitize' => false,
    ),

    array(
      'type'    => 'subheading',
      'content' => 'Post List Ad #2',
    ),

    array(
      'id'    => 'archive-ad-on-2',
      'type'  => 'switcher',
      'title' => 'Display Ad',
      'default' => true,
    ),        
    array(
      'id'       => 'archive-ad-pos-2',
      'type'     => 'number',
      'title'    => 'Ad Position',
      'subtitle' => 'Display after post',      
      'default'  => '5',
    ),

    array(
      'id'       => 'archive-ad-2-code',
      'type'     => 'code_editor',
      'title'    => 'Ad Code',
      'sanitize' => false,
    ),

    array(
      'type'    => 'subheading',
      'content' => 'Post List Ad #3',
    ),

    array(
      'id'    => 'archive-ad-on-3',
      'type'  => 'switcher',
      'title' => 'Display Ad',
      'default' => true,
    ),        
    array(
      'id'       => 'archive-ad-pos-3',
      'type'     => 'number',
      'title'    => 'Ad Position',
      'subtitle' => 'Display after post',      
      'default'  => '8',
    ),

    array(
      'id'       => 'archive-ad-3-code',
      'type'     => 'code_editor',
      'title'    => 'Ad Code',
      'sanitize' => false,
    ),
    array(
      'type'    => 'subheading',
      'content' => 'Post Top Ad',
    ),

    array(
      'id'    => 'single-top-ad-on',
      'type'  => 'switcher',
      'title' => 'Display Ad',
      'default' => true,
    ),

    array(
      'id'       => 'single-top-ad-code',
      'type'     => 'code_editor',
      'title'    => 'Ad Code',
      'sanitize' => false,
    ),    

    array(
      'type'    => 'subheading',
      'content' => 'Post Bottom Ad',
    ),

    array(
      'id'    => 'single-bottom-ad-on',
      'type'  => 'switcher',
      'title' => 'Display Ad',
      'default' => true,
    ),    

    array(
      'id'       => 'single-bottom-ad-code',
      'type'     => 'code_editor',
      'title'    => 'Ad Code',
      'sanitize' => false,
    ),

  )
) );


//
// Create a section
//

CSF::createSection( $prefix, array(
  'id'     => 'code',
  'title'  => 'Custom Code',
  'icon'   => 'fas fa-code',
  'fields' => array(

    array(
      'id'       => 'header-code',
      'type'     => 'code_editor',
      'title'    => 'Header Code',
      'subtitle' => 'Code will be added inside the &lt;head&gt; tag',
      'sanitize' => false,
    ),

    array(
      'id'       => 'footer-code',
      'type'     => 'code_editor',
      'title'    => 'Footer Code',
      'subtitle' => 'Code will be added inside the &lt;/body&gt; tag',
      'sanitize' => false,
    ),

  )
) );

//
// Create a section
//
CSF::createSection( $prefix, array(
  'id'     => 'backup',
  'title'  => 'Backup',
  'icon'   => 'fas fa-sync',
  'fields' => array(

    array(
      'type' => 'backup',
    ),

  )
) );