Skip to content

Commit 0daa0c2

Browse files
authored
Merge pull request #78 from abaicus/development
Added images for the new chart types and upsell badge on chart picker
2 parents 2766782 + 242e445 commit 0daa0c2

File tree

4 files changed

+59
-5
lines changed

4 files changed

+59
-5
lines changed

classes/Visualizer/Render/Page/Types.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,15 @@ protected function _renderSidebar() {}
8080
*
8181
* @access protected
8282
*/
83-
protected function _renderToolbar() {
84-
echo '<input type="submit" class="button button-primary button-large push-right" value="', esc_attr__( 'Next', Visualizer_Plugin::NAME ), '">';
85-
}
86-
87-
}
83+
protected function _renderToolbar() {
84+
if( defined( 'Visualizer_Pro' ) ){
85+
global $Visualizer_Pro;
86+
}else{
87+
echo "<a class='pro-upsell' href='https://themeisle.com/plugins/visualizer-charts-and-graphs-pro-addon/' target='_blank'>";
88+
echo "<span class='dashicons dashicons-plus-alt'></span>";
89+
echo esc_html( "Three Additional Chart Types Available in the Pro Version", Visualizer_Plugin::NAME );
90+
echo "</a>";
91+
}
92+
echo '<input type="submit" class="button button-primary button-large push-right" value="', esc_attr__( 'Next', Visualizer_Plugin::NAME ), '">';
93+
}
94+
}

css/frame.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,53 @@ div.group-content .group-description {
402402
background-position: -600px -225px;
403403
}
404404

405+
.type-box-table .type-label {
406+
background-position: -301px -670px;
407+
}
408+
409+
.type-box-timeline .type-label {
410+
background-position: -2px -670px;
411+
}
412+
413+
.type-box-combo .type-label {
414+
background-position: -597px -670px;
415+
}
416+
417+
a.pro-upsell {
418+
float: left;
419+
margin: 0;
420+
display: flex;
421+
align-items: center;
422+
height: 20px;
423+
padding:10px 20px;
424+
border-radius: 50px;
425+
-moz-border-radius: 50px;
426+
-webkit-border-radius: 50px;
427+
background-color: #4285F4;
428+
text-decoration: none;
429+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
430+
border: 1px solid #2c80d6;
431+
transition: all .5s ease-in;
432+
}
433+
434+
a.pro-upsell:hover {
435+
background-color: #5a95f5;
436+
box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
437+
}
438+
439+
a.pro-upsell span {
440+
color: #fff;
441+
margin-right: 10px;
442+
display:inline-block;
443+
}
444+
445+
a.pro-upsell {
446+
font-weight: bold;
447+
font-size: 13px;
448+
color: #fff;
449+
display: inline;
450+
}
451+
405452
/******************************************************************************/
406453
/******************************** OTHER STYLES ******************************/
407454
/******************************************************************************/

images/chart_types.png

-58.2 KB
Loading

images/chart_types_g.png

30.4 KB
Loading

0 commit comments

Comments
 (0)