当前位置: 首页>>代码示例>>PHP>>正文


PHP mfn_opts_get函数代码示例

本文整理汇总了PHP中mfn_opts_get函数的典型用法代码示例。如果您正苦于以下问题:PHP mfn_opts_get函数的具体用法?PHP mfn_opts_get怎么用?PHP mfn_opts_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了mfn_opts_get函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mfn_offer_post_type

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);
}
开发者ID:virendrayadav,项目名称:saielectric,代码行数:7,代码来源:meta-offer.php

示例2: mfn_layout_post_type

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);
}
开发者ID:plowzzer,项目名称:betheme_derma,代码行数:7,代码来源:meta-layout.php

示例3: mfn_slide_post_type

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));
}
开发者ID:vinodhip,项目名称:Function-22-Website,代码行数:8,代码来源:meta-slide.php

示例4: mfn_register_sidebars

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>'));
        }
    }
}
开发者ID:RagnarDanneskjold,项目名称:goodbyeloans.com,代码行数:14,代码来源:widget-functions.php

示例5: mfn_portfolio_meta_add

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']);
}
开发者ID:chowy1026,项目名称:jenny,代码行数:15,代码来源:meta-portfolio.php

示例6: mfn_register_sidebars_cat

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>'));
            }
        }
    }
}
开发者ID:JohnPaganella,项目名称:trinkbier,代码行数:20,代码来源:widget-functions.php

示例7: mfn_wp_split_menu

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>';
}
开发者ID:vinodhip,项目名称:Function-22-Website,代码行数:21,代码来源:theme-menu.php

示例8: mfn_fonts

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;
    }
}
开发者ID:vinodhip,项目名称:Function-22-Website,代码行数:22,代码来源:fonts.php

示例9: mfn_page_meta_add

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']);
}
开发者ID:tonyvu1985,项目名称:tvcom-demall,代码行数:23,代码来源:meta-page.php

示例10: mfn_page_meta_add

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']);
}
开发者ID:plowzzer,项目名称:betheme_derma,代码行数:23,代码来源:meta-page.php

示例11: mfn_register_sidebars

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>'));
}
开发者ID:plowzzer,项目名称:betheme_derma,代码行数:24,代码来源:widget-functions.php

示例12: wp_link_pages

				<?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>';
开发者ID:raffe90,项目名称:larapress,代码行数:31,代码来源:content-single-portfolio.php

示例13: mfn_content_portfolio

 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">';
//.........这里部分代码省略.........
开发者ID:nguyenhuusao,项目名称:rang,代码行数:101,代码来源:content-portfolio.php

示例14: sc_portfolio_photo

 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;
 }
开发者ID:tonyvu1985,项目名称:tvcom-demall,代码行数:66,代码来源:theme-shortcodes.php

示例15: and

		.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;
        ?>
;}
			
开发者ID:raffe90,项目名称:larapress,代码行数:30,代码来源:style.php


注:本文中的mfn_opts_get函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。