Ejemplo n.º 1
0
                            } else {
                                if ($element['type'] != 'demos' && $element['deprecated'] == 'false' && $element['type'] != 'external' && $element['group'] == 'Other') {
                                    $Count_Other++;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
$Count_Total = $Count_Media + $Count_Google + $Count_Buttons + $Count_Counters + $Count_Posts + $Count_Titles + $Count_Popups + $Count_Other;
$Count_Deprecated = TS_VCSC_CountArrayMatches($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Visual_Composer_Elements, 'deprecated', 'true');
$Count_Demos = TS_VCSC_CountArrayMatches($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Visual_Composer_Elements, 'type', 'demos');
$Count_External = TS_VCSC_CountArrayMatches($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Visual_Composer_Elements, 'type', 'external');
$Count_Fonts = sizeof($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Fonts_Google);
$memory_recommended = 20 * 1024 * 1024;
$memory_required = 10 * 1024 * 1024;
$memory_allocated = ini_get('memory_limit');
$memory_allocated = preg_replace("/[^0-9]/", "", $memory_allocated) * 1024 * 1024;
$memory_peakusage = memory_get_peak_usage(true);
$memory_remaining = $memory_allocated - $memory_peakusage;
$memory_utilization = $memory_peakusage / $memory_allocated * 100;
$memory_checkup = $memory_remaining < $memory_recommended ? "false" : "true";
$memory_minimum = $memory_remaining < $memory_required ? "false" : "true";
if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
    if (get_site_option('ts_vcsc_extend_settings_demo', 1) == 0 && get_option('ts_vcsc_extend_settings_extended', 0) == 0 && strpos(get_site_option('ts_vcsc_extend_settings_licenseInfo', ''), get_site_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix')) != FALSE) {
        $autoupdate_allowed = "true";
    } else {
        $autoupdate_allowed = "false";
Ejemplo n.º 2
0
						<i id="ts-vcsc-google-font-reset" class="ts-vcsc-google-font-reset dashicons-dismiss"></i>
					</div>	
					<?php 
echo '<div class="ts-googlefont-manager-tabs" style="margin-bottom: 10px;">';
echo '<ul class="ts-googlefont-manager-tab-links">';
$tabcounter = 0;
foreach ($group_array as $group) {
    $tabcounter++;
    $fontcount = TS_VCSC_CountArrayMatches($font_array, 'group', $group);
    echo '<li id="ts-googlefont-manager-tab-trigger' . $group . '" class="' . ($tabcounter == 1 ? "active" : "") . '"><a href="#ts-googlefont-manager-tab' . $group . '"><span>' . $group . ' </span><span style="font-size: 10px;">(' . $fontcount . ')</span><i id="ts-googlefont-manager-tab-flagged' . $group . '" class="ts-googlefont-manager-tab-flagged dashicons-yes" style="display: none;"></i></a></li>';
}
echo '</ul>';
echo '<div class="ts-googlefont-manager-tab-content">';
$tabcounter = 0;
foreach ($group_array as $group) {
    $Font_Count = TS_VCSC_CountArrayMatches($font_array, 'group', $group);
    $tabcounter++;
    echo '<div id="ts-googlefont-manager-tab' . $group . '" class="ts-googlefont-manager-tab-single ' . ($tabcounter == 1 ? "active" : "") . ' clearFixMe" data-link="ts-googlefont-manager-tab-trigger' . $group . '" data-group="' . $group . '" style="">';
    echo '<div id="ts-vcsc-google-font-preview' . $group . '" class="ts-vcsc-google-font-preview button-secondary"><i class="dashicons-visibility" style="margin-right: 6px;"></i><span>Load <span class="ts-vcsc-google-font-count">' . $Font_Count . '</span> CSS File(s) for Live Preview in Group ' . $group . '</span></div>';
    echo '<div id="ts-vcsc-google-font-showall' . $group . '" class="ts-vcsc-google-font-showall button-secondary"><i class="dashicons-yes" style="margin-right: 6px;"></i><span>Select <span class="ts-vcsc-google-font-count">' . $Font_Count . '</span> Font(s) in Group ' . $group . '</span></div>';
    echo '<div id="ts-vcsc-google-font-hideall' . $group . '" class="ts-vcsc-google-font-hideall button-secondary"><i class="dashicons-no" style="margin-right: 6px;"></i><span>Unselect <span class="ts-vcsc-google-font-count">' . $Font_Count . '</span> Font(s) in Group ' . $group . '</span></div>';
    echo '<ul class="ts-vcsc-google-font-selectors" style="font-size: 24px;">';
    foreach ($font_array as $index => $array) {
        $font_networks = '';
        $Font_Name = $font_array[$index]['name'];
        $Font_Settings = $font_array[$index]['settings'];
        $Font_Group = $font_array[$index]['group'];
        $Font_Google = $font_array[$index]['google'];
        $Font_Active = $font_array[$index]['active'];
        $Font_Favorite = $font_array[$index]['favorite'];
        $Font_Options = $font_array[$index]['variants'];