コード例 #1
0
ファイル: edit.php プロジェクト: ssuppe/sticky_widgets
<?php

/**
 * AJAXable edit panel taken from the profile edit panel for widgets.  The difference
 * is that this one is built for AJAX, and capable of handling multiple wheres (dashboard,
 * profile, or whatever else you want).
 *
 * Radio buttons are provided to change contexts (not elgg contexts, just contexts)
 * between the different wheres.  Care has been taken to ensure that when you switch,
 * no state is held from the last one, so you don't end up saving a 'hidden' field or anything.
 * (WYSIWYG).
 *
 */
global $CONFIG;
$widgettypes = get_widget_types();
$swTypes = getSWTypes();
$swWheres = getSWContexts();
$owner = page_owner_entity();
?>
<!--  <script type="text/javascript"
	src="<?php 
echo $vars['url'];
?>
vendors/jquery/service/dragsndrops/jquery-ui-personalized-1.6rc5.min.js"></script>-->

<script type="text/javascript">
<!--
	var swType = '<?php 
echo $swTypes[0];
?>
';
コード例 #2
0
ファイル: defaults.php プロジェクト: ssuppe/sticky_widgets
        echo elgg_view("sticky_widgets/defaults_config", array("swType" => $type, "context" => $context, "widgets" => $widgets));
        ?>
</div>
		<?php 
    }
    ?>
</div>
</div>
		<?php 
}
?>

<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery("#sticky-widgets-subtypes > ul").tabs();
    <?php 
foreach (getSWTypes() as $type) {
    ?>
   		 jQuery("#<?php 
    echo $type;
    ?>
 > ul").tabs();
    <?php 
}
?>
    
    
});

</script>