WordPress.org

Make WordPress Themes


Ignore:
Location:
magnificient
Files:
1 deleted
23 edited

Legend:

Unmodified
Added
Removed
  • magnificient/1.3.5/functions.php

    r85496 r85496  
    44 *  The main functions.php file for WordPress Themes. 
    55 * 
    6  *  This file only contains the call to the files that are necessary for the  
     6 *  This file only contains the call to the files that are necessary for the 
    77 *  theme to function properly. 
    88 * 
    9  *  Use another file to use your own custom functions or edit the  
     9 *  Use another file to use your own custom functions or edit the 
    1010 *  custom-functions.php file, which can found in the 'library' folder. 
    1111 * 
    12  *  You can also create a new file in the 'library' folder and include that  
     12 *  You can also create a new file in the 'library' folder and include that 
    1313 *  file here. 
    1414 * 
    15  *  You can add new files here using the 'require_once()' syntax.   
     15 *  You can add new files here using the 'require_once()' syntax. 
    1616/* ------------------------------------------------------------------------- */ 
    1717 
     
    4848 
    4949/* 
    50 6. library/random-post-widget.php 
    51     - add random posts to sidebar 
    52 */ 
    53 require_once('library/random-post-widget.php'); 
    54  
    55 /* 
    56 7. library/custom-functions.php 
     506. library/custom-functions.php 
    5751    - add customs functions to the theme 
    5852*/ 
     
    6054 
    6155/* 
    62 8. library/entry-meta.php 
     567. library/entry-meta.php 
    6357    - add entry metas to the theme contents 
    6458*/ 
     
    6660 
    6761/* 
    68 9. library/random-post-widget.php 
     628. library/random-post-widget.php 
    6963    - add random posts to sidebar 
    7064*/ 
     
    7266 
    7367/* 
    74 10. library/enqueue-scripts.php 
     689. library/enqueue-scripts.php 
    7569    - enqueues the js to the theme 
    7670*/ 
     
    7872 
    7973/* 
    80 11. library/theme-customizer.php 
     7410. library/theme-customizer.php 
    8175    - add Customizer options for theme 
    8276*/ 
     
    8478 
    8579/* 
    86 12. library/theme-support.php 
     8011. library/theme-support.php 
    8781    - add theme support 
    8882*/ 
  • magnificient/1.3.5/library/cleanup.php

    r85496 r85496  
    99 
    1010if( ! function_exists( 'magnificient_startup ' ) ) { 
    11      
     11 
    1212    function magnificient_startup() { 
    13          
     13 
    1414        // remove WP version from RSS 
    1515        add_filter('the_generator', 'magnificient_rss_version'); 
    16          
     16 
    1717        // remove pesky injected css for recent comments widget 
    1818        add_filter( 'wp_head', 'magnificient_remove_wp_widget_recent_comments_style', 1 ); 
    19          
    20         // clean up comment styles in the head 
    21         add_action('wp_head', 'magnificient_remove_recent_comments_style', 1); 
    22          
     19 
    2320        // clean up gallery output in wp 
    2421        add_filter('gallery_style', 'magnificient_gallery_style'); 
     
    2623        // enqueue base scripts and styles 
    2724        add_action('wp_enqueue_scripts', 'magnificient_scripts_and_styles', 999); 
    28          
     25 
    2926        // ie conditional wrapper 
    3027        add_filter( 'style_loader_tag', 'magnificient_ie_conditional', 10, 2 ); 
    31          
     28 
    3229        // additional post related cleaning 
    3330        add_filter( 'img_caption_shortcode', 'magnificient_cleaner_caption', 10, 3 ); 
     
    3734 
    3835    } /* end magnificient_startup */ 
    39      
     36 
    4037} 
    4138 
     
    5451// remove WP version from RSS 
    5552if( ! function_exists( 'magnificient_rss_version ' ) ) { 
    56      
     53 
    5754    function magnificient_rss_version() { return ''; } 
    58      
     55 
    5956} 
    6057 
    6158// remove WP version from scripts 
    6259if( ! function_exists( 'magnificient_remove_wp_ver_css_js ' ) ) { 
    63      
     60 
    6461    function magnificient_remove_wp_ver_css_js( $src ) { 
    6562        if ( strpos( $src, 'ver=' ) ) 
     
    6764        return $src; 
    6865    } 
    69      
     66 
    7067} 
    7168 
    7269// remove injected CSS for recent comments widget 
    7370if( ! function_exists( 'magnificient_remove_wp_widget_recent_comments_style ' ) ) { 
    74      
     71 
    7572    function magnificient_remove_wp_widget_recent_comments_style() { 
    7673       if ( has_filter('wp_head', 'wp_widget_recent_comments_style') ) { 
     
    7875       } 
    7976    } 
    80      
    81 } 
    8277 
    83 // remove injected CSS from recent comments widget 
    84 if( ! function_exists( 'magnificient_remove_recent_comments_style ' ) ) { 
    85      
    86     function magnificient_remove_recent_comments_style() { 
    87       global $wp_widget_factory; 
    88       if (isset($wp_widget_factory->widgets['WP_Widget_Recent_Comments'])) { 
    89         remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style')); 
    90       } 
    91     } 
    92      
    9378} 
    9479 
    9580// remove injected CSS from gallery 
    9681if( ! function_exists( 'magnificient_gallery_style ' ) ) { 
    97      
     82 
    9883    function magnificient_gallery_style($css) { 
    9984      return preg_replace("!<style type='text/css'>(.*?)</style>!s", '', $css); 
    10085    } 
    101      
     86 
    10287} 
    10388 
     
    10893/* Customized the output of caption, you can remove the filter to restore back to the WP default output. Courtesy of DevPress. http://devpress.com/blog/captions-in-wordpress/ */ 
    10994if( ! function_exists( 'magnificient_cleaner_caption ' ) ) { 
    110      
     95 
    11196    function magnificient_cleaner_caption( $output, $attr, $content ) { 
    11297 
     
    147132        /* Return the formatted, clean caption. */ 
    148133        return $output; 
    149          
     134 
    150135    } /* end magnificient_cleaner_caption */ 
    151      
     136 
    152137} 
    153138 
    154139// Clean the output of attributes of images in editor. Courtesy of SitePoint. http://www.sitepoint.com/wordpress-change-img-tag-html/ 
    155140if( ! function_exists( 'magnificient_image_tag_class ' ) ) { 
    156      
     141 
    157142    function magnificient_image_tag_class($class, $id, $align, $size) { 
    158143        $align = 'align' . esc_attr($align); 
    159144        return $align; 
    160145    } /* end magnificient_image_tag_class */ 
    161      
     146 
    162147} 
    163148 
    164149// Remove width and height in editor, for a better responsive world. 
    165150if( ! function_exists( 'magnificient_image_editor ' ) ) { 
    166      
     151 
    167152    function magnificient_image_editor($html, $id, $alt, $title) { 
    168153        return preg_replace(array( 
     
    179164            $html); 
    180165    } /* end magnificient_image_editor */ 
    181      
     166 
    182167} 
    183168 
    184169// Wrap images with figure tag. Courtesy of Interconnectit http://interconnectit.com/2175/how-to-remove-p-tags-from-images-in-wordpress/ 
    185170if( ! function_exists( 'magnificient_img_unautop ' ) ) { 
    186      
     171 
    187172    function magnificient_img_unautop($pee) { 
    188173        $pee = preg_replace('/<p>\\s*?(<a .*?><img.*?><\\/a>|<img.*?>)?\\s*<\\/p>/s', '<figure>$1</figure>', $pee); 
    189174        return $pee; 
    190175    } /* end magnificient_img_unautop */ 
    191      
     176 
    192177} 
    193178 
  • magnificient/1.3.5/style.css

    r85496 r85496  
    33Theme URI:          http://www.infismash.com/magnificient-wordpress-theme/ 
    44Description:        Magnificient is a versatile HTML5 responsive WordPress theme based on ZURB's Foundation. Magnificient is a WordPress theme which you can use for your personal blogging website or a story website. Magnificient gives you a clean layout with minimal interface. 
    5 Version:            1.3.4 
     5Version:            1.3.5 
    66Author:             Nirmalya Ghosh 
    77Author URI:         http://infismash.com/ 
     
    1313*/ 
    1414 
    15 /* --------------------------------------------------  
     15/* -------------------------------------------------- 
    1616    This stylesheet will not be loaded by default. 
    1717-------------------------------------------------- */ 
Note: See TracChangeset for help on using the changeset viewer.