Plugin Directory

Changeset 1543138


Ignore:
Timestamp:
11/30/2016 09:10:39 AM (9 years ago)
Author:
themescode
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tc-portfolio/trunk/tc-portfolio.php

    r1539986 r1543138  
    3737require_once TCPORTFOLIO_PLUGIN_DIR .'/lib/tc-metabox.php';
    3838require_once TCPORTFOLIO_PLUGIN_DIR .'/public/tc-view.php';
    39 
     39require_once TCPORTFOLIO_PLUGIN_DIR .'/lib/tcp-class.php';
    4040 function tcportfolio_faq_enqueue_scripts() {
    4141    //Plugin Main CSS File
     
    8383'remove_text'   => __( 'Remove Portfolio Image', 'tcpc' )
    8484));
     85
     86add_filter( 'gettext', 'tcp_excerpt_sd', 10, 2 );
     87function tcp_excerpt_sd( $translation, $original )
     88{
     89    if ( 'Excerpt' == $original ) {
     90        return 'Short Description';
     91    }else{
     92        $pos = strpos($original, 'Excerpts are optional hand-crafted summaries of your');
     93        if ($pos !== false) {
     94            return  'This Portfolio Short Description will appear on Image hover . You can hide/show through Basic Settings';
     95        }
     96    }
     97    return $translation;
     98}
Note: See TracChangeset for help on using the changeset viewer.