WordPress.org

Plugin Directory

Changeset 607230


Ignore:
Timestamp:
10/02/12 23:06:03 (19 months ago)
Author:
joedolson
Message:

Commit version 1.2.6

Location:
my-content-management/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • my-content-management/trunk/mcm-custom-posts.php

    r576432 r607230  
    3838                'hierarchical' => $raw['hierarchical'], 
    3939                'menu_position' => 20, 
     40                'has_archive' => true, 
    4041                'supports' => $raw['supports'] 
    4142            );  
  • my-content-management/trunk/mcm-view-custom-posts.php

    r576432 r607230  
    348348    foreach ($array as $key=>$value) { 
    349349        if ( !is_object($value) ) { 
    350             preg_match_all('/{'.$key.'\b(?>\s+(?:before="([^"]*)"|after="([^"]*)")|[^\s]+|\s+){0,2}}/', $template, $matches, PREG_PATTERN_ORDER ); 
    351             if ( $matches ) { 
    352                 $before = ( isset( $matches[1][0] ) )?$matches[1][0]:''; 
    353                 $after = ( isset( $matches[2][0] ) )?$matches[2][0]:''; 
    354                 $value = ( $value == '' )?'':$before.$value.$after; 
    355                 $whole_thang = ( isset( $matches[0][0] ) )?$matches[0][0]:''; 
    356                 $template = str_replace( $whole_thang, $value, $template ); 
     350            if ( strpos( $template, "{".$key ) !== false ) { // only check for tag parts that exist 
     351                preg_match_all('/{'.$key.'\b(?>\s+(?:before="([^"]*)"|after="([^"]*)")|[^\s]+|\s+){0,2}}/', $template, $matches, PREG_PATTERN_ORDER ); 
     352                if ( $matches ) { 
     353                    $before = ( isset( $matches[1][0] ) )?$matches[1][0]:''; 
     354                    $after = ( isset( $matches[2][0] ) )?$matches[2][0]:''; 
     355                    $value = ( $value == '' )?'':$before.$value.$after; 
     356                    $whole_thang = ( isset( $matches[0][0] ) )?$matches[0][0]:''; 
     357                    $template = str_replace( $whole_thang, $value, $template ); 
     358                } 
    357359            } 
    358360        }  
  • my-content-management/trunk/my-content-management.php

    r576432 r607230  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 1.2.5 
     8Version: 1.2.6 
    99*/ 
    1010/*  Copyright 2011-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2424    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2525*/ 
    26 $mcm_version = '1.2.5'; 
     26$mcm_version = '1.2.6'; 
    2727// Enable internationalisation 
    2828load_plugin_textdomain( 'my-content-management',false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );  
     
    447447                <?php mcm_enabler(); ?> 
    448448                <p> 
    449                     <input type='submit' value='<?php _e('Enable Selected Post Types','my-content-manager'); ?>' name='mcm_enabler' class='button-primary' /> 
     449                    <input type='submit' value='<?php _e('Enable Selected Post Types','my-content-manager'); ?>' name='mcm_enabler' class='button-primary' /> <a href="<?php echo admin_url('options-general.php?page=my-content-management/my-content-management.php&mcm_add=new'); ?>"><?php _e('Add new post type','my-content-manager'); ?></a> 
    450450                </p> 
    451451                </div> 
     
    467467<?php 
    468468} 
     469 
    469470function mcm_enabler() { 
    470471    if ( isset($_POST['mcm_enabler']) ) { 
     
    488489                    if ( in_array( $key, $enabled ) ) { $checked = ' checked="checked"'; } else { $checked = ''; } 
    489490                } 
    490                 $return .= "<li><input type='checkbox' value='$key' name='mcm_posttypes[]' id='mcm_$key'$checked /> <label for='mcm_$key'>$value[3] <small><a href='".admin_url("options-general.php?page=my-content-management/my-content-management.php&mcm_edit=$key")."'>".__('Edit post type:','my-content-management')." $value[3]</a></small></label></li>\n"; 
     491                $return .= "<li><input type='checkbox' value='$key' name='mcm_posttypes[]' id='mcm_$key'$checked /> <label for='mcm_$key'>$value[3] <small><a href='".admin_url("options-general.php?page=my-content-management/my-content-management.php&mcm_edit=$key")."'>".__('Edit','my-content-management')." '$value[3]'</a> &bull; <a href='".admin_url("options-general.php?page=my-content-management/my-content-management.php&mcm_delete=$key")."'>".__('Delete','my-content-management')."  '$value[3]'</a></small></label></li>\n"; 
    491492            } 
    492493        } 
     
    504505            $ns = $_POST[$type]; 
    505506            $new = array( $ns['pt1'],$ns['pt2'],$ns['pt3'],$ns['pt4'],array( 'public' => ( isset($ns['public']) && $ns['public'] == 1 )?true:false, 
    506                     'publicly_queryable' => ( isset($ns['publicly_queryable']) && $ns['hierarchical'] == 1 )?true:false, 
     507                    'publicly_queryable' => ( isset($ns['publicly_queryable']) && $ns['publicly_queryable'] == 1 )?true:false, 
    507508                    'exclude_from_search'=> ( isset($ns['exclude_from_search']) && $ns['exclude_from_search']==1)?true:false, 
    508509                    'show_in_menu' => ( isset($ns['show_in_menu']) && $ns['show_in_menu'] == 1 )?true:false, 
     
    537538    $types = $mcm_types; 
    538539    $checked = ''; 
    539     if ( isset($_GET['mcm_edit']) ) { $type = $_GET['mcm_edit']; } else { $type = 'new'; }   
     540    if ( isset( $_GET['mcm_delete']) ) { $message = mcm_delete_type( $_GET['mcm_delete'] ); echo $message; } 
     541    if ( isset($_GET['mcm_edit']) ) { $type = $_GET['mcm_edit']; } else { $type = 'new'; } 
    540542    $before ="<div class='mcm_edit_post_type'><form method='post' action='".admin_url('options-general.php?page=my-content-management/my-content-management.php')."'> 
    541543                <div><input type='hidden' name='_wpnonce' value='".wp_create_nonce('my-content-management-nonce')."' /></div>            
     
    543545    $post_typing = "<div><input type='hidden' name='mcm_type' value='$type' /></div>"; 
    544546    $after = "<p> 
    545                     <input type='submit' value='".__('Edit Custom Post Type','my-content-manager')."' name='mcm_updater' class='button-primary' /> 
     547                    <input type='submit' value='".sprintf( __('Edit type "%1$s"','my-content-manager'), $type )."' name='mcm_updater' class='button-primary' /> <a href='".admin_url('options-general.php?page=my-content-management/my-content-management.php&mcm_add=new')."'>".__('Add new post type','my-content-management')."</a> 
    546548                </p> 
    547549                </div> 
    548             </form><a href='".admin_url('options-general.php?page=my-content-management/my-content-management.php&mcm_edit=new')."'>".__('Add new','my-content-management')."</a></div>"; 
     550            </form></div>"; 
    549551    $return = ''; 
    550552    if ( is_array($types) ) { 
     
    554556            $data = false; 
    555557        } 
    556         if ( $data ) { 
     558        if ( $data && isset($_GET['mcm_edit']) ) { 
    557559            if ( !isset($data[4]['slug']) ) { $data[4]['slug'] = $type; } 
    558560            $return = $before; 
     
    560562            $return .= " 
    561563            <p><label for='pt1'>".__('Singular Name, lower','my-content-management')."</label><br /><input type='text' name='${type}[pt1]' id='pt1' value='$data[0]' /></p> 
     564            <p><label for='pt3'>".__('Singular Name, upper','my-content-management')."</label><br /><input type='text' name='${type}[pt3]' id='pt3' value='$data[2]' /></p>          
    562565            <p><label for='pt2'>".__('Plural Name, lower','my-content-management')."</label><br /><input type='text' name='${type}[pt2]' id='pt2' value='$data[1]' /></p> 
    563             <p><label for='pt3'>".__('Singular Name, upper','my-content-management')."</label><br /><input type='text' name='${type}[pt3]' id='pt3' value='$data[2]' /></p> 
    564566            <p><label for='pt4'>".__('Plural Name, upper','my-content-management')."</label><br /><input type='text' name='${type}[pt4]' id='pt4' value='$data[3]' /></p>            
    565567            "; 
     
    586588        } 
    587589    } 
    588     if ( $type == 'new' ) { 
     590    if ( $type == 'new' && isset($_GET['mcm_add']) && $_GET['mcm_add']=='new' ) { 
    589591        global $d_mcm_args; 
    590592            $return = $before; 
    591593            $return .= " 
    592594            <p><label for='pt1'>".__('Singular Name, lower','my-content-management')."</label><br /><input type='text' name='new[pt1]' id='pt1' value='' /></p> 
     595            <p><label for='pt3'>".__('Singular Name, upper','my-content-management')."</label><br /><input type='text' name='new[pt3]' id='pt3' value='' /></p> 
    593596            <p><label for='pt2'>".__('Plural Name, lower','my-content-management')."</label><br /><input type='text' name='new[pt2]' id='pt2' value='' /></p> 
    594             <p><label for='pt3'>".__('Singular Name, upper','my-content-management')."</label><br /><input type='text' name='new[pt3]' id='pt3' value='' /></p> 
    595597            <p><label for='pt4'>".__('Plural Name, upper','my-content-management')."</label><br /><input type='text' name='new[pt4]' id='pt4' value='' /></p> 
    596598            "; 
     
    622624} 
    623625 
     626function mcm_delete_type( $type ) { 
     627    $options = get_option('mcm_options'); 
     628    $types = $options['types']; 
     629    $templates = $options['templates']; 
     630    $enabled = $options['enabled']; 
     631    if ( isset( $types[$type] ) ) { 
     632        unset($options['types'][$type]); 
     633        unset($options['templates'][$type]); 
     634            $key = array_search( $type, $enabled ); 
     635            if ( $key ) { unset($options['enabled'][$key]); } 
     636        update_option('mcm_options',$options); 
     637        return "<div class='updated fade'><p>".sprintf(__('Custom post type "%1$s" has been deleted.','my-content-management'),$type)."</p></div>"; 
     638    } 
     639    return "<div class='error'><p>".sprintf(__('Custom post type "%1$s" was not found, and could not be deleted.','my-content-management'),$type)."</p></div>"; 
     640} 
     641 
    624642function mcm_template_setter() { 
    625643    if ( isset($_POST['mcm_save_templates']) ) { 
     
    632650        update_option('mcm_options',$option); 
    633651        echo "<div class='updated fade'><p>".__('Post Type templates updated','my-content-management')."</p></div>"; 
    634          
    635652    } 
    636653    $option = get_option('mcm_options'); 
     
    641658    $list = array('div','ul','ol','dl','section'); 
    642659    $item = array('div','li','article'); 
     660    $default = array( 
     661        'full' => "{title} 
     662        {content} 
     663 
     664        {link_title}",  
     665            'excerpt' => "{title} 
     666        {excerpt} 
     667 
     668        {link_title}",  
     669            'list' => "{link_title}", 
     670            'wrapper' => array ( 
     671                'item' =>  
     672                    array ( 'full' => 'div', 'excerpt' => 'div', 'list' => 'li' ), 
     673                'list' =>  
     674                    array ( 'full' => 'div', 'excerpt' => 'div', 'list' => 'ul' )  
     675            )  
     676        ); 
    643677    if ( is_array($enabled) ) { 
    644678        foreach ( $enabled as $value ) { 
    645             $pointer = ''; 
    646             $display_value = str_replace('mcm_','',$value); 
    647             $template = $templates[$value]; 
    648             $label = $types[$value]; 
    649             foreach ( $extras as $k=>$v ) { 
    650                 if ( $v[0] == $value ) { 
    651                     $extra_fields = $fields[$k]; 
    652                     $pointer = $value; 
     679            if ( isset($types[$value] ) ) { 
     680                $pointer = ''; 
     681                $display_value = str_replace('mcm_','',$value); 
     682                $template = (isset($templates[$value]))?$templates[$value]:$default; 
     683                $label = $types[$value]; 
     684                foreach ( $extras as $k=>$v ) { 
     685                    if ( $v[0] == $value ) { 
     686                        $extra_fields = $fields[$k]; 
     687                        $pointer = $value; 
     688                    } 
    653689                } 
     690                if ( $pointer != $value ) { $extra_fields = false; } 
     691                $show_fields = ''; 
     692                if ( is_array( $extra_fields ) ) { 
     693                    foreach ( $extra_fields as $k=>$v ) { 
     694                        $show_fields .= "<p><code>&#123;$v[0]&#125;</code>: $v[1]</p>"; 
     695                    } 
     696                } else { 
     697                    $show_fields = ''; 
     698                } 
     699                $extension = ''; 
     700                if ( $value == 'mcm_glossary' && function_exists('mcm_set_glossary') ) { $extension = "<h4>Glossary Extension</h4> 
     701                <p>".__('The glossary extension to My Content Management is enabled.','my-content-management')."</p> 
     702                <ul> 
     703                <li><code>[alphabet]</code>: ".__('displays list of linked first characters represented in your Glossary. (Roman alphabet only.)','my-content-management')."</li> 
     704                <li><code>[term id='' term='']</code>: ".__('displays value of term attribute linked to glossary term with ID attribute.','my-content-management')."</li> 
     705                <li><strong>".__('Feature','my-content-management').":</strong> ".__('Adds links throughout content for each term in your glossary.','my-content-management')."</li> 
     706                <li><strong>".__('Feature','my-content-management').":</strong> ".__('Adds character headings to each section of your glossary list.','my-content-management')."</li> 
     707                </ul>"; } 
     708                $show_fields = ($show_fields != '')?"<div class='extra_fields'><h4>".__('Added custom fields:','my-content-management')."</h4>$show_fields</div>":''; 
     709                $extension = ($extension != '')?"<div class='extra_fields'>$extension</div>":''; 
     710                $return .= " 
     711        <div class='postbox' id='mcm-settings-$value'> 
     712        <div class='handlediv' title='Click to toggle'><br /></div><h3 class='hndle'><span>$label[2] ".__('Template Manager','my-content-management')."</span></h3> 
     713            <div class='inside'> 
     714            $show_fields 
     715            $extension 
     716            <form method='post' action='".admin_url('options-general.php?page=my-content-management/my-content-management.php')."'> 
     717                <div><input type='hidden' name='_wpnonce' value='".wp_create_nonce('my-content-management-nonce')."' /></div> 
     718                <div><input type='hidden' name='mcm_post_type' value='$value' /></div> 
     719                <div> 
     720                <fieldset> 
     721                <legend>Full</legend> 
     722                <p>Sample shortcode: <code>[my_content type='$display_value' display='full' taxonomy='mcm_category_$display_value' order='menu_order']</code></p> 
     723                <p class='wrappers'> 
     724                <label for='mcm_full_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][full]' id='mcm_full_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['full'] )."</select><br /> 
     725                <label for='mcm_full_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][full]' id='mcm_full_itemwrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['full'] )."</select> 
     726                </p> 
     727                <p> 
     728                <label for='mcm_full_wrapper_$value'>".__('Full Template','my-content-management')."</label><br /> <textarea name='templates[$value][full]' id='mcm_full_wrapper_$value' rows='8' cols='60'>".stripslashes(htmlentities($template['full']))."</textarea> 
     729                </p> 
     730                </fieldset> 
     731                <fieldset> 
     732                <legend>Excerpt</legend> 
     733                <p class='wrappers'> 
     734                <label for='mcm_excerpt_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][excerpt]' id='mcm_excerpt_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['excerpt'] )."</select><br /> 
     735                <label for='mcm_excerpt_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][excerpt]' id='mcm_excerpt_item_wrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['excerpt'] )."</select> 
     736                </p> 
     737                <p> 
     738                <label for='mcm_excerpt_wrapper_$value'>".__('Excerpt Template','my-content-management')."</label><br /> <textarea name='templates[$value][excerpt]' id='mcm_excerpt_wrapper_$value' rows='4' cols='60'>".stripslashes(htmlentities($template['excerpt']))."</textarea> 
     739                </p> 
     740                </fieldset> 
     741                <fieldset> 
     742                <legend>List</legend> 
     743                <p class='wrappers'> 
     744                <label for='mcm_list_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][list]' id='mcm_list_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['list'] )."</select><br /> 
     745                <label for='mcm_list_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][list]' id='mcm_list_item_wrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['list'] )."</select> 
     746                </p> 
     747                <p> 
     748                <label for='mcm_list_wrapper_$value'>".__('List Template','my-content-management')."</label><br /> <textarea name='templates[$value][list]' id='mcm_list_wrapper_$value' rows='2' cols='60'>".stripslashes(htmlentities($template['list']))."</textarea> 
     749                </p> 
     750                </fieldset> 
     751                <p> 
     752                        <input type='submit' value='".sprintf( __('Save %s Templates','my-content-manager'), $label[2] )."' name='mcm_save_templates' class='button-primary' /> 
     753                </p> 
     754                </div> 
     755                </form> 
     756                <h4>".__('Naming for theme templates','my-content-management')."</h4> 
     757                <p>".__('Theme template for this taxonomy:','my-content-management')." <code>taxonomy-mcm_category_$display_value.php</code></p> 
     758                <p>".__('Theme template for this custom post type:','my-content-management')." <code>single-mcm_$display_value.php</code></p> 
     759                <p>".__('Theme template for archive pages with this post type:','my-content-management')." <code>archive-mcm_$display_value.php</code></p>       
     760                </div>           
     761            </div>"; 
     762            } else { 
     763                //unset here? JCD 
    654764            } 
    655             if ( $pointer != $value ) { $extra_fields = false; } 
    656             $show_fields = ''; 
    657             if ( is_array( $extra_fields ) ) { 
    658                 foreach ( $extra_fields as $k=>$v ) { 
    659                     $show_fields .= "<p><code>&#123;$v[0]&#125;</code>: $v[1]</p>"; 
    660                 } 
    661             } else { 
    662                 $show_fields = ''; 
    663             } 
    664             $extension = ''; 
    665             if ( $value == 'mcm_glossary' && function_exists('mcm_set_glossary') ) { $extension = "<h4>Glossary Extension</h4> 
    666             <p>".__('The glossary extension to My Content Management is enabled.','my-content-management')."</p> 
    667             <ul> 
    668             <li><code>[alphabet]</code>: ".__('displays list of linked first characters represented in your Glossary. (Roman alphabet only.)','my-content-management')."</li> 
    669             <li><code>[term id='' term='']</code>: ".__('displays value of term attribute linked to glossary term with ID attribute.','my-content-management')."</li> 
    670             <li><strong>".__('Feature','my-content-management').":</strong> ".__('Adds links throughout content for each term in your glossary.','my-content-management')."</li> 
    671             <li><strong>".__('Feature','my-content-management').":</strong> ".__('Adds character headings to each section of your glossary list.','my-content-management')."</li> 
    672             </ul>"; } 
    673             $show_fields = ($show_fields != '')?"<div class='extra_fields'><h4>".__('Added custom fields:','my-content-management')."</h4>$show_fields</div>":''; 
    674             $extension = ($extension != '')?"<div class='extra_fields'>$extension</div>":''; 
    675             $return .= " 
    676     <div class='postbox' id='mcm-settings-$value'> 
    677     <div class='handlediv' title='Click to toggle'><br /></div><h3 class='hndle'><span>$label[2] ".__('Template Manager','my-content-management')."</span></h3> 
    678         <div class='inside'> 
    679         $show_fields 
    680         $extension 
    681         <form method='post' action='".admin_url('options-general.php?page=my-content-management/my-content-management.php')."'> 
    682             <div><input type='hidden' name='_wpnonce' value='".wp_create_nonce('my-content-management-nonce')."' /></div> 
    683             <div><input type='hidden' name='mcm_post_type' value='$value' /></div> 
    684             <div> 
    685             <fieldset> 
    686             <legend>Full</legend> 
    687             <p>Sample shortcode: <code>[my_content type='$display_value' display='full' taxonomy='mcm_category_$display_value' order='menu_order']</code></p> 
    688             <p class='wrappers'> 
    689             <label for='mcm_full_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][full]' id='mcm_full_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['full'] )."</select><br /> 
    690             <label for='mcm_full_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][full]' id='mcm_full_itemwrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['full'] )."</select> 
    691             </p> 
    692             <p> 
    693             <label for='mcm_full_wrapper_$value'>".__('Full Template','my-content-management')."</label><br /> <textarea name='templates[$value][full]' id='mcm_full_wrapper_$value' rows='8' cols='60'>".stripslashes(htmlentities($template['full']))."</textarea> 
    694             </p> 
    695             </fieldset> 
    696             <fieldset> 
    697             <legend>Excerpt</legend> 
    698             <p class='wrappers'> 
    699             <label for='mcm_excerpt_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][excerpt]' id='mcm_excerpt_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['excerpt'] )."</select><br /> 
    700             <label for='mcm_excerpt_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][excerpt]' id='mcm_excerpt_item_wrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['excerpt'] )."</select> 
    701             </p> 
    702             <p> 
    703             <label for='mcm_excerpt_wrapper_$value'>".__('Excerpt Template','my-content-management')."</label><br /> <textarea name='templates[$value][excerpt]' id='mcm_excerpt_wrapper_$value' rows='4' cols='60'>".stripslashes(htmlentities($template['excerpt']))."</textarea> 
    704             </p> 
    705             </fieldset> 
    706             <fieldset> 
    707             <legend>List</legend> 
    708             <p class='wrappers'> 
    709             <label for='mcm_list_list_wrapper_$value'>".__('List Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][list][list]' id='mcm_list_list_wrapper_$value'>".mcm_option_list( $list, $template['wrapper']['list']['list'] )."</select><br /> 
    710             <label for='mcm_list_item_wrapper_$value'>".__('Item Wrapper','my-content-management')."</label> <select name='templates[$value][wrapper][item][list]' id='mcm_list_item_wrapper_$value'>".mcm_option_list( $item, $template['wrapper']['item']['list'] )."</select> 
    711             </p> 
    712             <p> 
    713             <label for='mcm_list_wrapper_$value'>".__('List Template','my-content-management')."</label><br /> <textarea name='templates[$value][list]' id='mcm_list_wrapper_$value' rows='2' cols='60'>".stripslashes(htmlentities($template['list']))."</textarea> 
    714             </p> 
    715             </fieldset> 
    716             <p> 
    717                     <input type='submit' value='".sprintf( __('Save %s Templates','my-content-manager'), $label[2] )."' name='mcm_save_templates' class='button-primary' /> 
    718             </p> 
    719             </div> 
    720             </form> 
    721             <h4>".__('Naming for theme templates','my-content-management')."</h4> 
    722             <p>".__('Theme template for this taxonomy:','my-content-management')." <code>taxonomy-mcm_category_$display_value.php</code></p> 
    723             <p>".__('Theme template for this custom post type:','my-content-management')." <code>single-mcm_$display_value.php</code></p> 
    724             <p>".__('Theme template for archive pages with this post type:','my-content-management')." <code>archive-mcm_$display_value.php</code></p>       
    725             </div>           
    726         </div>"; 
    727765        } 
    728766    } 
  • my-content-management/trunk/my-glossary-filter.php

    r592694 r607230  
    22/* 
    33Plugin Name: My Content Management - Glossary Filter 
    4 Version: 1.2.5 
     4Version: 1.2.6 
    55Plugin URI: http://www.joedolson.com/articles/my-content-management/ 
    66Description: Adds custom glossary features: filters content for links to terms, etc. Companion plug-in to My Content Management. 
  • my-content-management/trunk/readme.txt

    r576432 r607230  
    44Tags: custom post types, post types, faq, testimonials, staff, glossary, sidebars, content management 
    55Requires at least: 3.2.1 
    6 Tested up to: 3.4 
     6Tested up to: 3.4.2 
    77License: GPLv2 or later 
    88Stable tag: trunk 
     
    5858== Changelog == 
    5959 
     60= 1.2.6 = 
     61 
     62* Bug fix: could not enable 'hierarchical' without disabling 'publicly_queryable' 
     63* Bug fix: New post types display default templates instead of blank. 
     64* Change: Edit button indicates what is being edited 
     65* Change: add new form only visible on demand 
     66* Added: support for has_archive in post type. 
     67* Added option to delete custom post types. 
     68* Performance improvement in template interpreter 
     69 
    6070= 1.2.5 = 
    6171 
Note: See TracChangeset for help on using the changeset viewer.