Changeset 1543139
- Timestamp:
- 11/30/2016 09:11:28 AM (9 years ago)
- Location:
- tc-portfolio/trunk
- Files:
-
- 1 added
- 5 edited
-
assets/css/tc-portfolio-style.css (modified) (3 diffs)
-
lib/tc-portfolio-cpt.php (modified) (1 diff)
-
lib/tc-portfolio-help-upgrade.php (modified) (1 diff)
-
lib/tc-portfolio-settings.php (modified) (2 diffs)
-
lib/tcp-class.php (added)
-
public/tc-view.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tc-portfolio/trunk/assets/css/tc-portfolio-style.css
r1539986 r1543139 50 50 .tc_overlay { 51 51 /*background-color: rgba(10, 10, 10, 0.6);*/ 52 background-color: #FF7055;53 52 text-align: center; 54 53 position: absolute; … … 83 82 } 84 83 .tc_overlay h3.tcp-title{ 85 margin: 30px 0;84 margin: 10px 0; 86 85 text-decoration: none; 86 padding: 0 10px; 87 87 } 88 88 .tc_overlay a.tcp-link{ … … 96 96 text-decoration: none !important; 97 97 } 98 98 p.tcp-short-des { 99 color: #fff; 100 padding: 0 10px; 101 font-size: 12px; 102 } 99 103 a.tcpc-link { 100 104 color: #fff; -
tc-portfolio/trunk/lib/tc-portfolio-cpt.php
r1539989 r1543139 21 21 'labels' => $labels, 22 22 'has_archive' => true, 23 'supports' => array('title','thumbnail','editor' ),23 'supports' => array('title','thumbnail','editor','excerpt'), 24 24 'taxonomies' => array( '' ), 25 25 'public' => true, -
tc-portfolio/trunk/lib/tc-portfolio-help-upgrade.php
r1538187 r1543139 6 6 </p> 7 7 8 < p><strong>Shortcode</strong>8 <strong>Shortcode</strong> 9 9 10 <pre>[tc-portfolio]</pre></p> 10 [tc-portfolio] 11 11 </div> <!-- wrap end --> -
tc-portfolio/trunk/lib/tc-portfolio-settings.php
r1539989 r1543139 85 85 ), 86 86 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 87 99 88 100 ), … … 92 104 'name' => 'menu-bg-color', 93 105 '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' ), 95 114 'type' => 'color', 96 115 'default' => '#ff7055' -
tc-portfolio/trunk/public/tc-view.php
r1539990 r1543139 15 15 function tcp_style_trigger($border){ 16 16 $tcp_mbgc=tcp_option('menu-bg-color','tc_portfolio_style', '#ff7055' ); 17 $tcp_overlay_c=tcp_option('img-overlay-color','tc_portfolio_style', '#ff7055' ); 17 18 ?> 18 19 <style media="screen"> … … 24 25 color: #fff; 25 26 } 27 .tc_overlay{ 28 background-color:<?php echo $tcp_overlay_c; ?>; 29 } 30 26 31 </style> 27 32 … … 38 43 $tcp_menutext=tcp_option('all_items_val','tc_portfolio_basics', 'All Items' ); 39 44 $tcp_showm=tcp_option('filter_menu','tc_portfolio_basics', 'yes' ); 45 $tcp_show_sd=tcp_option('short-description','tc_portfolio_basics','yes'); 40 46 // Attributes 41 47 extract( shortcode_atts( … … 105 111 $tc_view.='<div class="tc_overlay">'; 106 112 $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 } 107 116 $tc_view.='<div class="tcp_links">'; 108 117 $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.