Plugin Directory

Changeset 1543139


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

update

Location:
tc-portfolio/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • tc-portfolio/trunk/assets/css/tc-portfolio-style.css

    r1539986 r1543139  
    5050.tc_overlay {
    5151  /*background-color: rgba(10, 10, 10, 0.6);*/
    52   background-color: #FF7055;
    5352  text-align: center;
    5453  position: absolute;
     
    8382}
    8483.tc_overlay h3.tcp-title{
    85  margin: 30px 0;
     84 margin: 10px 0;
    8685 text-decoration: none;
     86 padding: 0 10px;
    8787}
    8888.tc_overlay a.tcp-link{
     
    9696 text-decoration: none !important;
    9797}
    98 
     98p.tcp-short-des {
     99    color: #fff;
     100    padding: 0 10px;
     101    font-size: 12px;
     102}
    99103a.tcpc-link {
    100104    color: #fff;
  • tc-portfolio/trunk/lib/tc-portfolio-cpt.php

    r1539989 r1543139  
    2121        'labels' => $labels,
    2222        'has_archive' => true,
    23         'supports' => array('title','thumbnail','editor'),
     23        'supports' => array('title','thumbnail','editor','excerpt'),
    2424        'taxonomies' => array( '' ),
    2525        'public' => true,
  • tc-portfolio/trunk/lib/tc-portfolio-help-upgrade.php

    r1538187 r1543139  
    66</p>
    77
    8 <p><strong>Shortcode</strong>
     8<strong>Shortcode</strong>
    99
    10 <pre>[tc-portfolio]</pre></p>
     10[tc-portfolio]
    1111</div> <!-- wrap end  -->
  • tc-portfolio/trunk/lib/tc-portfolio-settings.php

    r1539989 r1543139  
    8585                ),
    8686
     87                array(
     88                    'name'    => 'short-description',
     89                    'label'   => __( 'Show Short Description ', 'tc-portfolio' ),
     90                    'desc'    => __( 'Show Short Description On Hover', 'tc-portfolio' ),
     91                    'type'    => 'radio',
     92                    'default' => 'yes',
     93                    'options' => array(
     94                        'yes' => 'Yes',
     95                        'no'  => 'No'
     96                    )
     97                ),
     98
    8799
    88100            ),
     
    92104                    'name'    => 'menu-bg-color',
    93105                    'label'   => __( 'Menu Color', 'tc-portfolio' ),
    94                     'desc'    => __( 'Menu Background Color', 'tc-portfolio' ),
     106                    'desc'    => __( 'Filter Menu Background Color', 'tc-portfolio' ),
     107                    'type'    => 'color',
     108                    'default' => '#ff7055'
     109                ),
     110                array(
     111                    'name'    => 'img-overlay-color',
     112                    'label'   => __( 'Image Overlay Color', 'tc-portfolio' ),
     113                    'desc'    => __( 'Portfolio Image Overlay Hover Color', 'tc-portfolio' ),
    95114                    'type'    => 'color',
    96115                    'default' => '#ff7055'
  • tc-portfolio/trunk/public/tc-view.php

    r1539990 r1543139  
    1515function tcp_style_trigger($border){
    1616  $tcp_mbgc=tcp_option('menu-bg-color','tc_portfolio_style', '#ff7055' );
     17  $tcp_overlay_c=tcp_option('img-overlay-color','tc_portfolio_style', '#ff7055' );
    1718?>
    1819<style media="screen">
     
    2425    color: #fff;
    2526}
     27.tc_overlay{
     28    background-color:<?php echo $tcp_overlay_c; ?>;
     29}
     30
    2631</style>
    2732
     
    3843  $tcp_menutext=tcp_option('all_items_val','tc_portfolio_basics', 'All Items' );
    3944  $tcp_showm=tcp_option('filter_menu','tc_portfolio_basics', 'yes' );
     45  $tcp_show_sd=tcp_option('short-description','tc_portfolio_basics','yes');
    4046    // Attributes
    4147    extract( shortcode_atts(
     
    105111                  $tc_view.='<div class="tc_overlay">';
    106112                                   $tc_view.='<h3 class="tcp-title"><a class="tcp-link" href="'.get_the_permalink().'" > '.get_the_title().' </a> </h3>';
     113                           if($tcp_show_sd=='yes'){
     114                           $tc_view.='<p class="tcp-short-des">'.themescode_limit_text(get_the_excerpt(),20).'</p>';
     115                            }
    107116                       $tc_view.='<div class="tcp_links">';
    108117                       $tc_view.='<a class="tcpc-link tcp-ext" href="'.get_the_permalink().'"><i class="fa fa-external-link" aria-hidden="true"></i></a>';
Note: See TracChangeset for help on using the changeset viewer.