Пример #1
0
function mfn_offer_post_type()
{
    $offer_item_slug = mfn_opts_get('offer-slug', 'offer-item');
    $labels = array('name' => __('Offer', 'mfn-opts'), 'singular_name' => __('Offer Item', 'mfn-opts'), 'add_new' => __('Add New', 'mfn-opts'), 'add_new_item' => __('Add New Item', 'mfn-opts'), 'edit_item' => __('Edit Item', 'mfn-opts'), 'new_item' => __('New Item', 'mfn-opts'), 'view_item' => __('View Item', 'mfn-opts'), 'search_items' => __('Search Offer Items', 'mfn-opts'), 'not_found' => __('No items found', 'mfn-opts'), 'not_found_in_trash' => __('No items found in Trash', 'mfn-opts'), 'parent_item_colon' => '');
    $args = array('labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'rewrite' => array('slug' => $offer_item_slug, 'with_front' => true), 'supports' => array('editor', 'excerpt', 'page-attributes', 'thumbnail', 'title'));
    register_post_type('offer', $args);
}
Пример #2
0
function mfn_layout_post_type()
{
    $layout_item_slug = mfn_opts_get('layout-slug', 'layout-item');
    $labels = array('name' => __('Layouts', 'mfn-opts'), 'singular_name' => __('Layout', 'mfn-opts'), 'add_new' => __('Add New', 'mfn-opts'), 'add_new_item' => __('Add New Layout', 'mfn-opts'), 'edit_item' => __('Edit Layout', 'mfn-opts'), 'new_item' => __('New Layout', 'mfn-opts'), 'view_item' => __('View Layout', 'mfn-opts'), 'search_items' => __('Search Layouts', 'mfn-opts'), 'not_found' => __('No layouts found', 'mfn-opts'), 'not_found_in_trash' => __('No layouts found in Trash', 'mfn-opts'), 'parent_item_colon' => '');
    $args = array('labels' => $labels, 'menu_icon' => 'dashicons-edit', 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'rewrite' => array('slug' => $layout_item_slug, 'with_front' => true), 'supports' => array('title', 'page-attributes'));
    register_post_type('layout', $args);
}
Пример #3
0
function mfn_slide_post_type()
{
    $slide_item_slug = mfn_opts_get('slide-slug', 'slide-item');
    $labels = array('name' => __('Slides', 'mfn-opts'), 'singular_name' => __('Slide', 'mfn-opts'), 'add_new' => __('Add New', 'mfn-opts'), 'add_new_item' => __('Add New Slide', 'mfn-opts'), 'edit_item' => __('Edit Slide', 'mfn-opts'), 'new_item' => __('New Slide', 'mfn-opts'), 'view_item' => __('View Slides', 'mfn-opts'), 'search_items' => __('Search Slides', 'mfn-opts'), 'not_found' => __('No slides found', 'mfn-opts'), 'not_found_in_trash' => __('No slides found in Trash', 'mfn-opts'), 'parent_item_colon' => '');
    $args = array('labels' => $labels, 'menu_icon' => 'dashicons-slides', 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'rewrite' => array('slug' => $slide_item_slug, 'with_front' => true), 'supports' => array('title', 'page-attributes', 'thumbnail'));
    register_post_type('slide', $args);
    register_taxonomy('slide-types', 'slide', array('hierarchical' => true, 'label' => __('Slide categories', 'mfn-opts'), 'singular_label' => __('Slide category', 'mfn-opts'), 'rewrite' => true, 'query_var' => true));
}
function mfn_register_sidebars()
{
    // footer areas ----------------------------------------------------------
    for ($i = 1; $i <= 4; $i++) {
        register_sidebar(array('name' => __('Footer area', 'mfn-opts') . ' #' . $i, 'id' => 'footer-area-' . $i, 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
    }
    // custom sidebars -------------------------------------------------------
    $sidebars = mfn_opts_get('sidebars');
    if (is_array($sidebars)) {
        foreach ($sidebars as $sidebar) {
            register_sidebar(array('name' => $sidebar, 'id' => 'sidebar-' . str_replace("+", "-", urlencode(strtolower($sidebar))), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
        }
    }
}
Пример #5
0
function mfn_portfolio_meta_add()
{
    global $mfn_portfolio_meta_box;
    // Layouts ----------------------------------
    $layouts = array(0 => '-- Theme Options --');
    $args = array('post_type' => 'layout', 'posts_per_page' => -1);
    $lay = get_posts($args);
    if (is_array($lay)) {
        foreach ($lay as $v) {
            $layouts[$v->ID] = $v->post_title;
        }
    }
    $mfn_portfolio_meta_box = array('id' => 'mfn-meta-portfolio', 'title' => __('Portfolio Item Options', 'mfn-opts'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'mfn-post-hide-content', 'type' => 'switch', 'title' => __('Hide the content', 'mfn-opts'), 'sub_desc' => __('Hide the content from the WordPress editor', 'mfn-opts'), 'desc' => __('<strong>Turn it ON if you build content using Content Builder</strong>. Use the Content item if you want to display the Content from editor within the Content Builder.', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-custom-layout', 'type' => 'select', 'title' => __('Custom Layout', 'mfn-opts'), 'desc' => __('Custom Layout overwrites Theme Options', 'mfn-opts'), 'options' => $layouts), array('id' => 'mfn-post-layout', 'type' => 'radio_img', 'title' => __('Layout', 'mfn-opts'), 'sub_desc' => __('Select layout for this portfolio item', 'mfn-opts'), 'options' => array('no-sidebar' => array('title' => 'Full width. No sidebar', 'img' => MFN_OPTIONS_URI . 'img/1col.png'), 'left-sidebar' => array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cl.png'), 'right-sidebar' => array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cr.png')), 'std' => mfn_opts_get('sidebar-layout')), array('id' => 'mfn-post-sidebar', 'type' => 'select', 'title' => __('Sidebar', 'mfn-opts'), 'sub_desc' => __('Select sidebar for this portfolio item', 'mfn-opts'), 'desc' => __('Shows only if layout with sidebar is selected.', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'mfn-post-slider', 'type' => 'select', 'title' => __('Slider | Revolution Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=revslider">Revolution Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders()), array('id' => 'mfn-post-slider-layer', 'type' => 'select', 'title' => __('Slider | Layer Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=layerslider">Layer Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders_layer()), array('id' => 'mfn-post-slider-header', 'type' => 'switch', 'title' => __('Slider | Show in Header', 'mfn-opts'), 'sub_desc' => __('Show slider in Header instead of the Content', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-header-bg', 'type' => 'upload', 'title' => __('Header | Image', 'mfn-opts')), array('id' => 'mfn-post-video', 'type' => 'text', 'title' => __('Video ID', 'mfn-opts'), 'sub_desc' => __('YouTube or Vimeo', 'mfn-opts'), 'desc' => __('It`s placed in every YouTube & Vimeo video, for example:<br /><br /><b>YouTube:</b> http://www.youtube.com/watch?v=<u>WoJhnRczeNg</u><br /><b>Vimeo:</b> http://vimeo.com/<u>62954028</u>', 'mfn-opts'), 'class' => 'small-text mfn-post-format video'), array('id' => 'mfn-post-video-mp4', 'type' => 'upload', 'title' => __('HTML5 mp4 video', 'mfn-opts'), 'sub_desc' => __('m4v [.mp4]', 'mfn-opts'), 'desc' => __('<strong>Notice:</strong> HTML5 video works only in moden browsers.', 'mfn-opts'), 'class' => __('video', 'mfn-opts')), array('id' => 'mfn-post-bg', 'type' => 'upload', 'title' => __('Background Image', 'mfn-opts'), 'sub_desc' => __('Background Image for List Style Portfolio', 'mfn-opts')), array('id' => 'mfn-post-size', 'type' => 'select', 'title' => __('Item Size', 'mfn-opts'), 'sub_desc' => __('Size for Masonry Flat Style Portfolio', 'mfn-opts'), 'options' => array('' => __('Default', 'mfn-opts'), 'wide' => __('Wide', 'mfn-opts'), 'tall' => __('Tall', 'mfn-opts'), 'wide tall' => __('Big', 'mfn-opts'))), array('id' => 'mfn-post-client', 'type' => 'text', 'title' => __('Client', 'mfn-opts'), 'sub_desc' => __('Project description: Client', 'mfn-opts')), array('id' => 'mfn-post-link', 'type' => 'text', 'title' => __('Website', 'mfn-opts'), 'sub_desc' => __('Project description: Website', 'mfn-opts')), array('id' => 'mfn-post-task', 'type' => 'text', 'title' => __('Task', 'mfn-opts'), 'sub_desc' => __('Project description: Task', 'mfn-opts')), array('id' => 'mfn-meta-seo-title', 'type' => 'text', 'title' => __('SEO Title', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-description', 'type' => 'text', 'title' => __('SEO Description', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-keywords', 'type' => 'text', 'title' => __('SEO Keywords', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts'))));
    add_meta_box($mfn_portfolio_meta_box['id'], $mfn_portfolio_meta_box['title'], 'mfn_portfolio_show_box', $mfn_portfolio_meta_box['page'], $mfn_portfolio_meta_box['context'], $mfn_portfolio_meta_box['priority']);
}
Пример #6
0
function mfn_register_sidebars_cat()
{
    // blog categories ----------------------------------------------------------
    $categories = get_categories(array('taxonomy' => 'category'));
    if (is_array($categories)) {
        foreach ($categories as $category) {
            register_sidebar(array('name' => __('Blog', 'mfn-opts') . ' | ' . $category->cat_name, 'id' => 'blog-cat-' . $category->slug, 'description' => __('Sidebar for Blog Category. Appears only when you select sidebar for Blog.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
        }
    }
    // portfolio categories ----------------------------------------------------------
    $post_types_disable = mfn_opts_get('post-type-disable');
    if (!isset($post_types_disable['portfolio'])) {
        $categories = get_categories(array('taxonomy' => 'portfolio-types'));
        if (is_array($categories)) {
            foreach ($categories as $category) {
                register_sidebar(array('name' => __('Portfolio', 'mfn-opts') . ' | ' . $category->cat_name, 'id' => 'portfolio-cat-' . $category->slug, 'description' => __('Appears on Portfolio Category Page.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
            }
        }
    }
}
Пример #7
0
function mfn_wp_split_menu()
{
    echo '<nav id="menu">';
    // Main Menu Left ----------------------------
    $args = array('container' => false, 'menu_id' => false, 'menu_class' => 'menu menu_left', 'fallback_cb' => false, 'theme_location' => 'main-menu', 'depth' => 5, 'link_before' => '<span>', 'link_after' => '</span>');
    // custom walker for mega menu
    $theme_disable = mfn_opts_get('theme-disable');
    if (!isset($theme_disable['mega-menu'])) {
        $args['walker'] = new Walker_Nav_Menu_Mfn();
    }
    wp_nav_menu($args);
    // Main Menu Right ----------------------------
    $args = array('container' => false, 'menu_id' => false, 'menu_class' => 'menu menu_right', 'fallback_cb' => false, 'theme_location' => 'secondary-menu', 'depth' => 5, 'link_before' => '<span>', 'link_after' => '</span>');
    // custom walker for mega menu
    $theme_disable = mfn_opts_get('theme-disable');
    if (!isset($theme_disable['mega-menu'])) {
        $args['walker'] = new Walker_Nav_Menu_Mfn();
    }
    wp_nav_menu($args);
    echo '</nav>';
}
Пример #8
0
function mfn_fonts($type = false)
{
    $fonts = array();
    // system fonts won`t be downloaded from Google Fonts
    $fonts['system'] = array('Arial', 'Georgia', 'Tahoma', 'Times', 'Trebuchet', 'Verdana');
    // custom uploaded font
    if (mfn_opts_get('font-custom') || mfn_opts_get('font-custom2')) {
        $fonts['custom'] = array();
        if (mfn_opts_get('font-custom')) {
            $fonts['custom'][] = '#' . mfn_opts_get('font-custom');
        }
        if (mfn_opts_get('font-custom2')) {
            $fonts['custom'][] = '#' . mfn_opts_get('font-custom2');
        }
    }
    $fonts['all'] = array('ABeeZee', 'Abel', 'Abril Fatface', 'Aclonica', 'Acme', 'Actor', 'Adamina', 'Advent Pro', 'Aguafina Script', 'Akronim', 'Aladin', 'Aldrich', 'Alef', 'Alegreya', 'Alegreya SC', 'Alegreya Sans', 'Alegreya Sans SC', 'Alex Brush', 'Alfa Slab One', 'Alice', 'Alike', 'Alike Angular', 'Allan', 'Allerta', 'Allerta Stencil', 'Allura', 'Almendra', 'Almendra Display', 'Almendra SC', 'Amarante', 'Amaranth', 'Amatic SC', 'Amethysta', 'Anaheim', 'Andada', 'Andika', 'Angkor', 'Annie Use Your Telescope', 'Anonymous Pro', 'Antic', 'Antic Didone', 'Antic Slab', 'Anton', 'Arapey', 'Arbutus', 'Arbutus Slab', 'Architects Daughter', 'Archivo Black', 'Archivo Narrow', 'Arimo', 'Arizonia', 'Armata', 'Artifika', 'Arvo', 'Asap', 'Asset', 'Astloch', 'Asul', 'Atomic Age', 'Aubrey', 'Audiowide', 'Autour One', 'Average', 'Average Sans', 'Averia Gruesa Libre', 'Averia Libre', 'Averia Sans Libre', 'Averia Serif Libre', 'Bad Script', 'Balthazar', 'Bangers', 'Basic', 'Battambang', 'Baumans', 'Bayon', 'Belgrano', 'Belleza', 'BenchNine', 'Bentham', 'Berkshire Swash', 'Bevan', 'Bigelow Rules', 'Bigshot One', 'Bilbo', 'Bilbo Swash Caps', 'Bitter', 'Black Ops One', 'Bokor', 'Bonbon', 'Boogaloo', 'Bowlby One', 'Bowlby One SC', 'Brawler', 'Bree Serif', 'Bubblegum Sans', 'Bubbler One', 'Buda', 'Buenard', 'Butcherman', 'Butterfly Kids', 'Cabin', 'Cabin Condensed', 'Cabin Sketch', 'Caesar Dressing', 'Cagliostro', 'Calligraffitti', 'Cambo', 'Candal', 'Cantarell', 'Cantata One', 'Cantora One', 'Capriola', 'Cardo', 'Carme', 'Carrois Gothic', 'Carrois Gothic SC', 'Carter One', 'Caudex', 'Cedarville Cursive', 'Ceviche One', 'Changa One', 'Chango', 'Chau Philomene One', 'Chela One', 'Chelsea Market', 'Chenla', 'Cherry Cream Soda', 'Cherry Swash', 'Chewy', 'Chicle', 'Chivo', 'Cinzel', 'Cinzel Decorative', 'Clicker Script', 'Coda', 'Coda Caption', 'Codystar', 'Combo', 'Comfortaa', 'Coming Soon', 'Concert One', 'Condiment', 'Content', 'Contrail One', 'Convergence', 'Cookie', 'Copse', 'Corben', 'Courgette', 'Cousine', 'Coustard', 'Covered By Your Grace', 'Crafty Girls', 'Creepster', 'Crete Round', 'Crimson Text', 'Croissant One', 'Crushed', 'Cuprum', 'Cutive', 'Cutive Mono', 'Damion', 'Dancing Script', 'Dangrek', 'Dawning of a New Day', 'Days One', 'Delius', 'Delius Swash Caps', 'Delius Unicase', 'Della Respira', 'Denk One', 'Devonshire', 'Didact Gothic', 'Diplomata', 'Diplomata SC', 'Domine', 'Donegal One', 'Doppio One', 'Dorsa', 'Dosis', 'Dr Sugiyama', 'Droid Sans', 'Droid Sans Mono', 'Droid Serif', 'Duru Sans', 'Dynalight', 'EB Garamond', 'Eagle Lake', 'Eater', 'Economica', 'Ek Mukta', 'Electrolize', 'Elsie', 'Elsie Swash Caps', 'Emblema One', 'Emilys Candy', 'Engagement', 'Englebert', 'Enriqueta', 'Erica One', 'Esteban', 'Euphoria Script', 'Ewert', 'Exo', 'Exo 2', 'Expletus Sans', 'Fanwood Text', 'Fascinate', 'Fascinate Inline', 'Faster One', 'Fasthand', 'Fauna One', 'Federant', 'Federo', 'Felipa', 'Fenix', 'Finger Paint', 'Fira Mono', 'Fira Sans', 'Fjalla One', 'Fjord One', 'Flamenco', 'Flavors', 'Fondamento', 'Fontdiner Swanky', 'Forum', 'Francois One', 'Freckle Face', 'Fredericka the Great', 'Fredoka One', 'Freehand', 'Fresca', 'Frijole', 'Fruktur', 'Fugaz One', 'GFS Didot', 'GFS Neohellenic', 'Gabriela', 'Gafata', 'Galdeano', 'Galindo', 'Gentium Basic', 'Gentium Book Basic', 'Geo', 'Geostar', 'Geostar Fill', 'Germania One', 'Gilda Display', 'Give You Glory', 'Glass Antiqua', 'Glegoo', 'Gloria Hallelujah', 'Goblin One', 'Gochi Hand', 'Gorditas', 'Goudy Bookletter 1911', 'Graduate', 'Grand Hotel', 'Gravitas One', 'Great Vibes', 'Griffy', 'Gruppo', 'Gudea', 'Habibi', 'Halant', 'Hammersmith One', 'Hanalei', 'Hanalei Fill', 'Handlee', 'Hanuman', 'Happy Monkey', 'Headland One', 'Henny Penny', 'Herr Von Muellerhoff', 'Hind', 'Holtwood One SC', 'Homemade Apple', 'Homenaje', 'IM Fell DW Pica', 'IM Fell DW Pica SC', 'IM Fell Double Pica', 'IM Fell Double Pica SC', 'IM Fell English', 'IM Fell English SC', 'IM Fell French Canon', 'IM Fell French Canon SC', 'IM Fell Great Primer', 'IM Fell Great Primer SC', 'Iceberg', 'Iceland', 'Imprima', 'Inconsolata', 'Inder', 'Indie Flower', 'Inika', 'Irish Grover', 'Istok Web', 'Italiana', 'Italianno', 'Jacques Francois', 'Jacques Francois Shadow', 'Jim Nightshade', 'Jockey One', 'Jolly Lodger', 'Josefin Sans', 'Josefin Slab', 'Joti One', 'Judson', 'Julee', 'Julius Sans One', 'Junge', 'Jura', 'Just Another Hand', 'Just Me Again Down Here', 'Kalam', 'Kameron', 'Kantumruy', 'Karla', 'Karma', 'Kaushan Script', 'Kavoon', 'Kdam Thmor', 'Keania One', 'Kelly Slab', 'Kenia', 'Khand', 'Khmer', 'Kite One', 'Knewave', 'Kotta One', 'Koulen', 'Kranky', 'Kreon', 'Kristi', 'Krona One', 'La Belle Aurore', 'Laila', 'Lancelot', 'Lato', 'League Script', 'Leckerli One', 'Ledger', 'Lekton', 'Lemon', 'Libre Baskerville', 'Life Savers', 'Lilita One', 'Lily Script One', 'Limelight', 'Linden Hill', 'Lobster', 'Lobster Two', 'Londrina Outline', 'Londrina Shadow', 'Londrina Sketch', 'Londrina Solid', 'Lora', 'Love Ya Like A Sister', 'Loved by the King', 'Lovers Quarrel', 'Luckiest Guy', 'Lusitana', 'Lustria', 'Macondo', 'Macondo Swash Caps', 'Magra', 'Maiden Orange', 'Mako', 'Marcellus', 'Marcellus SC', 'Marck Script', 'Margarine', 'Marko One', 'Marmelad', 'Marvel', 'Mate', 'Mate SC', 'Maven Pro', 'McLaren', 'Meddon', 'MedievalSharp', 'Medula One', 'Megrim', 'Meie Script', 'Merienda', 'Merienda One', 'Merriweather', 'Merriweather Sans', 'Metal', 'Metal Mania', 'Metamorphous', 'Metrophobic', 'Michroma', 'Milonga', 'Miltonian', 'Miltonian Tattoo', 'Miniver', 'Miss Fajardose', 'Modern Antiqua', 'Molengo', 'Molle', 'Monda', 'Monofett', 'Monoton', 'Monsieur La Doulaise', 'Montaga', 'Montez', 'Montserrat', 'Montserrat Alternates', 'Montserrat Subrayada', 'Moul', 'Moulpali', 'Mountains of Christmas', 'Mouse Memoirs', 'Mr Bedfort', 'Mr Dafoe', 'Mr De Haviland', 'Mrs Saint Delafield', 'Mrs Sheppards', 'Muli', 'Mystery Quest', 'Neucha', 'Neuton', 'New Rocker', 'News Cycle', 'Niconne', 'Nixie One', 'Nobile', 'Nokora', 'Norican', 'Nosifer', 'Nothing You Could Do', 'Noticia Text', 'Noto Sans', 'Noto Serif', 'Nova Cut', 'Nova Flat', 'Nova Mono', 'Nova Oval', 'Nova Round', 'Nova Script', 'Nova Slim', 'Nova Square', 'Numans', 'Nunito', 'Odor Mean Chey', 'Offside', 'Old Standard TT', 'Oldenburg', 'Oleo Script', 'Oleo Script Swash Caps', 'Open Sans', 'Open Sans Condensed', 'Oranienbaum', 'Orbitron', 'Oregano', 'Orienta', 'Original Surfer', 'Oswald', 'Over the Rainbow', 'Overlock', 'Overlock SC', 'Ovo', 'Oxygen', 'Oxygen Mono', 'PT Mono', 'PT Sans', 'PT Sans Caption', 'PT Sans Narrow', 'PT Serif', 'PT Serif Caption', 'Pacifico', 'Paprika', 'Parisienne', 'Passero One', 'Passion One', 'Pathway Gothic One', 'Patrick Hand', 'Patrick Hand SC', 'Patua One', 'Paytone One', 'Peralta', 'Permanent Marker', 'Petit Formal Script', 'Petrona', 'Philosopher', 'Piedra', 'Pinyon Script', 'Pirata One', 'Plaster', 'Play', 'Playball', 'Playfair Display', 'Playfair Display SC', 'Podkova', 'Poiret One', 'Poller One', 'Poly', 'Pompiere', 'Pontano Sans', 'Poppins', 'Port Lligat Sans', 'Port Lligat Slab', 'Prata', 'Preahvihear', 'Press Start 2P', 'Princess Sofia', 'Prociono', 'Prosto One', 'Puritan', 'Purple Purse', 'Quando', 'Quantico', 'Quattrocento', 'Quattrocento Sans', 'Questrial', 'Quicksand', 'Quintessential', 'Qwigley', 'Racing Sans One', 'Radley', 'Rajdhani', 'Raleway', 'Raleway Dots', 'Rambla', 'Rammetto One', 'Ranchers', 'Rancho', 'Rationale', 'Redressed', 'Reenie Beanie', 'Revalia', 'Ribeye', 'Ribeye Marrow', 'Righteous', 'Risque', 'Roboto', 'Roboto Condensed', 'Roboto Slab', 'Rochester', 'Rock Salt', 'Rokkitt', 'Romanesco', 'Ropa Sans', 'Rosario', 'Rosarivo', 'Rouge Script', 'Rozha One', 'Rubik Mono One', 'Rubik One', 'Ruda', 'Rufina', 'Ruge Boogie', 'Ruluko', 'Rum Raisin', 'Ruslan Display', 'Russo One', 'Ruthie', 'Rye', 'Sacramento', 'Sail', 'Salsa', 'Sanchez', 'Sancreek', 'Sansita One', 'Sarina', 'Sarpanch', 'Satisfy', 'Scada', 'Schoolbell', 'Seaweed Script', 'Sevillana', 'Seymour One', 'Shadows Into Light', 'Shadows Into Light Two', 'Shanti', 'Share', 'Share Tech', 'Share Tech Mono', 'Shojumaru', 'Short Stack', 'Siemreap', 'Sigmar One', 'Signika', 'Signika Negative', 'Simonetta', 'Sintony', 'Sirin Stencil', 'Six Caps', 'Skranji', 'Slabo 13px', 'Slabo 27px', 'Slackey', 'Smokum', 'Smythe', 'Sniglet', 'Snippet', 'Snowburst One', 'Sofadi One', 'Sofia', 'Sonsie One', 'Sorts Mill Goudy', 'Source Code Pro', 'Source Sans Pro', 'Source Serif Pro', 'Special Elite', 'Spicy Rice', 'Spinnaker', 'Spirax', 'Squada One', 'Stalemate', 'Stalinist One', 'Stardos Stencil', 'Stint Ultra Condensed', 'Stint Ultra Expanded', 'Stoke', 'Strait', 'Sue Ellen Francisco', 'Sunshiney', 'Supermercado One', 'Suwannaphum', 'Swanky and Moo Moo', 'Syncopate', 'Tangerine', 'Taprom', 'Tauri', 'Teko', 'Telex', 'Tenor Sans', 'Text Me One', 'The Girl Next Door', 'Tienne', 'Tinos', 'Titan One', 'Titillium Web', 'Trade Winds', 'Trocchi', 'Trochut', 'Trykker', 'Tulpen One', 'Ubuntu', 'Ubuntu Condensed', 'Ubuntu Mono', 'Ultra', 'Uncial Antiqua', 'Underdog', 'Unica One', 'UnifrakturCook', 'UnifrakturMaguntia', 'Unkempt', 'Unlock', 'Unna', 'VT323', 'Vampiro One', 'Varela', 'Varela Round', 'Vast Shadow', 'Vesper Libre', 'Vibur', 'Vidaloka', 'Viga', 'Voces', 'Volkhov', 'Vollkorn', 'Voltaire', 'Waiting for the Sunrise', 'Wallpoet', 'Walter Turncoat', 'Warnes', 'Wellfleet', 'Wendy One', 'Wire One', 'Yanone Kaffeesatz', 'Yellowtail', 'Yeseva One', 'Yesteryear', 'Zeyada');
    if ($type) {
        return $fonts[$type];
    } else {
        return $fonts;
    }
}
Пример #9
0
function mfn_page_meta_add()
{
    global $mfn_page_meta_box;
    // Custom menu ------------------------------
    $aMenus = array(0 => '-- Default --');
    $oMenus = get_terms('nav_menu', array('hide_empty' => false));
    if (is_array($oMenus)) {
        foreach ($oMenus as $menu) {
            $aMenus[$menu->term_id] = $menu->name;
        }
    }
    // Layouts ----------------------------------
    $layouts = array(0 => '-- Theme Options --');
    $args = array('post_type' => 'layout', 'posts_per_page' => -1);
    $lay = get_posts($args);
    if (is_array($lay)) {
        foreach ($lay as $v) {
            $layouts[$v->ID] = $v->post_title;
        }
    }
    $mfn_page_meta_box = array('id' => 'mfn-meta-page', 'title' => __('Page Options', 'mfn-opts'), 'page' => 'page', 'context' => 'normal', 'priority' => 'default', 'fields' => array(array('id' => 'mfn-meta-info-layout', 'type' => 'info', 'title' => '', 'desc' => __('Layout', 'mfn-opts'), 'class' => 'mfn-info'), array('id' => 'mfn-post-hide-content', 'type' => 'switch', 'title' => __('Hide The Content', 'mfn-opts'), 'sub_desc' => __('Hide the content from the WordPress editor', 'mfn-opts'), 'desc' => __('<strong>Turn it ON if you build content using Content Builder</strong><br />Use the Content item if you want to display the Content from editor within the Content Builder', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-layout', 'type' => 'radio_img', 'title' => __('Layout', 'mfn-opts'), 'options' => array('no-sidebar' => array('title' => 'Full width No sidebar', 'img' => MFN_OPTIONS_URI . 'img/1col.png'), 'left-sidebar' => array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cl.png'), 'right-sidebar' => array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cr.png'), 'both-sidebars' => array('title' => 'Both Sidebars', 'img' => MFN_OPTIONS_URI . 'img/2sb.png')), 'std' => mfn_opts_get('sidebar-layout')), array('id' => 'mfn-post-sidebar', 'type' => 'select', 'title' => __('Sidebar', 'mfn-opts'), 'desc' => __('Shows only if layout with sidebar is selected', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'mfn-post-sidebar2', 'type' => 'select', 'title' => __('Sidebar 2nd', 'mfn-opts'), 'desc' => __('Shows only if layout with both sidebars is selected', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'mfn-meta-info-media', 'type' => 'info', 'title' => '', 'desc' => __('Media', 'mfn-opts'), 'class' => 'mfn-info'), array('id' => 'mfn-post-slider', 'type' => 'select', 'title' => __('Slider | Revolution Slider', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=revslider">Revolution Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders()), array('id' => 'mfn-post-slider-layer', 'type' => 'select', 'title' => __('Slider | Layer Slider', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=layerslider">Layer Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders_layer()), array('id' => 'mfn-post-slider-shortcode', 'type' => 'text', 'title' => __('Slider | Shortcode', 'mfn-opts'), 'desc' => __('Paste your slider shortcode here if you use slider other than Revolution or Layer', 'mfn-opts')), array('id' => 'mfn-post-subheader-image', 'type' => 'upload', 'title' => __('Subheader | Image', 'mfn-opts')), array('id' => 'mfn-meta-info-options', 'type' => 'info', 'title' => '', 'desc' => __('Options', 'mfn-opts'), 'class' => 'mfn-info'), array('id' => 'mfn-post-one-page', 'type' => 'switch', 'title' => __('One Page', 'mfn-opts'), 'options' => array('0' => 'Off', '1' => 'On'), 'std' => '0'), array('id' => 'mfn-post-hide-title', 'type' => 'switch', 'title' => __('Subheader | Hide', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-remove-padding', 'type' => 'switch', 'title' => __('Content | Remove Padding', 'mfn-opts'), 'desc' => __('Remove default Content Padding for pages without sidebar', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-custom-layout', 'type' => 'select', 'title' => __('Custom | Layout', 'mfn-opts'), 'desc' => __('Custom Layout overwrites Theme Options', 'mfn-opts'), 'options' => $layouts), array('id' => 'mfn-post-menu', 'type' => 'select', 'title' => __('Custom | Menu', 'mfn-opts'), 'options' => $aMenus), array('id' => 'mfn-meta-info-seo', 'type' => 'info', 'title' => '', 'desc' => __('SEO', 'mfn-opts'), 'class' => 'mfn-info'), array('id' => 'mfn-meta-seo-title', 'type' => 'text', 'title' => __('SEO | Title', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings', 'mfn-opts')), array('id' => 'mfn-meta-seo-description', 'type' => 'text', 'title' => __('SEO | Description', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings', 'mfn-opts')), array('id' => 'mfn-meta-seo-keywords', 'type' => 'text', 'title' => __('SEO | Keywords', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings', 'mfn-opts')), array('id' => 'mfn-meta-info-custom', 'type' => 'info', 'title' => '', 'desc' => __('Custom CSS', 'mfn-opts'), 'class' => 'mfn-info'), array('id' => 'mfn-post-css', 'type' => 'textarea', 'title' => __('Custom | CSS', 'mfn-opts'), 'desc' => __('Paste your custom CSS code for this page', 'mfn-opts'), 'class' => 'full-width')));
    add_meta_box($mfn_page_meta_box['id'], $mfn_page_meta_box['title'], 'mfn_page_show_box', $mfn_page_meta_box['page'], $mfn_page_meta_box['context'], $mfn_page_meta_box['priority']);
}
Пример #10
0
function mfn_page_meta_add()
{
    global $mfn_page_meta_box;
    // Custom menu ------------------------------
    $aMenus = array(0 => '-- Default --');
    $oMenus = get_terms('nav_menu', array('hide_empty' => false));
    if (is_array($oMenus)) {
        foreach ($oMenus as $menu) {
            $aMenus[$menu->term_id] = $menu->name;
        }
    }
    // Layouts ----------------------------------
    $layouts = array(0 => '-- Theme Options --');
    $args = array('post_type' => 'layout', 'posts_per_page' => -1);
    $lay = get_posts($args);
    if (is_array($lay)) {
        foreach ($lay as $v) {
            $layouts[$v->ID] = $v->post_title;
        }
    }
    $mfn_page_meta_box = array('id' => 'mfn-meta-page', 'title' => __('Page Options', 'mfn-opts'), 'page' => 'page', 'context' => 'normal', 'priority' => 'default', 'fields' => array(array('id' => 'mfn-post-hide-content', 'type' => 'switch', 'title' => __('Hide The Content', 'mfn-opts'), 'sub_desc' => __('Hide the content from the WordPress editor.', 'mfn-opts'), 'desc' => __('<strong>Turn it ON if you build content using Content Builder</strong>. Use the Content item if you want to display the Content from editor within the Content Builder.', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-custom-layout', 'type' => 'select', 'title' => __('Custom Layout', 'mfn-opts'), 'desc' => __('Custom Layout overwrites Theme Options', 'mfn-opts'), 'options' => $layouts), array('id' => 'mfn-post-menu', 'type' => 'select', 'title' => __('Custom Menu', 'mfn-opts'), 'options' => $aMenus), array('id' => 'mfn-post-layout', 'type' => 'radio_img', 'title' => __('Layout', 'mfn-opts'), 'sub_desc' => __('Select layout for this page', 'mfn-opts'), 'options' => array('no-sidebar' => array('title' => 'Full width. No sidebar', 'img' => MFN_OPTIONS_URI . 'img/1col.png'), 'left-sidebar' => array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cl.png'), 'right-sidebar' => array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cr.png')), 'std' => mfn_opts_get('sidebar-layout')), array('id' => 'mfn-post-sidebar', 'type' => 'select', 'title' => __('Sidebar', 'mfn-opts'), 'sub_desc' => __('Select sidebar for this page.', 'mfn-opts'), 'desc' => __('Shows only if layout with sidebar is selected.', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'mfn-post-slider', 'type' => 'select', 'title' => __('Slider | Revolution Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=revslider">Revolution Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders()), array('id' => 'mfn-post-slider-layer', 'type' => 'select', 'title' => __('Slider | Layer Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=layerslider">Layer Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders_layer()), array('id' => 'mfn-post-hide-title', 'type' => 'switch', 'title' => __('Hide Title Area', 'mfn-opts'), 'desc' => __('This will also remove Content padding', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-meta-seo-title', 'type' => 'text', 'title' => __('SEO Title', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-description', 'type' => 'text', 'title' => __('SEO Description', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-keywords', 'type' => 'text', 'title' => __('SEO Keywords', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-post-css', 'type' => 'textarea', 'title' => __('Custom CSS', 'mfn-opts'), 'desc' => __('Paste your custom CSS code for this page.', 'mfn-opts'))));
    add_meta_box($mfn_page_meta_box['id'], $mfn_page_meta_box['title'], 'mfn_page_show_box', $mfn_page_meta_box['page'], $mfn_page_meta_box['context'], $mfn_page_meta_box['priority']);
}
Пример #11
0
function mfn_register_sidebars()
{
    // custom sidebars -------------------------------------------------------
    $sidebars = mfn_opts_get('sidebars');
    if (is_array($sidebars)) {
        foreach ($sidebars as $sidebar) {
            register_sidebar(array('name' => $sidebar, 'id' => 'sidebar-' . str_replace("+", "-", urlencode(strtolower($sidebar))), 'description' => __('Custom sidebar created in Theme Options.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
        }
    }
    // footer areas ----------------------------------------------------------
    for ($i = 1; $i <= 4; $i++) {
        register_sidebar(array('name' => __('Footer area', 'mfn-opts') . ' #' . $i, 'id' => 'footer-area-' . $i, 'description' => __('Appears in the Footer section of the site.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
    }
    // sliding top ----------------------------------------------------------
    for ($i = 1; $i <= 4; $i++) {
        register_sidebar(array('name' => __('Sliding Top area', 'mfn-opts') . ' #' . $i, 'id' => 'top-area-' . $i, 'description' => __('Appears in the Sliding Top section of the site.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
    }
    // Forum | bbPress -----------------------------------------------------------
    register_sidebar(array('name' => __('Plugin | bbPress', 'mfn-opts'), 'id' => 'forum', 'description' => __('Main sidebar for bbPress pages that appears on the right. Leave it empty to use Full Width layout.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
    // Events | Events Callendar -----------------------------------------------------------
    register_sidebar(array('name' => __('Plugin | Events Calendar', 'mfn-opts'), 'id' => 'events', 'description' => __('Main sidebar for The Events Calendar pages that appears on the right. Leave it empty to use Full Width layout.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
    // Shop | WooCommerce ----------------------------------------------------------
    register_sidebar(array('name' => __('Plugin | WooCommerce', 'mfn-opts'), 'id' => 'shop', 'description' => __('Main sidebar for WooCommerce pages that appears on the right. Leave it empty to use Full Width layout.', 'betheme'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
}
Пример #12
0
				<?php 
// List of pages
wp_link_pages(array('before' => '<div class="pager-single">', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'next_or_number' => 'number'));
?>
			</div>
			
		</div>
	</div>
	
	<div class="section section-post-related">
		<div class="section_wrapper clearfix">
			
			<?php 
if (mfn_opts_get('portfolio-related') && $aCategories) {
    $related_count = intval(mfn_opts_get('portfolio-related'));
    $related_cols = 'col-' . absint(mfn_opts_get('portfolio-related-columns', 3));
    $args = array('post_type' => 'portfolio', 'tax_query' => array(array('taxonomy' => 'portfolio-types', 'field' => 'term_id', 'terms' => $aCategories)), 'post__not_in' => array(get_the_ID()), 'posts_per_page' => $related_count, 'post_status' => 'publish', 'no_found_rows' => true, 'ignore_sticky_posts' => true);
    $query_related_posts = new WP_Query($args);
    if ($query_related_posts->have_posts()) {
        echo '<div class="section-related-adjustment">';
        echo '<h4>' . $translate['related'] . '</h4>';
        echo '<div class="section-related-ul ' . $related_cols . '">';
        while ($query_related_posts->have_posts()) {
            $query_related_posts->the_post();
            echo '<div class="column post-related ' . implode(' ', get_post_class()) . '">';
            echo '<div class="image_frame scale-with-grid">';
            echo '<div class="image_wrapper">';
            echo mfn_post_thumbnail(get_the_ID(), 'portfolio');
            echo '</div>';
            echo '</div>';
            echo '<div class="date_label">' . get_the_date() . '</div>';
Пример #13
0
 function mfn_content_portfolio($query = false, $style = false)
 {
     global $wp_query;
     $output = '';
     $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore', 'Read more') : __('Read more', 'betheme');
     $translate['client'] = mfn_opts_get('translate') ? mfn_opts_get('translate-client', 'Client') : __('Client', 'betheme');
     $translate['date'] = mfn_opts_get('translate') ? mfn_opts_get('translate-date', 'Date') : __('Date', 'betheme');
     $translate['website'] = mfn_opts_get('translate') ? mfn_opts_get('translate-website', 'Website') : __('Website', 'betheme');
     $translate['view'] = mfn_opts_get('translate') ? mfn_opts_get('translate-view', 'View website') : __('View website', 'betheme');
     if (!$query) {
         $query = $wp_query;
     }
     if (!$style) {
         if ($_GET && key_exists('mfn-p', $_GET)) {
             $style = $_GET['mfn-p'];
             // demo
         } else {
             $style = mfn_opts_get('portfolio-layout', 'grid');
         }
     }
     if ($query->have_posts()) {
         while ($query->have_posts()) {
             $query->the_post();
             $item_class = array();
             $categories = '';
             $terms = get_the_terms(get_the_ID(), 'portfolio-types');
             if (is_array($terms)) {
                 foreach ($terms as $term) {
                     $item_class[] = 'category-' . $term->slug;
                     $categories .= '<a href="' . site_url() . '/portfolio-types/' . $term->slug . '">' . $term->name . '</a>, ';
                 }
                 $categories = substr($categories, 0, -2);
             }
             $item_class[] = get_post_meta(get_the_ID(), 'mfn-post-size', true);
             $item_class[] = has_post_thumbnail() ? 'has-thumbnail' : 'no-thumbnail';
             $item_class = implode(' ', $item_class);
             // full width sections for list style
             if ($item_bg = get_post_meta(get_the_ID(), 'mfn-post-bg', true)) {
                 $item_bg = 'style="background-image:url(' . $item_bg . ');"';
             }
             $external = mfn_opts_get('portfolio-external');
             $ext_link = get_post_meta(get_the_ID(), 'mfn-post-link', true);
             $large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'large');
             // Image Link ---------------------------------------------------------------------
             if (in_array($external, array('disable', 'popup'))) {
                 // disable details & link popup
                 $link_before = '<a class="link" href="' . $large_image_url[0] . '" rel="prettyphoto">';
             } elseif ($external && $ext_link) {
                 // link to project website
                 $link_before = '<a class="link" href="' . $ext_link . '" target="' . $external . '">';
             } else {
                 // link to project details
                 $link_before = '<a class="link" href="' . get_permalink() . '">';
             }
             // Echo ---------------------------------------------------------------------------
             $output .= '<li class="portfolio-item isotope-item ' . $item_class . '">';
             if ($style == 'masonry-hover') {
                 // style: Masonry Hover ---------------------------------------------------
                 $output .= '<div class="masonry-hover-wrapper">';
                 // desc -------------------
                 $bg_color = get_post_meta(get_the_ID(), 'mfn-post-bg-hover', true);
                 if ($bg_color) {
                     $bg_color = 'style="background-color:' . $bg_color . ';"';
                 }
                 $output .= '<div class="hover-desc" ' . $bg_color . '>';
                 $output .= '<div class="desc-inner">';
                 $output .= '<h3 class="entry-title" itemprop="headline">' . $link_before . get_the_title() . '</a></h3>';
                 $output .= '<div class="desc-wrappper">';
                 $output .= get_the_excerpt();
                 $output .= '</div>';
                 $output .= '</div>';
                 if ($external != 'disable') {
                     $output .= '<div class="links-wrappper clearfix">';
                     if (!in_array($external, array('_self', '_blank'))) {
                         $output .= '<a class="zoom" href="' . $large_image_url[0] . '" rel="prettyphoto"><i class="icon-search"></i></a>';
                     }
                     if ($ext_link) {
                         $output .= '<a class="external" target="_blank" href="' . $ext_link . '" ><i class="icon-forward"></i></a>';
                     }
                     if (!$external) {
                         $output .= $link_before . '<i class="icon-link"></i></a>';
                     }
                     $output .= '</div>';
                 }
                 $output .= '</div>';
                 // photo ------------------
                 $output .= '<div class="image-wrapper scale-with-grid">';
                 $output .= $link_before;
                 $output .= get_the_post_thumbnail(get_the_ID(), 'blog-vertical', array('class' => 'scale-with-grid', 'itemprop' => 'image'));
                 $output .= '</a>';
                 $output .= '</div>';
                 $output .= '</div>';
             } else {
                 // style: All -------------------------------------------------------------
                 $output .= '<div class="portfolio-item-fw-bg" ' . $item_bg . '>';
                 $output .= '<div class="portfolio-item-fw-wrapper">';
                 // style: List | Desc ---------------------------------------------
                 $output .= '<div class="list_style_header">';
                 $output .= '<h3 class="entry-title" itemprop="headline">' . $link_before . get_the_title() . '</a></h3>';
                 $output .= '<div class="links_wrapper">';
                 $output .= '<a href="#" class="button button_js portfolio_prev_js"><span class="button_icon"><i class="icon-up-open"></i></span></a>';
                 $output .= '<a href="#" class="button button_js portfolio_next_js"><span class="button_icon"><i class="icon-down-open"></i></span></a>';
                 $output .= '<a href="' . get_permalink() . '" class="button button_left button_theme button_js"><span class="button_icon"><i class="icon-link"></i></span><span class="button_label">' . $translate['readmore'] . '</span></a>';
                 $output .= '</div>';
                 $output .= '</div>';
                 // style: All | Photo ---------------------------------------------
                 $output .= '<div class="image_frame scale-with-grid">';
                 $output .= '<div class="image_wrapper">';
                 $output .= mfn_post_thumbnail(get_the_ID(), 'portfolio', $style);
                 $output .= '</div>';
                 $output .= '</div>';
                 // style: All | Desc ----------------------------------------------
                 $output .= '<div class="desc">';
                 $output .= '<div class="title_wrapper">';
                 $output .= '<h5 class="entry-title" itemprop="headline">' . $link_before . get_the_title() . '</a></h5>';
                 $output .= '<div class="button-love">' . mfn_love() . '</div>';
                 $output .= '</div>';
                 $output .= '<div class="details-wrapper">';
                 $output .= '<dl>';
                 if ($client = get_post_meta(get_the_ID(), 'mfn-post-client', true)) {
                     $output .= '<dt>' . $translate['client'] . '</dt>';
                     $output .= '<dd>' . $client . '</dd>';
                 }
                 $output .= '<dt>' . $translate['date'] . '</dt>';
                 $output .= '<dd>' . get_the_date() . '</dd>';
                 if ($link = get_post_meta(get_the_ID(), 'mfn-post-link', true)) {
                     $output .= '<dt>' . $translate['website'] . '</dt>';
                     $output .= '<dd><a target="_blank" href="' . $link . '"><i class="icon-forward"></i>' . $translate['view'] . '</a></dd>';
                 }
                 $output .= '</dl>';
                 $output .= '</div>';
                 $output .= '<div class="desc-wrapper">';
                 $output .= get_the_excerpt();
                 $output .= '</div>';
                 $output .= '</div>';
                 $output .= '</div>';
                 $output .= '</div>';
             }
             $output .= '</li>';
         }
     }
     return $output;
 }
Пример #14
0
 function sc_portfolio_photo($attr, $content = null)
 {
     extract(shortcode_atts(array('count' => '5', 'category' => '', 'category_multi' => '', 'orderby' => 'date', 'order' => 'DESC', 'target' => '', 'greyscale' => ''), $attr));
     // class
     $class = '';
     if ($greyscale) {
         $class .= ' greyscale';
     }
     $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore', 'Read more') : __('Read more', 'betheme');
     $args = array('post_type' => 'portfolio', 'posts_per_page' => intval($count), 'paged' => -1, 'orderby' => $orderby, 'order' => $order, 'ignore_sticky_posts' => 1);
     // categories
     if ($category_multi) {
         $args['portfolio-types'] = trim($category_multi);
     } elseif ($category) {
         $args['portfolio-types'] = $category;
     }
     // target
     if ($target) {
         $target = 'target="_blank"';
     } else {
         $target = false;
     }
     $query = new WP_Query();
     $query->query($args);
     if ($query->have_posts()) {
         $output = '<div class="portfolio-photo ' . $class . '">';
         while ($query->have_posts()) {
             $query->the_post();
             // external link to project page
             if (get_post_meta(get_the_ID(), 'mfn-post-link', true)) {
                 $link = get_post_meta(get_the_ID(), 'mfn-post-link', true);
             } else {
                 $link = get_permalink();
             }
             // portfolio categories
             $terms = get_the_terms(get_the_ID(), 'portfolio-types');
             $categories = array();
             if (is_array($terms)) {
                 foreach ($terms as $term) {
                     $categories[] = $term->name;
                 }
             }
             $categories = implode(', ', $categories);
             // image
             $large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'large');
             $output .= '<div class="portfolio-item">';
             $output .= '<a class="portfolio-item-bg" href="' . $link . '" ' . $target . '>';
             $output .= get_the_post_thumbnail(get_the_ID(), 'full');
             $output .= '<div class="mask"></div>';
             $output .= '</a>';
             $output .= '<a class="portfolio-details" href="' . $link . '" ' . $target . '>';
             $output .= '<div class="details">';
             $output .= '<h3 class="title">' . get_the_title() . '</h3>';
             if ($categories) {
                 $output .= '<div class="categories">' . $categories . '</div>';
             }
             $output .= '</div>';
             $output .= '<span class="more"><h4>' . $translate['readmore'] . '</h4></span>';
             $output .= '</a>';
             $output .= '</div>';
         }
         $output .= '</div>' . "\n";
     }
     wp_reset_query();
     return $output;
 }
Пример #15
0
		.section_wrapper, .container, .with_aside .content_wrapper {
			max-width: <?php 
    echo $gridW - 20;
    ?>
px;
		}
		.layout-boxed.header-boxed #Top_bar.is-sticky{
			max-width: <?php 
    echo $gridW;
    ?>
px;
		}
	}
	
	<?php 
    if ($box_padding = mfn_opts_get('layout-boxed-padding')) {
        ?>
	
		@media only screen and (min-width:768px){
		
			.layout-boxed #Subheader .container,
			.layout-boxed:not(.with_aside) .section:not(.full-width),
			.layout-boxed.with_aside .content_wrapper,
			.layout-boxed #Footer .container { padding-left: <?php 
        echo $box_padding;
        ?>
; padding-right: <?php 
        echo $box_padding;
        ?>
;}
			
Пример #16
0
 function mfn_content_post($query = false, $layout = false)
 {
     global $wp_query;
     $output = '';
     $translate['published'] = mfn_opts_get('translate') ? mfn_opts_get('translate-published', 'Published by') : __('Published by', 'betheme');
     $translate['at'] = mfn_opts_get('translate') ? mfn_opts_get('translate-at', 'at') : __('at', 'betheme');
     $translate['categories'] = mfn_opts_get('translate') ? mfn_opts_get('translate-categories', 'Categories') : __('Categories', 'betheme');
     $translate['like'] = mfn_opts_get('translate') ? mfn_opts_get('translate-like', 'Do you like it?') : __('Do you like it?', 'betheme');
     $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore', 'Read more') : __('Read more', 'betheme');
     if (!$query) {
         $query = $wp_query;
     }
     if ($query->have_posts()) {
         while ($query->have_posts()) {
             $query->the_post();
             $post_class = array('post-item', 'isotope-item', 'clearfix');
             if (!mfn_post_thumbnail(get_the_ID())) {
                 $post_class[] = 'no-img';
             }
             if (post_password_required()) {
                 $post_class[] = 'no-img';
             }
             $post_class[] = 'author-' . get_the_author_meta('user_login');
             $post_class = implode(' ', get_post_class($post_class));
             $output .= '<div class="' . $post_class . '">';
             $output .= '<div class="date_label">' . get_the_date() . '</div>';
             // style: timeline
             // photo --------------------------------------------------------------------------
             if (!post_password_required()) {
                 $output .= '<div class="image_frame post-photo-wrapper scale-with-grid">';
                 $output .= '<div class="image_wrapper">';
                 $output .= mfn_post_thumbnail(get_the_ID());
                 $output .= '</div>';
                 $output .= '</div>';
             }
             // desc ---------------------------------------------------------------------------
             $output .= '<div class="post-desc-wrapper">';
             $output .= '<div class="post-desc">';
             // meta -------------------------------------
             if (mfn_opts_get('blog-meta')) {
                 $output .= '<div class="post-meta clearfix">';
                 $output .= '<div class="author-date">';
                 $output .= '<span class="author"><span>' . $translate['published'] . ' </span><i class="icon-user"></i> <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a></span> ';
                 $output .= '<span class="date"><span>' . $translate['at'] . ' </span><i class="icon-clock"></i> ' . get_the_date() . '</span>';
                 $output .= '</div>';
                 $output .= '<div class="category">';
                 $output .= '<span class="cat-btn">' . $translate['categories'] . ' <i class="icon-down-dir"></i></span>';
                 $output .= '<div class="cat-wrapper">' . get_the_category_list() . '</div>';
                 $output .= '</div>';
                 $output .= '</div>';
             }
             // title -------------------------------------
             $output .= '<div class="post-title">';
             if (get_post_format() == 'quote') {
                 // quote ----------------------------
                 $output .= '<blockquote><a href="' . get_permalink() . '">' . get_the_title() . '</a></blockquote>';
             } elseif (get_post_format() == 'link') {
                 // link ----------------------------
                 $output .= '<i class="icon-link"></i>';
                 $output .= '<div class="link-wrapper">';
                 $output .= '<h4>' . get_the_title() . '</h4>';
                 $link = get_post_meta(get_the_ID(), 'mfn-post-link', true);
                 $output .= '<a target="_blank" href="' . $link . '">' . $link . '</a>';
                 $output .= '</div>';
             } else {
                 // default ----------------------------
                 $output .= '<h2><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
             }
             $output .= '</div>';
             // content -------------------------------------
             $output .= '<div class="post-excerpt">' . get_the_excerpt() . '</div>';
             // footer -------------------------------------
             $output .= '<div class="post-footer">';
             $output .= '<div class="button-love"><span class="love-text">' . $translate['like'] . '</span>' . mfn_love() . '</div>';
             $output .= '<div class="post-links">';
             if (comments_open()) {
                 $output .= '<i class="icon-comment-empty-fa"></i> <a href="' . get_comments_link() . '" class="post-comments">' . get_comments_number() . '</a>';
             }
             $output .= '<i class="icon-doc-text"></i> <a href="' . get_permalink() . '" class="post-more">' . $translate['readmore'] . '</a>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
         }
     }
     return $output;
 }
Пример #17
0
				
				</div>
			</div>
		
			<div class="section <?php 
echo $section_class;
?>
">
				<div class="section_wrapper clearfix">

					<div class="column one column_portfolio">	
						<div class="portfolio_wrapper isotope_wrapper">
	
							<?php 
$paged = get_query_var('paged') ? get_query_var('paged') : (get_query_var('page') ? get_query_var('page') : 1);
$portfolio_args = array('post_type' => 'portfolio', 'posts_per_page' => mfn_opts_get('portfolio-posts', 6), 'paged' => $paged, 'order' => mfn_opts_get('portfolio-order', 'DESC'), 'orderby' => mfn_opts_get('portfolio-orderby', 'date'), 'ignore_sticky_posts' => 1);
// demo
if ($_GET && key_exists('mfn-iso', $_GET)) {
    $portfolio_args['posts_per_page'] = -1;
}
if ($_GET && key_exists('mfn-p', $_GET) && $_GET['mfn-p'] == 'list') {
    $portfolio_args['posts_per_page'] = 5;
}
$portfolio_query = new WP_Query($portfolio_args);
echo '<ul class="portfolio_group isotope ' . $portfolio_classes . '">';
echo mfn_content_portfolio($portfolio_query);
echo '</ul>';
echo mfn_pagination($portfolio_query);
wp_reset_query();
?>
							
Пример #18
0
<?php

/**
 * The Page Sidebar containing the widget area.
 *
 * @package Pindol
 * @author Muffin group
 * @link http://muffingroup.com
 */
$sidebars = mfn_opts_get('sidebars');
$sidebar = get_post_meta($post->ID, 'mfn-post-sidebar', true);
$sidebar = $sidebars[$sidebar];
?>


<div class="four columns widget-area">
	<?php 
if (!dynamic_sidebar($sidebar)) {
    mfn_nosidebar();
}
?>
</div>
Пример #19
0
 /**
  * GET Fields | Item
  * 
  * If param $item is empty return items list
  *
  * @param string $item Item name
  * @return array
  */
 function mfn_get_fields_item($item = false)
 {
     $items = array('placeholder' => array('type' => 'placeholder', 'title' => __('- Placeholder', 'mfn-opts'), 'size' => '1/4', 'cat' => 'other', 'fields' => array(array('id' => 'info', 'type' => 'info', 'desc' => __('This is Muffin Builder Placeholder.', 'nhp-opts')))), 'accordion' => array('type' => 'accordion', 'title' => __('Accordion', 'mfn-opts'), 'size' => '1/4', 'cat' => 'blocks', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'tabs', 'type' => 'tabs', 'title' => __('Accordion', 'mfn-opts'), 'sub_desc' => __('Manage accordion tabs.', 'mfn-opts'), 'desc' => __('You can use Drag & Drop to set the order.', 'mfn-opts')), array('id' => 'open1st', 'type' => 'select', 'title' => __('Open First', 'mfn-opts'), 'desc' => __('Open first tab at start.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'openAll', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open All', 'mfn-opts'), 'desc' => __('Open all tabs at start', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'options' => array('accordion' => 'Accordion', 'toggle' => 'Toggle')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'article_box' => array('type' => 'article_box', 'title' => __('Article box', 'mfn-opts'), 'size' => '1/3', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts'), 'sub_desc' => __('Featured Image', 'mfn-opts')), array('id' => 'slogan', 'type' => 'text', 'title' => __('Slogan', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'blockquote' => array('type' => 'blockquote', 'title' => __('Blockquote', 'mfn-opts'), 'size' => '1/4', 'cat' => 'typography', 'fields' => array(array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'sub_desc' => __('Blockquote content.', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts')), array('id' => 'author', 'type' => 'text', 'title' => __('Author', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts'), 'sub_desc' => __('Link to company page.', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'sub_desc' => __('Open link in a new window.', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'blog' => array('type' => 'blog', 'title' => __('Blog', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'sub_desc' => __('Number of posts to show', 'mfn-opts'), 'std' => '2', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('category'), 'sub_desc' => __('Select posts category', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'title' => 'Style', 'options' => array('classic' => 'Classic', 'masonry' => 'Masonry Blog Style', 'masonry tiles' => 'Masonry Tiles', 'photo' => 'Photo (Horizontal Images)', 'timeline' => 'Timeline'), 'std' => 'classic'), array('id' => 'columns', 'type' => 'select', 'title' => __('Columns', 'mfn-opts'), 'desc' => __('Default: 3. Recommended: 2-4. Too large value may crash the layout.<br />This option works in style: <b>Masonry</b>', 'mfn-opts'), 'options' => array(2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'std' => 3), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'more', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show | Read More link', 'mfn-opts'), 'std' => 1), array('id' => 'filters', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show | Filters', 'mfn-opts'), 'desc' => __('This option works in <b>Category: All</b> and <b>Style: Masonry</b>', 'mfn-opts')), array('id' => 'pagination', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show | Pagination', 'mfn-opts'), 'desc' => __('<strong>Notice:</strong> Pagination will <strong>not</strong> work if you put item on Homepage of WordPress Multilangual Site.', 'mfn-opts')), array('id' => 'load_more', 'type' => 'select', 'title' => __('Show | Load More button', 'mfn-opts'), 'sub_desc' => __('Show Ajax Load More button', 'mfn-opts'), 'desc' => __('This will replace all sliders on list with featured images. Please also <b>show Pagination</b>', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'blog_news' => array('type' => 'blog_news', 'title' => __('Blog News', 'mfn-opts'), 'size' => '1/4', 'cat' => 'loops', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'sub_desc' => __('Number of posts to show', 'mfn-opts'), 'desc' => __('We <strong>do not</strong> recommend use more than 10 items, because site will be working slowly.', 'mfn-opts'), 'std' => '5', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('category'), 'sub_desc' => __('Select posts category', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Button Link', 'mfn-opts')), array('id' => 'link_title', 'type' => 'text', 'title' => __('Button Title', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'blog_slider' => array('type' => 'blog_slider', 'title' => __('Blog Slider', 'mfn-opts'), 'size' => '1/4', 'cat' => 'loops', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'sub_desc' => __('Number of posts to show', 'mfn-opts'), 'desc' => __('We <strong>do not</strong> recommend use more than 10 items, because site will be working slowly.', 'mfn-opts'), 'std' => '5', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('category'), 'sub_desc' => __('Select posts category', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'more', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show Read More button', 'mfn-opts'), 'std' => 1), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'options' => array('' => 'Default', 'flat' => 'Flat')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'call_to_action' => array('type' => 'call_to_action', 'title' => __('Call to Action', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'button_title', 'type' => 'text', 'title' => __('Button Title', 'mfn-opts'), 'desc' => __('Leave this field blank if you want Call to Action with Big Icon', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'class', 'type' => 'text', 'title' => __('Class', 'mfn-opts'), 'desc' => __('This option is useful when you want to use PrettyPhoto (prettyphoto)', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'chart' => array('type' => 'chart', 'title' => __('Chart', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'percent', 'type' => 'text', 'title' => __('Percent', 'mfn-opts'), 'desc' => __('Number between 0-100', 'mfn-opts')), array('id' => 'label', 'type' => 'text', 'title' => __('Chart Label', 'mfn-opts')), array('id' => 'icon', 'type' => 'icon', 'title' => __('Chart Icon', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'image', 'type' => 'upload', 'title' => __('Chart Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'clients' => array('type' => 'clients', 'title' => __('Clients', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'in_row', 'type' => 'text', 'title' => __('Items in Row', 'mfn-opts'), 'sub_desc' => __('Number of items in row', 'mfn-opts'), 'desc' => __('Recommended number: 3-6', 'mfn-opts'), 'std' => 6, 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('client-types'), 'sub_desc' => __('Select the client post category.', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title', 'rand' => 'Random'), 'std' => 'menu_order'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'ASC'), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'options' => array('' => 'Default', 'tiles' => 'Tiles')), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'clients_slider' => array('type' => 'clients_slider', 'title' => __('Clients Slider', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('client-types'), 'sub_desc' => __('Select the client post category.', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title', 'rand' => 'Random'), 'std' => 'menu_order'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'ASC'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'code' => array('type' => 'code', 'title' => __('Code', 'mfn-opts'), 'size' => '1/4', 'cat' => 'other', 'fields' => array(array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'class' => 'full-width'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'column' => array('type' => 'column', 'title' => __('Column', 'mfn-opts'), 'size' => '1/4', 'cat' => 'typography', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'desc' => __('This field is used as an Item Label in admin panel only', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Shortcodes and HTML tags allowed.', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'align', 'type' => 'select', 'title' => __('Text Align', 'mfn-opts'), 'options' => array('' => 'None', 'left' => 'Left', 'right' => 'Right', 'center' => 'Center', 'justify' => 'Justify')), array('id' => 'column_bg', 'type' => 'text', 'title' => __('Background', 'mfn-opts'), 'desc' => __('Use color name ( gray ) or hex ( #808080 )', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'margin_bottom', 'type' => 'select', 'title' => __('Margin | Bottom', 'mfn-opts'), 'desc' => __('<b>Overrides</b> section settings', 'mfn-opts'), 'options' => array('' => '-- Default --', '0px' => '0px', '10px' => '10px', '20px' => '20px', '30px' => '30px', '40px' => '40px', '50px' => '50px')), array('id' => 'padding', 'type' => 'text', 'title' => __('Padding', 'mfn-opts'), 'desc' => __('Use value with <b>px</b> or <b>%</b>. Example: <b>20px</b> or <b>20px 10px 20px 10px</b> or <b>20px 1%</b>', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'contact_box' => array('type' => 'contact_box', 'title' => __('Contact Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'address', 'type' => 'textarea', 'title' => __('Address', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts')), array('id' => 'telephone', 'type' => 'text', 'title' => __('Phone', 'mfn-opts'), 'desc' => __('Phone number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'telephone_2', 'type' => 'text', 'title' => __('Phone 2nd', 'mfn-opts'), 'desc' => __('Additional Phone number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'fax', 'type' => 'text', 'title' => __('Fax', 'mfn-opts'), 'desc' => __('Fax number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'email', 'type' => 'text', 'title' => __('Email', 'mfn-opts')), array('id' => 'www', 'type' => 'text', 'title' => __('WWW', 'mfn-opts')), array('id' => 'image', 'type' => 'upload', 'title' => __('Background Image', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'content' => array('type' => 'content', 'title' => __('Content WP', 'mfn-opts'), 'size' => '1/4', 'cat' => 'typography', 'fields' => array(array('id' => 'info', 'type' => 'info', 'desc' => __('Adding this Item will show Content from WordPress Editor above Page Options. You can use it only once per page. Please also remember to turn on "Hide The Content" option.', 'nhp-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'countdown' => array('type' => 'countdown', 'title' => __('Countdown', 'mfn-opts'), 'size' => '1/1', 'cat' => 'boxes', 'fields' => array(array('id' => 'date', 'type' => 'text', 'title' => __('Lunch Date', 'mfn-opts'), 'desc' => __('Format: 12/30/2014 12:00:00 month/day/year hour:minute:second', 'mfn-opts'), 'std' => '12/30/2014 12:00:00', 'class' => 'small-text'), array('id' => 'timezone', 'type' => 'select', 'title' => __('UTC Timezone', 'mfn-opts'), 'options' => mfna_utc(), 'std' => '0'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'counter' => array('type' => 'counter', 'title' => __('Counter', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'std' => ' icon-lamp', 'class' => 'small-text'), array('id' => 'color', 'type' => 'text', 'title' => __('Icon Color', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 )', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts'), 'desc' => __('If you upload an image, icon will not show', 'mfn-opts')), array('id' => 'number', 'type' => 'text', 'title' => __('Number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'prefix', 'type' => 'text', 'title' => __('Prefix', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'label', 'type' => 'text', 'title' => __('Postfix', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'type', 'type' => 'select', 'options' => array('horizontal' => 'Horizontal', 'vertical' => 'Vertical'), 'title' => __('Style', 'mfn-opts'), 'desc' => __('Vertical style works only for column widths: 1/4, 1/3 & 1/2', 'mfn-opts'), 'std' => 'vertical'), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'divider' => array('type' => 'divider', 'title' => __('Divider', 'mfn-opts'), 'size' => '1/1', 'cat' => 'other', 'fields' => array(array('id' => 'height', 'type' => 'text', 'title' => __('Divider height', 'mfn-opts'), 'desc' => __('px', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'style', 'type' => 'select', 'options' => array('default' => 'Default', 'dots' => 'Dots', 'zigzag' => 'ZigZag'), 'title' => __('Style', 'mfn-opts')), array('id' => 'line', 'type' => 'select', 'options' => array('default' => 'Default', 'narrow' => 'Narrow', 'wide' => 'Wide', '' => 'No Line'), 'title' => __('Line', 'mfn-opts'), 'desc' => __('This option can be used <strong>only</strong> with Style: Default.', 'mfn-opts')), array('id' => 'themecolor', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Theme Color', 'mfn-opts'), 'desc' => __('This option can be used <strong>only</strong> with Style: Default.', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'fancy_divider' => array('type' => 'fancy_divider', 'title' => __('Fancy Divider', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'info', 'type' => 'info', 'desc' => __('This item can only be used on pages <strong>Without Sidebar</strong>', 'nhp-opts')), array('id' => 'style', 'type' => 'select', 'options' => array('circle up' => 'Circle Up', 'circle down' => 'Circle Down', 'curve up' => 'Curve Up', 'curve down' => 'Curve Down', 'stamp' => 'Stamp', 'triangle up' => 'Triangle Up', 'triangle down' => 'Triangle Down'), 'title' => __('Style', 'mfn-opts')), array('id' => 'color_top', 'type' => 'text', 'title' => __('Color Top', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 )', 'mfn-opts'), 'class' => 'small-text', 'std' => ''), array('id' => 'color_bottom', 'type' => 'text', 'title' => __('Color Bottom', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 )', 'mfn-opts'), 'class' => 'small-text', 'std' => ''), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'fancy_heading' => array('type' => 'fancy_heading', 'title' => __('Fancy Heading', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'h1', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Use H1 tag', 'mfn-opts'), 'desc' => __('Wrap title into H1 instead of H2', 'mfn-opts')), array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'sub_desc' => __('Icon Style only', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'slogan', 'type' => 'text', 'title' => __('Slogan', 'mfn-opts'), 'sub_desc' => __('Line Style only', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'style', 'type' => 'select', 'options' => array('icon' => 'Icon', 'line' => 'Line', 'arrows' => 'Arrows'), 'title' => __('Style', 'mfn-opts'), 'desc' => __('Some fields above work on selected styles.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'faq' => array('type' => 'faq', 'title' => __('FAQ', 'mfn-opts'), 'size' => '1/4', 'cat' => 'blocks', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'tabs', 'type' => 'tabs', 'title' => __('FAQ', 'mfn-opts'), 'sub_desc' => __('Manage FAQ tabs.', 'mfn-opts'), 'desc' => __('You can use Drag & Drop to set the order', 'mfn-opts')), array('id' => 'open1st', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open First', 'mfn-opts'), 'desc' => __('Open first tab at start', 'mfn-opts')), array('id' => 'openAll', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open All', 'mfn-opts'), 'desc' => __('Open all tabs at start', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'feature_list' => array('type' => 'feature_list', 'title' => __('Feature List', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'desc' => __('This field is used as an Item Label in admin panel only', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Please use <strong>[item icon="" title="" link="" target=""]</strong> shortcodes.', 'mfn-opts'), 'std' => '[item icon="icon-lamp" title="" link="" target="" animate=""]'), array('id' => 'columns', 'type' => 'select', 'title' => __('Columns', 'mfn-opts'), 'desc' => __('Default: 4. Recommended: 2-4. Too large value may crash the layout.', 'mfn-opts'), 'options' => array(2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'std' => 4), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'flat_box' => array('type' => 'flat_box', 'title' => __('Flat Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'std' => 'icon-lamp', 'class' => 'small-text'), array('id' => 'background', 'type' => 'text', 'title' => __('Icon background', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 ). Leave this field blank to use Theme Background', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'hover_box' => array('type' => 'hover_box', 'title' => __('Hover Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'image_hover', 'type' => 'upload', 'title' => __('Image | Hover', 'mfn-opts'), 'desc' => __('Both images <b>must have the same size</b>', 'mfn-opts')), array('id' => 'alt', 'type' => 'text', 'title' => __('Image | Alt', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Link | Target', 'mfn-opts'), 'options' => array(0 => 'Default | _self', 1 => 'New Tab or Window | _blank', 'prettyphoto' => 'prettyPhoto (images and embed video)')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'hover_color' => array('type' => 'hover_color', 'title' => __('Hover Color', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'background', 'type' => 'text', 'title' => __('Background color', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 )', 'mfn-opts'), 'class' => 'small-text', 'std' => '#2991D6'), array('id' => 'background_hover', 'type' => 'text', 'title' => __('Hover Background color', 'mfn-opts'), 'desc' => __('Use color name ( blue ) or hex ( #2991D6 )', 'mfn-opts'), 'class' => 'small-text', 'std' => '#2991D6'), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'class', 'type' => 'text', 'title' => __('Link | Class', 'mfn-opts'), 'desc' => __('This option is useful when you want to use PrettyPhoto (prettyphoto)', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'how_it_works' => array('type' => 'how_it_works', 'title' => __('How It Works', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Background Image', 'mfn-opts'), 'desc' => __('Recommended: Square Image with transparent background.', 'mfn-opts')), array('id' => 'number', 'type' => 'text', 'title' => __('Number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'border', 'type' => 'select', 'title' => __('Line', 'mfn-opts'), 'sub_desc' => __('Show right connecting line', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'icon_box' => array('type' => 'icon_box', 'title' => __('Icon Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'std' => 'icon-lamp', 'class' => 'small-text'), array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'icon_position', 'type' => 'select', 'options' => array('left' => 'Left', 'top' => 'Top'), 'title' => __('Icon Position', 'mfn-opts'), 'desc' => __('Left position works only for column widths: 1/4, 1/3 & 1/2', 'mfn-opts'), 'std' => 'top'), array('id' => 'border', 'type' => 'select', 'title' => __('Border', 'mfn-opts'), 'sub_desc' => __('Show right border', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'class', 'type' => 'text', 'title' => __('Custom CSS classes for link', 'mfn-opts'), 'desc' => __('This option is useful when you want to use PrettyPhoto (prettyphoto) or Scroll (scroll).', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'image' => array('type' => 'image', 'title' => __('Image', 'mfn-opts'), 'size' => '1/4', 'cat' => 'typography', 'fields' => array(array('id' => 'src', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'width', 'type' => 'text', 'title' => __('Image Width', 'mfn-opts'), 'desc' => __('px<br />optional', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'height', 'type' => 'text', 'title' => __('Image Height', 'mfn-opts'), 'desc' => __('px<br />optional', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'border', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Border', 'mfn-opts'), 'sub_desc' => __('Show Image Border', 'mfn-opts')), array('id' => 'align', 'type' => 'select', 'title' => __('Align', 'mfn-opts'), 'desc' => __('If you want image to be <b>resized</b> to column width use <b>align none</b>', 'mfn-opts'), 'options' => array('' => 'None', 'left' => 'Left', 'right' => 'Right', 'center' => 'Center')), array('id' => 'margin', 'type' => 'text', 'title' => __('Margin Top', 'mfn-opts'), 'desc' => __('px', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'alt', 'type' => 'text', 'title' => __('Alternate Text', 'mfn-opts')), array('id' => 'caption', 'type' => 'text', 'title' => __('Caption', 'mfn-opts')), array('id' => 'link_image', 'type' => 'upload', 'title' => __('Zoomed image', 'mfn-opts'), 'desc' => __('This image will be opened in lightbox.', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts'), 'desc' => __('This link will work only if you leave the above "Zoomed image" field empty.', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'desc' => 'Works only for images with link', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'info_box' => array('type' => 'info_box', 'title' => __('Info Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts'), 'std' => '<ul><li>list item 1</li><li>list item 2</li></ul>'), array('id' => 'image', 'type' => 'upload', 'title' => __('Background Image', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'list' => array('type' => 'list', 'title' => __('List', 'mfn-opts'), 'size' => '1/4', 'cat' => 'blocks', 'fields' => array(array('id' => 'icon', 'type' => 'icon', 'title' => __('Icon', 'mfn-opts'), 'std' => ' icon-lamp', 'class' => 'small-text'), array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'desc' => __('Only <strong>Vertical Style</strong> works for column widths 1/5 & 1/6', 'mfn-opts'), 'options' => array(1 => 'With background', 2 => 'Transparent', 3 => 'Vertical', 4 => 'Ordered list')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'map' => array('type' => 'map', 'title' => __('Map', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'lat', 'type' => 'text', 'title' => __('Google Maps Lat', 'mfn-opts'), 'class' => 'small-text', 'desc' => __('The map will appear only if this field is filled correctly.<br />Example: <b>-33.87</b>', 'mfn-opts')), array('id' => 'lng', 'type' => 'text', 'title' => __('Google Maps Lng', 'mfn-opts'), 'class' => 'small-text', 'desc' => __('The map will appear only if this field is filled correctly.<br />Example: <b>151.21</b>', 'mfn-opts')), array('id' => 'zoom', 'type' => 'text', 'title' => __('Zoom', 'mfn-opts'), 'class' => 'small-text', 'std' => 13), array('id' => 'height', 'type' => 'text', 'title' => __('Height', 'mfn-opts'), 'class' => 'small-text', 'std' => 200), array('id' => 'type', 'type' => 'select', 'title' => __('Type', 'mfn-opts'), 'options' => array('ROADMAP' => __('Map', 'mfn-opts'), 'SATELLITE' => __('Satellite', 'mfn-opts'), 'HYBRID' => __('Satellite + Map', 'mfn-opts'), 'TERRAIN' => __('Terrain', 'mfn-opts'))), array('id' => 'controls', 'type' => 'select', 'title' => __('Controls', 'mfn-opts'), 'options' => array('' => __('Zoom', 'mfn-opts'), 'mapType' => __('Map Type', 'mfn-opts'), 'streetView' => __('Street View', 'mfn-opts'), 'zoom mapType' => __('Zoom & Map Type', 'mfn-opts'), 'zoom streetView' => __('Zoom & Street View', 'mfn-opts'), 'mapType streetView' => __('Map Type & Street View', 'mfn-opts'), 'zoom mapType streetView' => __('Zoom, Map Type & Street View', 'mfn-opts'), 'hide' => __('Hide All', 'mfn-opts'))), array('id' => 'draggable', 'type' => 'select', 'title' => __('Draggable', 'mfn-opts'), 'options' => array('' => __('Enable', 'mfn-opts'), 'disable' => __('Disable', 'mfn-opts'), 'disable-mobile' => __('Disable on Mobile', 'mfn-opts'))), array('id' => 'border', 'type' => 'select', 'title' => __('Border', 'mfn-opts'), 'sub_desc' => __('Show map border', 'mfn-opts'), 'options' => array(0 => __('No', 'mfn-opts'), 1 => __('Yes', 'mfn-opts'))), array('id' => 'icon', 'type' => 'upload', 'title' => __('Marker Icon', 'mfn-opts'), 'desc' => __('.png', 'mfn-opts')), array('id' => 'styles', 'type' => 'textarea', 'title' => __('Styles', 'mfn-opts'), 'sub_desc' => __('Google Maps API styles array', 'mfn-opts'), 'desc' => __('You can get predefined styles from <a target="_blank" href="http://snazzymaps.com/">snazzymaps.com</a> or generate your own <a target="_blank" href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html">here</a>', 'mfn-opts')), array('id' => 'latlng', 'type' => 'textarea', 'title' => __('Additional Markers | Lat,Lng,IconURL', 'mfn-opts'), 'desc' => __('Separate Lat,Lang,IconURL[optional] with <b>coma</b> [ , ]<br />Separate multiple Markers with <b>semicolon</b> [ ; ]<br />Example: <b>-33.88,151.21,ICON_URL;-33.89,151.22</b>', 'mfn-opts')), array('id' => 'info', 'type' => 'info', 'desc' => __('<strong>Contact Box</strong> | Works only in Full Width', 'nhp-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Box | Title', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'content', 'type' => 'textarea', 'title' => __('Box | Address', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts')), array('id' => 'telephone', 'type' => 'text', 'title' => __('Box | Telephone', 'mfn-opts')), array('id' => 'email', 'type' => 'text', 'title' => __('Box | Email', 'mfn-opts')), array('id' => 'www', 'type' => 'text', 'title' => __('Box | WWW', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'offer' => array('type' => 'offer', 'title' => __('Offer Slider Full', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'info', 'type' => 'info', 'desc' => __('This item can only be used on pages <strong>Without Sidebar</strong>.<br />Please also set Section Style to <strong>Full Width</strong> and use one Item in one Section.', 'nhp-opts')), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('offer-types'), 'sub_desc' => __('Select the offer post category.', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'offer_thumb' => array('type' => 'offer_thumb', 'title' => __('Offer Slider Thumb', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'info', 'type' => 'info', 'desc' => __('This item can only be used <strong>once per page</strong>.', 'nhp-opts')), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('offer-types'), 'sub_desc' => __('Select the offer post category.', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'options' => array('' => 'Thumbnails on the left', 'bottom' => 'Thumbnails at the bottom'), 'title' => __('Style', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'opening_hours' => array('type' => 'opening_hours', 'title' => __('Opening Hours', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts'), 'std' => '<ul><li><label>Monday - Saturday</label><span>8am - 4pm</span></li></ul>'), array('id' => 'image', 'type' => 'upload', 'title' => __('Background Image', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'our_team' => array('type' => 'our_team', 'title' => __('Our Team', 'mfn-opts'), 'size' => '1/4', 'cat' => 'elements', 'fields' => array(array('id' => 'heading', 'type' => 'text', 'title' => __('Heading', 'mfn-opts')), array('id' => 'image', 'type' => 'upload', 'title' => __('Photo', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'sub_desc' => __('Will also be used as the image alternative text', 'mfn-opts')), array('id' => 'subtitle', 'type' => 'text', 'title' => __('Subtitle', 'mfn-opts')), array('id' => 'phone', 'type' => 'text', 'title' => __('Phone', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'email', 'type' => 'text', 'title' => __('E-mail', 'mfn-opts')), array('id' => 'facebook', 'type' => 'text', 'title' => __('Facebook', 'mfn-opts')), array('id' => 'twitter', 'type' => 'text', 'title' => __('Twitter', 'mfn-opts')), array('id' => 'linkedin', 'type' => 'text', 'title' => __('LinkedIn', 'mfn-opts')), array('id' => 'vcard', 'type' => 'text', 'title' => __('vCard', 'mfn-opts')), array('id' => 'blockquote', 'type' => 'textarea', 'title' => __('Blockquote', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'options' => array('circle' => 'Circle', 'vertical' => 'Vertical', 'horizontal' => 'Horizontal 	[only: 1/2]'), 'title' => __('Style', 'mfn-opts'), 'std' => 'vertical'), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'our_team_list' => array('type' => 'our_team_list', 'title' => __('Our Team List', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Photo', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'sub_desc' => __('Will also be used as the image alternative text', 'mfn-opts')), array('id' => 'subtitle', 'type' => 'text', 'title' => __('Subtitle', 'mfn-opts')), array('id' => 'phone', 'type' => 'text', 'title' => __('Phone', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'blockquote', 'type' => 'textarea', 'title' => __('Blockquote', 'mfn-opts')), array('id' => 'email', 'type' => 'text', 'title' => __('E-mail', 'mfn-opts')), array('id' => 'facebook', 'type' => 'text', 'title' => __('Facebook', 'mfn-opts')), array('id' => 'twitter', 'type' => 'text', 'title' => __('Twitter', 'mfn-opts')), array('id' => 'linkedin', 'type' => 'text', 'title' => __('LinkedIn', 'mfn-opts')), array('id' => 'vcard', 'type' => 'text', 'title' => __('vCard', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'photo_box' => array('type' => 'photo_box', 'title' => __('Photo Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'align', 'type' => 'select', 'title' => 'Text Align', 'options' => array('' => 'Center', 'left' => 'Left', 'right' => 'Right')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'desc' => 'Works only for images with link', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'portfolio' => array('type' => 'portfolio', 'title' => __('Portfolio', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'std' => '2', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('portfolio-types'), 'sub_desc' => __('Select the portfolio post category.', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'title' => 'Style', 'options' => array('flat' => 'Flat', 'grid' => 'Grid', 'masonry' => 'Masonry Blog Style', 'masonry-hover' => 'Masonry Hover Description', 'list' => 'List', 'masonry-flat' => 'Masonry Flat'), 'std' => 'grid'), array('id' => 'columns', 'type' => 'select', 'title' => __('Columns', 'mfn-opts'), 'desc' => __('Default: 3. Recommended: 2-4. Too large value may crash the layout.<br />This option works in styles: <b>Flat, Grid, Masonry Blog Style, Masonry Hover Details</b>', 'mfn-opts'), 'options' => array(2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6), 'std' => 3), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title', 'rand' => 'Random'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'filters', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show | Filters', 'mfn-opts'), 'desc' => __('Works only with <b>Category: All</b>', 'mfn-opts')), array('id' => 'pagination', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Show | Pagination', 'mfn-opts'), 'desc' => __('<strong>Notice:</strong> Pagination will <strong>not</strong> work if you put item on Homepage of WordPress Multilangual Site.', 'mfn-opts')), array('id' => 'load_more', 'type' => 'select', 'title' => __('Show | Load More button', 'mfn-opts'), 'sub_desc' => __('Show Ajax Load More button', 'mfn-opts'), 'desc' => __('This will replace all sliders on list with featured images. Please also <b>show Pagination</b>', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'portfolio_grid' => array('type' => 'portfolio_grid', 'title' => __('Portfolio Grid', 'mfn-opts'), 'size' => '1/4', 'cat' => 'loops', 'fields' => array(array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'std' => '4', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('portfolio-types'), 'sub_desc' => __('Select the portfolio post category.', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title', 'rand' => 'Random'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'portfolio_photo' => array('type' => 'portfolio_photo', 'title' => __('Portfolio Photo', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'std' => '5', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('portfolio-types'), 'sub_desc' => __('Select the portfolio post category.', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'greyscale', 'type' => 'select', 'title' => 'Greyscale Images', 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'portfolio_slider' => array('type' => 'portfolio_slider', 'title' => __('Portfolio Slider', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'desc' => __('We <strong>do not</strong> recommend use more than 10 items, because site will be working slowly.', 'mfn-opts'), 'std' => '6', 'class' => 'small-text'), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('portfolio-types'), 'sub_desc' => __('Select the portfolio post category.', 'mfn-opts')), array('id' => 'category_multi', 'type' => 'text', 'title' => __('Multiple Categories', 'mfn-opts'), 'sub_desc' => __('Categories Slugs', 'mfn-opts'), 'desc' => __('Slugs should be separated with <strong>coma</strong> (,).', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'arrows', 'type' => 'select', 'title' => __('Navigation Arrows', 'mfn-opts'), 'sub_desc' => __('Show Navigation Arrows', 'mfn-opts'), 'options' => array('' => 'None', 'hover' => 'Show on hover', 'always' => 'Always show'), 'std' => 'DESC'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'pricing_item' => array('type' => 'pricing_item', 'title' => __('Pricing Item', 'mfn-opts'), 'size' => '1/4', 'cat' => 'blocks', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'sub_desc' => __('Pricing item title', 'mfn-opts')), array('id' => 'price', 'type' => 'text', 'title' => __('Price', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'currency', 'type' => 'text', 'title' => __('Currency', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'currency_pos', 'type' => 'select', 'title' => __('Currency | Position', 'mfn-opts'), 'options' => array('' => 'Left', 'right' => 'Right')), array('id' => 'period', 'type' => 'text', 'title' => __('Period', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'subtitle', 'type' => 'text', 'title' => __('Subtitle', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('HTML tags allowed.', 'mfn-opts'), 'std' => '<ul><li><strong>List</strong> item</li></ul>'), array('id' => 'link_title', 'type' => 'text', 'title' => __('Button Title', 'mfn-opts'), 'desc' => __('Button will appear only if this field will be filled.', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Button Link', 'mfn-opts'), 'desc' => __('Button will appear only if this field will be filled.', 'mfn-opts')), array('id' => 'icon', 'type' => 'icon', 'title' => __('Button Icon', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'featured', 'type' => 'select', 'title' => __('Featured', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'options' => array('box' => 'Box', 'label' => 'Table Label', 'table' => 'Table')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'progress_bars' => array('type' => 'progress_bars', 'title' => __('Progress Bars', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Please use <strong>[bar title="Title" value="50"]</strong> shortcodes here.', 'mfn-opts'), 'std' => '[bar title="Bar1" value="50"]' . "\n" . '[bar title="Bar2" value="60"]'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'promo_box' => array('type' => 'promo_box', 'title' => __('Promo Box', 'mfn-opts'), 'size' => '1/2', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc'), array('id' => 'btn_text', 'type' => 'text', 'title' => __('Button Text', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'btn_link', 'type' => 'text', 'title' => __('Button Link', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'target', 'type' => 'select', 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes')), array('id' => 'position', 'type' => 'select', 'title' => __('Image position', 'mfn-opts'), 'options' => array('left' => 'Left', 'right' => 'Right'), 'std' => 'left'), array('id' => 'border', 'type' => 'select', 'title' => __('Border', 'mfn-opts'), 'sub_desc' => __('Show right border', 'mfn-opts'), 'options' => array(0 => 'No', 1 => 'Yes'), 'std' => 'no_border'), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'quick_fact' => array('type' => 'quick_fact', 'title' => __('Quick Fact', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'heading', 'type' => 'text', 'title' => __('Heading', 'mfn-opts')), array('id' => 'number', 'type' => 'text', 'title' => __('Number', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'prefix', 'type' => 'text', 'title' => __('Prefix', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'label', 'type' => 'text', 'title' => __('Postfix', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'shop_slider' => array('type' => 'shop_slider', 'title' => __('Shop Slider', 'mfn-opts'), 'size' => '1/4', 'cat' => 'loops', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'count', 'type' => 'text', 'title' => __('Count', 'mfn-opts'), 'sub_desc' => __('Number of posts to show', 'mfn-opts'), 'desc' => __('We <strong>do not</strong> recommend use more than 10 items, because site will be working slowly.', 'mfn-opts'), 'std' => '5', 'class' => 'small-text'), array('id' => 'show', 'type' => 'select', 'title' => __('Show', 'mfn-opts'), 'options' => array('' => 'All (or category selected below)', 'featured' => 'Featured', 'onsale' => 'Onsale', 'best-selling' => 'Best Selling (Order by: Sales)')), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('product_cat'), 'sub_desc' => __('Select the products category', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'sidebar_widget' => array('type' => 'sidebar_widget', 'title' => __('Sidebar Widget', 'mfn-opts'), 'size' => '1/4', 'cat' => 'other', 'fields' => array(array('id' => 'sidebar', 'type' => 'select', 'title' => __('Select Sidebar', 'mfn-opts'), 'desc' => __('1. Create Sidebar in Theme Options > Getting Started > Sidebars.<br />2. Add Widget.<br />3. Select your sidebar.', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'slider' => array('type' => 'slider', 'title' => __('Slider', 'mfn-opts'), 'size' => '1/1', 'cat' => 'blocks', 'fields' => array(array('id' => 'style', 'type' => 'select', 'options' => array('' => 'Default', 'description' => 'Description', 'flat' => 'Flat', 'carousel' => 'Carousel'), 'title' => __('Style', 'mfn-opts')), array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('slide-types'), 'sub_desc' => __('Select the slides category', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'slider_plugin' => array('type' => 'slider_plugin', 'title' => __('Slider Plugin', 'mfn-opts'), 'size' => '1/4', 'cat' => 'other', 'fields' => array(array('id' => 'rev', 'type' => 'select', 'title' => __('Slider | Revolution Slider', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=revslider">Revolution Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders()), array('id' => 'layer', 'type' => 'select', 'title' => __('Slider | Layer Slider', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=layerslider">Layer Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders_layer()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'sliding_box' => array('type' => 'sliding_box', 'title' => __('Sliding Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'story_box' => array('type' => 'story_box', 'title' => __('Story Box', 'mfn-opts'), 'size' => '1/2', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'style', 'type' => 'select', 'options' => array('' => 'Horizontal Image', 'flat' => 'Flat'), 'title' => __('Style', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('Some Shortcodes and HTML tags allowed', 'mfn-opts'), 'class' => 'full-width sc', 'validate' => 'html'), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'tabs' => array('type' => 'tabs', 'title' => __('Tabs', 'mfn-opts'), 'size' => '1/4', 'cat' => 'blocks', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'tabs', 'type' => 'tabs', 'title' => __('Tabs', 'mfn-opts'), 'sub_desc' => __('To add an <strong>icon</strong> in Title field, please use the following code:<br/><br/>&lt;i class=" icon-lamp"&gt;&lt;/i&gt; Tab Title', 'mfn-opts'), 'desc' => __('You can use Drag & Drop to set the order.', 'mfn-opts')), array('id' => 'type', 'type' => 'select', 'options' => array('horizontal' => 'Horizontal', 'centered' => 'Horizontal (centered tab)', 'vertical' => 'Vertical'), 'title' => __('Style', 'mfn-opts'), 'desc' => __('Vertical tabs works only for column widths: 1/2, 3/4 & 1/1', 'mfn-opts')), array('id' => 'uid', 'type' => 'text', 'title' => __('Unique ID [optional]', 'mfn-opts'), 'sub_desc' => __('Allowed characters: "a-z" "-" "_"', 'mfn-opts'), 'desc' => __('Use this option if you want to open specified tab from link.<br />For example: Your Unique ID is <strong>offer</strong> and you want to open 2nd tab, please use link: <strong>your-url/#offer-2</strong>', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'testimonials' => array('type' => 'testimonials', 'title' => __('Testimonials', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('testimonial-types'), 'sub_desc' => __('Select the testimonial post category.', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'style', 'type' => 'select', 'title' => __('Style', 'mfn-opts'), 'options' => array('' => __('Default', 'mfn-opts'), 'single-photo' => __('Single Photo', 'mfn-opts'))), array('id' => 'hide_photos', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Hide Photos', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'testimonials_list' => array('type' => 'testimonials_list', 'title' => __('Testimonials List', 'mfn-opts'), 'size' => '1/1', 'cat' => 'loops', 'fields' => array(array('id' => 'category', 'type' => 'select', 'title' => __('Category', 'mfn-opts'), 'options' => mfn_get_categories('testimonial-types'), 'sub_desc' => __('Select the testimonial post category.', 'mfn-opts')), array('id' => 'orderby', 'type' => 'select', 'title' => __('Order by', 'mfn-opts'), 'options' => array('date' => 'Date', 'menu_order' => 'Menu order', 'title' => 'Title'), 'std' => 'date'), array('id' => 'order', 'type' => 'select', 'title' => __('Order', 'mfn-opts'), 'options' => array('ASC' => 'Ascending', 'DESC' => 'Descending'), 'std' => 'DESC'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'timeline' => array('type' => 'timeline', 'title' => __('Timeline', 'mfn-opts'), 'size' => '1/1', 'cat' => 'elements', 'fields' => array(array('id' => 'tabs', 'type' => 'tabs', 'title' => __('Timeline', 'mfn-opts'), 'sub_desc' => __('Please add <strong>date</strong> wrapped into <strong>span</strong> tag in Title field.<br/><br/>&lt;span&gt;2013&lt;/span&gt;Event Title', 'mfn-opts'), 'desc' => __('You can use Drag & Drop to set the order.', 'mfn-opts')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'trailer_box' => array('type' => 'trailer_box', 'title' => __('Trailer Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'slogan', 'type' => 'text', 'title' => __('Slogan', 'mfn-opts')), array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts')), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'options' => array(0 => 'No', 1 => 'Yes'), 'title' => __('Open in new window', 'mfn-opts'), 'desc' => __('Adds a target="_blank" attribute to the link.', 'mfn-opts')), array('id' => 'animate', 'type' => 'select', 'title' => __('Animation', 'mfn-opts'), 'desc' => __('<b>Notice:</b> In some versions of Safari browser Hover works only if you select: <b>Not Animated</b> or <b>Fade In</b>', 'mfn-opts'), 'sub_desc' => __('Entrance animation', 'mfn-opts'), 'options' => mfn_get_animations()), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'video' => array('type' => 'video', 'title' => __('Video', 'mfn-opts'), 'size' => '1/4', 'fields' => array(array('id' => 'video', 'type' => 'text', 'title' => __('YouTube or Vimeo | Video ID', 'mfn-opts'), 'sub_desc' => __('YouTube or Vimeo', 'mfn-opts'), 'desc' => __('It`s placed in every YouTube & Vimeo video, for example:<br /><b>YouTube:</b> http://www.youtube.com/watch?v=<u>WoJhnRczeNg</u><br /><b>Vimeo:</b> http://vimeo.com/<u>62954028</u>', 'mfn-opts'), 'class' => 'small-text'), array('id' => 'parameters', 'type' => 'text', 'title' => __('YouTube or Vimeo | Parameters', 'mfn-opts'), 'sub_desc' => __('YouTube or Vimeo', 'mfn-opts'), 'desc' => __('Multiple parameters should be connected with "&"<br />For example: <b>autoplay=1&loop=1</b>', 'mfn-opts')), array('id' => 'mp4', 'type' => 'upload', 'title' => __('HTML5 | MP4 video', 'mfn-opts'), 'sub_desc' => __('m4v [.mp4]', 'mfn-opts'), 'desc' => __('Please add both mp4 and ogv for cross-browser compatibility.', 'mfn-opts'), 'class' => __('video', 'mfn-opts')), array('id' => 'ogv', 'type' => 'upload', 'title' => __('HTML5 | OGV video', 'mfn-opts'), 'sub_desc' => __('ogg [.ogv]', 'mfn-opts'), 'class' => __('video', 'mfn-opts')), array('id' => 'placeholder', 'type' => 'upload', 'title' => __('HTML5 | Placeholder image', 'mfn-opts'), 'desc' => __('Placeholder Image will be used as video placeholder before video loads and on mobile devices.', 'mfn-opts')), array('id' => 'html5_parameters', 'type' => 'select', 'title' => __('HTML5 | Parameters', 'mfn-opts'), 'options' => array('' => 'autoplay controls loop muted', 'a;c;l;' => 'autoplay controls loop', 'a;c;;m' => 'autoplay controls muted', 'a;;l;m' => 'autoplay loop muted', 'a;c;;' => 'autoplay controls', 'a;;l;' => 'autoplay loop', 'a;;;m' => 'autoplay muted', 'a;;;' => 'autoplay', ';c;l;m' => 'controls loop muted', ';c;l;' => 'controls loop', ';c;;m' => 'controls muted', ';c;;' => 'controls')), array('id' => 'width', 'type' => 'text', 'title' => __('Width', 'mfn-opts'), 'desc' => __('px', 'mfn-opts'), 'class' => 'small-text', 'std' => 700), array('id' => 'height', 'type' => 'text', 'title' => __('Height', 'mfn-opts'), 'desc' => __('px', 'mfn-opts'), 'class' => 'small-text', 'std' => 400), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'visual' => array('type' => 'visual', 'title' => __('Visual Editor', 'mfn-opts'), 'size' => '1/4', 'cat' => 'other', 'fields' => array(array('id' => 'title', 'type' => 'text', 'title' => __('Title', 'mfn-opts'), 'desc' => __('This field is used as an Item Label in admin panel only', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Visual Editor', 'mfn-opts'), 'param' => 'editor', 'validate' => 'html'), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))), 'zoom_box' => array('type' => 'zoom_box', 'title' => __('Zoom Box', 'mfn-opts'), 'size' => '1/4', 'cat' => 'boxes', 'fields' => array(array('id' => 'image', 'type' => 'upload', 'title' => __('Image', 'mfn-opts')), array('id' => 'bg_color', 'type' => 'text', 'title' => __('Overlay background', 'mfn-opts'), 'desc' => __('Use color HEX (ie. "#000000").', 'mfn-opts'), 'class' => 'small-text', 'std' => '#000000'), array('id' => 'content_image', 'type' => 'upload', 'title' => __('Content Image', 'mfn-opts')), array('id' => 'content', 'type' => 'textarea', 'title' => __('Content', 'mfn-opts'), 'desc' => __('HTML tags allowed', 'mfn-opts'), 'class' => 'full-width'), array('id' => 'link', 'type' => 'text', 'title' => __('Link', 'mfn-opts')), array('id' => 'target', 'type' => 'select', 'title' => __('Link | Target', 'mfn-opts'), 'options' => array(0 => 'Default | _self', 1 => 'New Tab or Window | _blank', 'prettyphoto' => 'prettyPhoto (images and embed video)')), array('id' => 'classes', 'type' => 'text', 'title' => __('Custom | Classes', 'mfn-opts'), 'sub_desc' => __('Custom CSS Item Classes Names', 'mfn-opts'), 'desc' => __('Multiple classes should be separated with SPACE', 'mfn-opts')))));
     if ($item) {
         return $items[$item];
     }
     return $items;
 }
Пример #20
0
 function mfn_content_post($query = false, $style = false, $load_more = false)
 {
     global $wp_query;
     $output = '';
     $translate['published'] = mfn_opts_get('translate') ? mfn_opts_get('translate-published', 'Published by') : __('Published by', 'betheme');
     $translate['at'] = mfn_opts_get('translate') ? mfn_opts_get('translate-at', 'at') : __('at', 'betheme');
     $translate['categories'] = mfn_opts_get('translate') ? mfn_opts_get('translate-categories', 'Categories') : __('Categories', 'betheme');
     $translate['like'] = mfn_opts_get('translate') ? mfn_opts_get('translate-like', 'Do you like it?') : __('Do you like it?', 'betheme');
     $translate['readmore'] = mfn_opts_get('translate') ? mfn_opts_get('translate-readmore', 'Read more') : __('Read more', 'betheme');
     if (!$query) {
         $query = $wp_query;
     }
     if (!$style) {
         if ($_GET && key_exists('mfn-b', $_GET)) {
             $style = $_GET['mfn-b'];
             // demo
         } else {
             $style = mfn_opts_get('blog-layout', 'classic');
         }
     }
     if ($query->have_posts()) {
         while ($query->have_posts()) {
             $query->the_post();
             // classes
             $post_class = array('post-item', 'isotope-item', 'clearfix');
             if (!mfn_post_thumbnail(get_the_ID())) {
                 $post_class[] = 'no-img';
             }
             if (post_password_required()) {
                 $post_class[] = 'no-img';
             }
             $post_class[] = 'author-' . mfn_slug(get_the_author_meta('user_login'));
             $post_class = implode(' ', get_post_class($post_class));
             // background color | Style - Masonry Tiles
             $bg_color = get_post_meta(get_the_ID(), 'mfn-post-bg', true);
             if ($bg_color && $style == 'masonry tiles') {
                 $bg_color = 'style="background-color:' . $bg_color . ';"';
             }
             $output .= '<div class="' . $post_class . '" ' . $bg_color . '>';
             // icon | Style == Masonry Tiles
             if ($style == 'masonry tiles') {
                 if (get_post_format() == 'video') {
                     $output .= '<i class="post-format-icon icon-play"></i>';
                 } elseif (get_post_format() == 'quote') {
                     $output .= '<i class="post-format-icon icon-quote"></i>';
                 } elseif (get_post_format() == 'link') {
                     $output .= '<i class="post-format-icon icon-link"></i>';
                 } elseif (get_post_format() == 'audio') {
                     // for future use
                     $output .= '<i class="post-format-icon icon-music-line"></i>';
                 } else {
                     $rev_slider = get_post_meta(get_the_ID(), 'mfn-post-slider', true);
                     $lay_slider = get_post_meta(get_the_ID(), 'mfn-post-slider-layer', true);
                     if ($rev_slider || $lay_slider) {
                         $output .= '<i class="post-format-icon icon-code"></i>';
                     }
                 }
             }
             // date | Style == Timeline
             $output .= '<div class="date_label">' . get_the_date() . '</div>';
             // photo --------------------------------------------------------------------------
             if (!post_password_required()) {
                 if ($style == 'masonry tiles') {
                     // photo | Style != Masonry Tiles
                     $output .= '<div class="post-photo-wrapper scale-with-grid">';
                     $output .= get_the_post_thumbnail(get_the_ID(), 'full', array('class' => 'scale-with-grid', 'itemprop' => 'image'));
                     $output .= '</div>';
                 } else {
                     // photo | Style == *
                     $output .= '<div class="image_frame post-photo-wrapper scale-with-grid">';
                     $output .= '<div class="image_wrapper">';
                     $output .= mfn_post_thumbnail(get_the_ID(), 'blog', $style, $load_more);
                     $output .= '</div>';
                     $output .= '</div>';
                 }
             }
             // desc ---------------------------------------------------------------------------
             $output .= '<div class="post-desc-wrapper">';
             $output .= '<div class="post-desc">';
             // head -------------------------------------
             $output .= '<div class="post-head">';
             // meta -------------------------------------
             if (mfn_opts_get('blog-meta')) {
                 $output .= '<div class="post-meta clearfix">';
                 $output .= '<div class="author-date">';
                 $output .= '<span class="vcard author post-author">';
                 $output .= '<span class="label">' . $translate['published'] . ' </span>';
                 $output .= '<i class="icon-user"></i> ';
                 $output .= '<span class="fn"><a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a></span>';
                 $output .= '</span> ';
                 $output .= '<span class="date">';
                 $output .= '<span class="label">' . $translate['at'] . ' </span>';
                 $output .= '<i class="icon-clock"></i> ';
                 $output .= '<span class="post-date updated">' . get_the_date() . '</span>';
                 $output .= '</span>';
                 // .post-comments | Style == Masonry Tiles
                 if ($style == 'masonry tiles' && comments_open() && mfn_opts_get('blog-comments')) {
                     $output .= '<div class="post-links">';
                     $output .= '<i class="icon-comment-empty-fa"></i> <a href="' . get_comments_link() . '" class="post-comments">' . get_comments_number() . '</a>';
                     $output .= '</div>';
                 }
                 $output .= '</div>';
                 $output .= '<div class="category">';
                 $output .= '<span class="cat-btn">' . $translate['categories'] . ' <i class="icon-down-dir"></i></span>';
                 $output .= '<div class="cat-wrapper">' . get_the_category_list() . '</div>';
                 $output .= '</div>';
                 $output .= '</div>';
             }
             // .post-footer | Style == Photo
             if ($style == 'photo') {
                 $output .= '<div class="post-footer">';
                 $output .= '<div class="button-love"><span class="love-text">' . $translate['like'] . '</span>' . mfn_love() . '</div>';
                 $output .= '<div class="post-links">';
                 if (comments_open() && mfn_opts_get('blog-comments')) {
                     $output .= '<i class="icon-comment-empty-fa"></i> <a href="' . get_comments_link() . '" class="post-comments">' . get_comments_number() . '</a>';
                 }
                 $output .= '<i class="icon-doc-text"></i> <a href="' . get_permalink() . '" class="post-more">' . $translate['readmore'] . '</a>';
                 $output .= '</div>';
                 $output .= '</div>';
             }
             $output .= '</div>';
             // title -------------------------------------
             $output .= '<div class="post-title">';
             if (get_post_format() == 'quote') {
                 // quote ----------------------------
                 $output .= '<blockquote><a href="' . get_permalink() . '">' . get_the_title() . '</a></blockquote>';
             } elseif (get_post_format() == 'link') {
                 // link ----------------------------
                 $output .= '<i class="icon-link"></i>';
                 $output .= '<div class="link-wrapper">';
                 $output .= '<h4>' . get_the_title() . '</h4>';
                 $link = get_post_meta(get_the_ID(), 'mfn-post-link', true);
                 $output .= '<a target="_blank" href="' . $link . '">' . $link . '</a>';
                 $output .= '</div>';
             } else {
                 // default ----------------------------
                 $output .= '<h2 class="entry-title" itemprop="headline"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
             }
             $output .= '</div>';
             // content -------------------------------------
             $output .= '<div class="post-excerpt">' . get_the_excerpt() . '</div>';
             // .post-footer | Style != Photo, Masonry Tiles
             if (!in_array($style, array('photo', 'masonry tiles'))) {
                 $output .= '<div class="post-footer">';
                 $output .= '<div class="button-love"><span class="love-text">' . $translate['like'] . '</span>' . mfn_love() . '</div>';
                 $output .= '<div class="post-links">';
                 if (comments_open() && mfn_opts_get('blog-comments')) {
                     $output .= '<i class="icon-comment-empty-fa"></i> <a href="' . get_comments_link() . '" class="post-comments">' . get_comments_number() . '</a>';
                 }
                 $output .= '<i class="icon-doc-text"></i> <a href="' . get_permalink() . '" class="post-more">' . $translate['readmore'] . '</a>';
                 $output .= '</div>';
                 $output .= '</div>';
             }
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
         }
     }
     return $output;
 }
Пример #21
0
require_once LIBS_DIR . '/class-love.php';
require_once LIBS_DIR . '/class-tgm-plugin-activation.php';
require_once LIBS_DIR . '/plugins/visual-composer.php';
// WooCommerce specified functions
if (function_exists('is_woocommerce')) {
    require_once LIBS_DIR . '/theme-woocommerce.php';
}
// Hide activation and update specific parts ------------------------------------
// Slider Revolution
if (!mfn_opts_get('plugin-rev')) {
    if (function_exists('set_revslider_as_theme')) {
        set_revslider_as_theme();
    }
}
// LayerSlider
if (!mfn_opts_get('plugin-layer')) {
    add_action('layerslider_ready', 'mfn_layerslider_overrides');
    function mfn_layerslider_overrides()
    {
        // Disable auto-updates
        $GLOBALS['lsAutoUpdateBox'] = false;
    }
}
// Visual Composer
if (!mfn_opts_get('plugin-visual')) {
    add_action('vc_before_init', 'mfn_vcSetAsTheme');
    function mfn_vcSetAsTheme()
    {
        vc_set_as_theme();
    }
}
Пример #22
0
 function mfn_under_construction()
 {
     if (mfn_opts_get('construction') && !is_user_logged_in() && !is_admin() && basename($_SERVER['PHP_SELF']) != 'wp-login.php' && basename($_SERVER['PHP_SELF']) != 'style.php' && basename($_SERVER['PHP_SELF']) != 'style-colors.php' && basename($_SERVER['PHP_SELF']) != 'style-one.php' && basename($_SERVER['PHP_SELF']) != 'wp-cron.php' && basename($_SERVER['PHP_SELF']) != 'xmlrpc.php') {
         get_template_part('under-construction');
         exit;
     }
 }
Пример #23
0
                echo '<ul>';
                foreach ($languages as $lang) {
                    echo '<li><a href="' . $lang['url'] . '"><img src="' . $lang['country_flag_url'] . '" alt="' . $lang['translated_name'] . '"/></a></li>';
                }
                echo '</ul>';
                echo '</div>';
            }
        }
    }
    // Action Button
    if ($header_action_link) {
        $header_action_options = mfn_opts_get('header-action-target');
        $action_target = $action_class = false;
        // Action | Target
        if (isset($header_action_options['target'])) {
            $action_target = 'target="_blank"';
        }
        // Action | Scroll
        if (is_array($header_action_options) && isset($header_action_options['scroll'])) {
            $action_class = 'scroll';
        }
        echo '<a href="' . $header_action_link . '" class="button button_theme button_js action_button ' . $action_class . '" ' . $action_target . '><span class="button_label">' . mfn_opts_get('header-action-title') . '</span></a>';
    }
    echo '</div>';
    echo '</div>';
}
?>
			
		</div>
	</div>
</div>
?>
	
		</div>
		
	</div>
	
	<?php 
// Description | Default - wide below image
if (in_array(mfn_opts_get('shop-product-style'), array('wide', 'wide tabs'))) {
    woocommerce_output_product_data_tabs();
}
?>
	
	<?php 
woocommerce_upsell_display();
if (mfn_opts_get('shop-related')) {
    woocommerce_output_related_products();
}
?>

	<meta itemprop="url" content="<?php 
the_permalink();
?>
" />

</div><!-- #product-<?php 
the_ID();
?>
 -->

<?php 
Пример #25
0
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	border-color: <?php 
echo $color_one;
?>
 !important;
}	

	
	
/* ==============================================================================================================================
/*
/*	Responsive																										Responsive
/*
/* ============================================================================================================================ */

<?php 
if (mfn_opts_get('responsive')) {
    ?>

	@media only screen and (max-width: 767px){
		#Top_bar, #Action_bar { background: <?php 
    mfn_opts_show('background-top-left', '#ffffff');
    ?>
 !important;}
	}
	
<?php 
}
?>
	
Пример #26
0
    // demo
} else {
    $blog_layout = mfn_opts_get('blog-layout', 'classic');
}
$blog_classes[] = $blog_layout;
// isotope
if ($blog_layout == 'masonry') {
    $blog_classes[] = 'isotope';
}
// ajax load more
$load_more = mfn_opts_get('blog-load-more');
$translate['filter'] = mfn_opts_get('translate') ? mfn_opts_get('translate-filter', 'Filter by') : __('Filter by', 'betheme');
$translate['tags'] = mfn_opts_get('translate') ? mfn_opts_get('translate-tags', 'Tags') : __('Tags', 'betheme');
$translate['authors'] = mfn_opts_get('translate') ? mfn_opts_get('translate-authors', 'Authors') : __('Authors', 'betheme');
$translate['all'] = mfn_opts_get('translate') ? mfn_opts_get('translate-all', 'Show all') : __('Show all', 'betheme');
$translate['categories'] = mfn_opts_get('translate') ? mfn_opts_get('translate-categories', 'Categories') : __('Categories', 'betheme');
?>

<!-- #Content -->
<div id="Content">
	<div class="content_wrapper clearfix">

		<!-- .sections_group -->
		<div class="sections_group">
			
			<div class="extra_content">
				<?php 
if (category_description()) {
    echo '<div class="section the_content category_description">';
    echo '<div class="section_wrapper">';
    echo '<div class="the_content_wrapper">';
Пример #27
0
            $breadcrumbs_show = false;
        } else {
            $breadcrumbs_show = true;
        }
        if (is_array($subheader_advanced) && isset($subheader_advanced['breadcrumbs-link'])) {
            $breadcrumbs_link = 'has-link';
        } else {
            $breadcrumbs_link = 'no-link';
        }
        // Subheader | Print
        if ($subheader_show) {
            echo '<div id="Subheader" style="' . $subheader_style . '">';
            echo '<div class="container">';
            echo '<div class="column one">';
            // Title
            $title_tag = mfn_opts_get('subheader-title-tag', 'h1');
            echo '<' . $title_tag . ' class="title">' . mfn_page_title() . '</' . $title_tag . '>';
            // Breadcrumbs
            if ($breadcrumbs_show) {
                mfn_breadcrumbs($breadcrumbs_link);
            }
            echo '</div>';
            echo '</div>';
            echo '</div>';
        }
    }
}
?>
		
		</div>
		
Пример #28
0
 function mfn_body_classes($classes)
 {
     // Layout | Custom ------------------------------------
     $layoutID = mfn_layout_ID();
     // Slider ---------------------------------------------
     if (mfn_slider()) {
         $classes[] = 'template-slider';
     }
     // Sidebar --------------------------------------------
     $classes[] = mfn_sidebar_classes();
     // Skin -----------------------------------------------
     if ($_GET && key_exists('mfn-c', $_GET)) {
         $classes[] = 'color-' . $_GET['mfn-c'];
         // demo
     } elseif ($layoutID) {
         $classes[] = 'color-' . get_post_meta($layoutID, 'mfn-post-skin', true);
     } else {
         $classes[] = 'color-' . mfn_opts_get('skin', 'custom');
     }
     // Style | Default & Simple ---------------------------
     if ($_GET && key_exists('mfn-style', $_GET)) {
         $classes[] = 'style-' . $_GET['mfn-style'];
         // demo
     } else {
         $classes[] = 'style-' . mfn_opts_get('style', 'default');
     }
     // Layout | Full Width & Boxed ------------------------
     if ($_GET && key_exists('mfn-box', $_GET)) {
         $classes[] = 'layout-boxed';
         // demo
     } elseif ($layoutID) {
         $classes[] = 'layout-' . get_post_meta($layoutID, 'mfn-post-layout', true);
     } else {
         $classes[] = 'layout-' . mfn_opts_get('layout', 'full-width');
     }
     // One Page -------------------------------------------
     if (get_post_meta(mfn_ID(), 'mfn-post-one-page', true)) {
         $classes[] = 'one-page';
     }
     // Grid 960px -----------------------------------------
     if (mfn_is_960()) {
         $classes[] = 'grid960';
     }
     // Nice Scroll ----------------------------------------
     if (mfn_opts_get('nice-scroll')) {
         $classes[] = 'nice-scroll-on';
     }
     // Responsive -----------------------------------------
     if (mfn_opts_get('no-hover')) {
         $classes[] = 'no-hover-' . mfn_opts_get('no-hover');
     }
     if (mfn_opts_get('no-section-bg')) {
         $classes[] = 'no-section-bg-' . mfn_opts_get('no-section-bg');
     }
     if (mfn_opts_get('responsive-top-bar')) {
         $classes[] = 'mobile-tb-' . mfn_opts_get('responsive-top-bar');
     }
     $responsive_options = mfn_opts_get('responsive-options');
     if (is_array($responsive_options) && isset($responsive_options['mobile-wide'])) {
         $classes[] = 'mobile-wide';
     }
     // Button | Style -------------------------------------
     if ($_GET && key_exists('mfn-btn', $_GET)) {
         $classes[] = 'button-' . $_GET['mfn-btn'];
         // demo
     } elseif (mfn_opts_get('button-style')) {
         $classes[] = 'button-' . mfn_opts_get('button-style');
     }
     // Image Frame | Style --------------------------------
     if ($_GET && key_exists('mfn-if', $_GET)) {
         $classes[] = 'if-' . $_GET['mfn-if'];
         // demo
     } elseif (mfn_opts_get('image-frame-style')) {
         $classes[] = 'if-' . mfn_opts_get('image-frame-style');
     }
     // Content Padding ------------------------------------
     if (mfn_opts_get('content-remove-padding')) {
         $classes[] = 'no-content-padding';
     } elseif (get_post_meta(mfn_ID(), 'mfn-post-remove-padding', true)) {
         $classes[] = 'no-content-padding';
     }
     // RTL | demo only ------------------------------------
     if ($_GET && key_exists('mfn-rtl', $_GET)) {
         $classes[] = 'rtl';
     }
     // Love -----------------------------------------------
     if (!mfn_opts_get('love')) {
         $classes[] = 'hide-love';
     }
     // Table Hover ----------------------------------------
     if (mfn_opts_get('table-hover-disable')) {
         $classes[] = 'no-table-hover';
     }
     // Header =============================================
     $header_options = mfn_opts_get('header-fw') ? mfn_opts_get('header-fw') : false;
     // Header | Layout --------------------------
     $classes[] = mfn_header_style();
     // Header | Full Width ----------------------
     if ($_GET && key_exists('mfn-hfw', $_GET)) {
         $classes[] = 'header-fw';
         // demo
     } elseif (isset($header_options['full-width'])) {
         $classes[] = 'header-fw';
     }
     // Header | Boxed ---------------------------
     if (is_array($header_options) && isset($header_options['header-boxed'])) {
         $classes[] = 'header-boxed';
     }
     // Header | Minimalist ----------------------
     if ($_GET && key_exists('mfn-min', $_GET)) {
         $classes[] = 'minimalist-header';
         // demo
     } elseif ($layoutID) {
         if (get_post_meta($layoutID, 'mfn-post-minimalist-header', true)) {
             $classes[] = 'minimalist-header';
         }
     } elseif (mfn_opts_get('minimalist-header')) {
         $classes[] = 'minimalist-header';
     }
     // Header | Sticky --------------------------
     if (mfn_opts_get('sticky-header') && mfn_header_style(true) != 'header-creative') {
         $classes[] = 'sticky-header';
     }
     // Header Sticky Style ----------------------
     if ($_GET && key_exists('mfn-ss', $_GET)) {
         $classes[] = 'sticky-' . $_GET['mfn-ss'];
         // demo
     } elseif ($layoutID) {
         $classes[] = 'sticky-' . get_post_meta($layoutID, 'mfn-post-sticky-header-style', true);
     } else {
         $classes[] = 'sticky-' . mfn_opts_get('sticky-header-style', 'white');
     }
     // Action Bar -------------------------------
     if (mfn_opts_get('action-bar')) {
         $classes[] = 'ab-show';
     } else {
         $classes[] = 'ab-hide';
     }
     // Subheader | Transparent ------------------
     $skin = mfn_opts_get('skin', 'custom');
     if ($_GET && key_exists('mfn-subtr', $_GET)) {
         $classes[] = 'subheader-transparent';
         // demo
     } elseif (!in_array($skin, array('custom', 'one'))) {
         if (mfn_opts_get('subheader-transparent') != 100) {
             $classes[] = 'subheader-transparent';
         }
     }
     // Subheader | Style ------------------------
     if ($_GET && key_exists('mfn-sh', $_GET)) {
         $classes[] = 'subheader-' . $_GET['mfn-sh'];
         // demo
     } else {
         $classes[] = 'subheader-' . mfn_opts_get('subheader-style', 'title-left');
     }
     // Menu | Style -----------------------------
     if ($_GET && key_exists('mfn-m', $_GET)) {
         $classes[] = 'menu-' . $_GET['mfn-m'];
         // demo
     } elseif (mfn_opts_get('menu-style')) {
         $classes[] = 'menu-' . mfn_opts_get('menu-style');
     }
     // Menu | Options ---------------------------
     $menu_options = mfn_opts_get('menu-options');
     if (is_array($menu_options) && isset($menu_options['align-right'])) {
         $classes[] = 'menuo-right';
     }
     if (is_array($menu_options) && isset($menu_options['menu-arrows'])) {
         $classes[] = 'menuo-arrows';
     }
     if (is_array($menu_options) && isset($menu_options['hide-borders'])) {
         $classes[] = 'menuo-no-borders';
     }
     if (is_array($menu_options) && isset($menu_options['last'])) {
         $classes[] = 'menuo-last';
     }
     // Footer =============================================
     // Footer | Style ---------------------------
     if ($_GET && key_exists('mfn-ftr', $_GET)) {
         $classes[] = 'footer-' . $_GET['mfn-ftr'];
         // demo
     } elseif (mfn_opts_get('footer-style')) {
         $classes[] = 'footer-' . mfn_opts_get('footer-style');
     }
     // Footer | Copy & Social -------------------
     if (mfn_opts_get('footer-hide') == 'center') {
         $classes[] = 'footer-copy-center';
     }
     return $classes;
 }
Пример #29
0
<?php

/**
 * Post custom meta fields.
 *
 * @package Betheme
 * @author Muffin group
 * @link http://muffingroup.com
 */
/*-----------------------------------------------------------------------------------*/
/*	Define Metabox Fields
/*-----------------------------------------------------------------------------------*/
$mfn_post_meta_box = array('id' => 'mfn-meta-post', 'title' => __('Post Options', 'mfn-opts'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'mfn-post-hide-content', 'type' => 'switch', 'title' => __('Hide The Content', 'mfn-opts'), 'sub_desc' => __('Hide the content from the WordPress editor.', 'mfn-opts'), 'desc' => __('<strong>Turn it ON if you build content using Content Builder</strong>. Use the Content item if you want to display the Content from editor within the Content Builder.', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-layout', 'type' => 'radio_img', 'title' => __('Layout', 'mfn-opts'), 'sub_desc' => __('Select layout for this post', 'mfn-opts'), 'options' => array('no-sidebar' => array('title' => 'Full width. No sidebar', 'img' => MFN_OPTIONS_URI . 'img/1col.png'), 'left-sidebar' => array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cl.png'), 'right-sidebar' => array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI . 'img/2cr.png')), 'std' => mfn_opts_get('sidebar-layout')), array('id' => 'mfn-post-sidebar', 'type' => 'select', 'title' => __('Sidebar', 'mfn-opts'), 'sub_desc' => __('Select sidebar for this post', 'mfn-opts'), 'desc' => __('Shows only if layout with sidebar is selected.', 'mfn-opts'), 'options' => mfn_opts_get('sidebars')), array('id' => 'mfn-post-slider', 'type' => 'select', 'title' => __('Slider | Revolution Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=revslider">Revolution Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders()), array('id' => 'mfn-post-slider-layer', 'type' => 'select', 'title' => __('Slider | Layer Slider', 'mfn-opts'), 'sub_desc' => __('Select slider for this page.', 'mfn-opts'), 'desc' => __('Select one from the list of available <a target="_blank" href="admin.php?page=layerslider">Layer Sliders</a>', 'mfn-opts'), 'options' => mfn_get_sliders_layer()), array('id' => 'mfn-post-header-bg', 'type' => 'upload', 'title' => __('Header | Image', 'mfn-opts')), array('id' => 'mfn-post-hide-title', 'type' => 'switch', 'title' => __('Title Area | Hide', 'mfn-opts'), 'options' => array('1' => 'On', '0' => 'Off'), 'std' => '0'), array('id' => 'mfn-post-hide-image', 'type' => 'switch', 'title' => __('Featured Image | Hide', 'mfn-opts'), 'desc' => __('Hide Featured Image in post details', 'mfn-opts'), 'options' => array('0' => 'Off', '1' => 'On')), array('id' => 'mfn-post-video', 'type' => 'text', 'title' => __('Video ID', 'mfn-opts'), 'sub_desc' => __('YouTube or Vimeo', 'mfn-opts'), 'desc' => __('It`s placed in every YouTube & Vimeo video, for example:<br /><br /><b>YouTube:</b> http://www.youtube.com/watch?v=<u>WoJhnRczeNg</u><br /><b>Vimeo:</b> http://vimeo.com/<u>62954028</u>', 'mfn-opts'), 'class' => 'small-text mfn-post-format video'), array('id' => 'mfn-post-video-mp4', 'type' => 'upload', 'title' => __('HTML5 mp4 video', 'mfn-opts'), 'sub_desc' => __('m4v [.mp4]', 'mfn-opts'), 'desc' => __('<strong>Notice:</strong> HTML5 video works only in moden browsers.', 'mfn-opts'), 'class' => __('video', 'mfn-opts')), array('id' => 'mfn-post-link', 'type' => 'text', 'title' => __('External Link', 'mfn-opts'), 'desc' => __('For Post Format: Link', 'mfn-opts')), array('id' => 'mfn-meta-seo-title', 'type' => 'text', 'title' => __('SEO Title', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-description', 'type' => 'text', 'title' => __('SEO Description', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts')), array('id' => 'mfn-meta-seo-keywords', 'type' => 'text', 'title' => __('SEO Keywords', 'mfn-opts'), 'desc' => __('These settings overriddes theme options settings.', 'mfn-opts'))));
/*-----------------------------------------------------------------------------------*/
/*	Add metabox to edit page
/*-----------------------------------------------------------------------------------*/
function mfn_post_meta_add()
{
    global $mfn_post_meta_box;
    add_meta_box($mfn_post_meta_box['id'], $mfn_post_meta_box['title'], 'mfn_post_show_box', $mfn_post_meta_box['page'], $mfn_post_meta_box['context'], $mfn_post_meta_box['priority']);
}
add_action('admin_menu', 'mfn_post_meta_add');
/*-----------------------------------------------------------------------------------*/
/*	Callback function to show fields in meta box
/*-----------------------------------------------------------------------------------*/
function mfn_post_show_box()
{
    global $MFN_Options, $mfn_post_meta_box, $post;
    $MFN_Options->_enqueue();
    // Use nonce for verification
    echo '<div id="mfn-wrapper">';
Пример #30
0
        mfn_opts_show('social-pinterest');
        ?>
" title="Pinterest"><i class="icon-pinterest"></i></a></li><?php 
    }
    ?>
						<?php 
    if (mfn_opts_get('social-dribbble')) {
        ?>
<li class="dribbble"><a target="_blank" href="<?php 
        mfn_opts_show('social-dribbble');
        ?>
" title="Dribbble"><i class="icon-dribbble"></i></a></li><?php 
    }
    ?>
						<?php 
    if (mfn_opts_get('social-instagram')) {
        ?>
<li class="instagram"><a target="_blank" href="<?php 
        mfn_opts_show('social-instagram');
        ?>
" title="IBS Digital"><img src="http://dermabr.com.br/assinatura.png"></a></li><?php 
    }
    ?>
					</ul>
				</div>
						
			</div>
		</div>
	</div>
	<?php 
}